Skip to content

Deprecate --disable-flashinfer and introduce --attention-backend - #1380

Merged
merrymercy merged 3 commits into
mainfrom
attn_backend
Sep 11, 2024
Merged

merrymercy merged 3 commits into
mainfrom
attn_backend

Conversation

@merrymercy

@merrymercy merrymercy commented Sep 10, 2024 •

Copy link
Copy Markdown
Collaborator

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 triton and --attention-backend flashinfer instead of --disable-flashinfer.

@merrymercy
merrymercy merged commit 46094e0 into main Sep 11, 2024
@merrymercy
merrymercy deleted the attn_backend branch September 11, 2024 00:11
)
if self.disable_flashinfer_sampling:
logger.warning(
"The option '--disable-flashinfer-sampling' will be deprecated in the next release. "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should this error out instead of warning? since --disable-flashinfer is not taking effect anymore. hitting this issue on my end @merrymercy

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the other way is, if --disable-flashinfer is true, we set --attention-backend triton implicitly

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, it is my bug @ByronHsu. I should set --attention-backend triton automatically in this case. I will file a fix.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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