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 flag to enable running softmax in fp32 #71

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

Conversation

madamczykhabana
Copy link
Contributor

When run with VLLM_FP32_SOFTMAX=true both prompt attention (if FSDPA is disabled) and flat_pa will keep mme accumulated values from Q@K in fp32 and run softmax normalization in fp32 which helps with numerical errors in certain models like Qwen2.
This code should have no effect if the feature is disabled.

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