-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[Kernel] Flashinfer correctness fix for v0.1.3 #7319
[Kernel] Flashinfer correctness fix for v0.1.3 #7319
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge). To run full CI, you can do one of these:
🚀 |
.buildkite/test-pipeline.yaml
Outdated
@@ -61,7 +61,7 @@ steps: | |||
- tests/basic_correctness | |||
commands: | |||
# This flashinfer installation will fail on AMD ROCm, so it is set as optional. | |||
- pip install https://github.com/flashinfer-ai/flashinfer/releases/download/v0.1.2/flashinfer-0.1.2+cu121torch2.4-cp310-cp310-linux_x86_64.whl || true | |||
- pip install https://github.com/flashinfer-ai/flashinfer/releases/download/v0.1.3/flashinfer-0.1.3+cu124torch2.4-cp310-cp310-linux_x86_64.whl || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just update the Dockerfile and remove all of these.
/ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a nit
self.paged_kv_indptr = torch.zeros(batch_size + 1, | ||
device=self.device) | ||
else: | ||
# Only use flashinfer in the non-profile run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is a bit confusing as we are in the FlashInfer backend. Can we say more about why we skip the following logic in profile run and what's the outcome?
CI failure seems like a real bug
|
@LiuXiaoxuanPKU It's bugs |
Signed-off-by: Alvant <[email protected]>
Reported by @felixzhu555 ,
is_profile_run
is buggy in flashinfer backend, which will fail flashinfer v0.1.3. This PR fixes this, and update CI flashinfer version to v1.0.3.