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 a 1-line docstring to explain why calling context_attention_fwd twice in test_prefix_prefill.py #2553

Merged
merged 3 commits into from
Jan 22, 2024

Conversation

JasonZhu1313
Copy link
Contributor

Initially it was confusing to me why we call it twice repeatedly, later found out it was for warming up the triton kernel, just add 1-linear doc string:

Calling it once (warmup):

triton Time: 15.10 ms
xformers Time: 0.61 ms

Calling it twice (after warmup):
triton Time: 1.95 ms
xformers Time: 0.62 ms

@simon-mo simon-mo merged commit 7a0b011 into vllm-project:main Jan 22, 2024
16 checks passed
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
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.

None yet

2 participants