Repository navigation
Deprecate --disable-flashinfer and introduce --attention-backend - #1380
Merged
Merged
Conversation
merrymercy
force-pushed
the
attn_backend
branch
from
September 10, 2024 23:40
a57a290 to
76d3a18
Compare
ByronHsu
reviewed
Sep 11, 2024
| ) | ||
| if self.disable_flashinfer_sampling: | ||
| logger.warning( | ||
| "The option '--disable-flashinfer-sampling' will be deprecated in the next release. " |
Collaborator
There was a problem hiding this comment.
should this error out instead of warning? since --disable-flashinfer is not taking effect anymore. hitting this issue on my end @merrymercy
Collaborator
There was a problem hiding this comment.
the other way is, if --disable-flashinfer is true, we set --attention-backend triton implicitly
Collaborator
Author
There was a problem hiding this comment.
Sorry, it is my bug @ByronHsu. I should set --attention-backend triton automatically in this case. I will file a fix.
timethink
pushed a commit
to timethink/sglang
that referenced
this pull request
Mar 9, 2025
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.
We plan to build better abstraction around the attention backends, so we can easily switch between them and share the upper-level scheduling and optimizations (e.g., cuda graph).
We will use
--attention-backend tritonand--attention-backend flashinferinstead of--disable-flashinfer.