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

prefix-enabled FA perf issue #239

Merged
merged 3 commits into from
Oct 22, 2024
Merged

prefix-enabled FA perf issue #239

merged 3 commits into from
Oct 22, 2024

Conversation

seungrokj
Copy link

@seungrokj seungrokj commented Oct 21, 2024

Current FA input args are calcuated during forward() and which has a negative impact on the TTFT latency.
So, I set prefix-disabled case to utilize prefill_meta (which was captured during graph capture) instead of calcuating _get_seq_len_block_table_args during forward(). Can you please check if this is valid ? Also, can the args inside _get_seq_len_block_table_args also be updated during graph capture ?

image

@shajrawi @gshtras

@gshtras
Copy link
Collaborator

gshtras commented Oct 21, 2024

LGTM, pending formatting fix: pip install -r requirements-lint.txt && ./format.sh

@shajrawi shajrawi merged commit e0b6bb4 into main Oct 22, 2024
16 of 17 checks passed
@gshtras gshtras deleted the prefix_attn_perf branch October 22, 2024 22:00
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.

3 participants