Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 'fp32' option for softmax_mode in FusedFSDPA #113

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yangulei
Copy link

The 'fp32' option for softmax_mode in FusedFSDPA is enabled since Synapse v1.20.0.

@yangulei
Copy link
Author

Update:
set valid_seq_lengths=None for softmax_mode='fp32' as we observed accuracy issue on Qwen2-1.5B-Instruct and Deepseek-R1 for softmax_mod='fp32' and setting valid_seq_lengths=None could fix it.

Copy link
Contributor

@michalkuligowski michalkuligowski left a comment

Choose a reason for hiding this comment

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

@yangulei Is this still valid, given your last comment?

@yangulei
Copy link
Author

@yangulei Is this still valid, given your last comment?

Yes, no more accuracy issue observed after setting valid_seq_lengths=None for softmax_mod='fp32' case.

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