Skip to content

ADD FP8 forward for FA3#522

Merged
feifeibear merged 1 commit intoxdit-project:mainfrom
yuyu5333:main
Jun 3, 2025
Merged

ADD FP8 forward for FA3#522
feifeibear merged 1 commit intoxdit-project:mainfrom
yuyu5333:main

Conversation

@yuyu5333
Copy link
Contributor

FA3 now supports FP8 (torch.float8_e4m3fn) reasoning. However, the forward stage still lacks FP8 support.

I added the necessary parameters qkv scale for quantization and selected the Attention that supports FP8 for forwarding according to AttnType in yunchang (USP). This function will support USP forward of FP8 quantization.

In addition, pull requests have been initiated for quantization-related parameter support for yunchang and FA3.

yunchang (USP): https://github.com/feifeibear/long-context-attention/pull/151(merged into main)
FA3: Dao-AILab/flash-attention#1686

Copy link
Collaborator

@feifeibear feifeibear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@feifeibear feifeibear merged commit 7fae2e3 into xdit-project:main Jun 3, 2025
MeinhardZhou pushed a commit to bytedance-iaas/xDiT that referenced this pull request Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants