set default attention backend for deterministic inference#11801
Merged
zhyncs merged 5 commits intosgl-project:mainfrom Oct 18, 2025
Merged
set default attention backend for deterministic inference#11801zhyncs merged 5 commits intosgl-project:mainfrom
zhyncs merged 5 commits intosgl-project:mainfrom
Conversation
Fridge003
approved these changes
Oct 18, 2025
hebiao064
approved these changes
Oct 18, 2025
zhyncs
suggested changes
Oct 18, 2025
zhyncs
reviewed
Oct 18, 2025
| f"You can explicitly set --attention-backend to one of {DETERMINISTIC_ATTENTION_BACKEND_CHOICES}." | ||
| ) | ||
| else: | ||
| self.attention_backend = "fa3" |
Collaborator
There was a problem hiding this comment.
I think that for most use cases, this should be good. but how about sm120 (rtx 50xx)
Collaborator
Author
There was a problem hiding this comment.
ah for that, just updated to set flashinfer for sm120 as well since it's also blackwell architecture. Wdyt?
zhyncs
approved these changes
Oct 18, 2025
28 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Set default deterministic compatible attention backend when deterministic enabled and no attention backend being set.
Tested on a single H100
Before:
After:
Modifications
Accuracy Tests
Benchmarking and Profiling
Checklist