Skip to content

MLA - Flashinfer Ragged Prefill #20034

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/offline_inference/basic/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

def main():
# Create an LLM.
llm = LLM(model="facebook/opt-125m")
llm = LLM(model="deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct", trust_remote_code=True)

Check failure on line 19 in examples/offline_inference/basic/basic.py

View workflow job for this annotation

GitHub Actions / pre-commit

Ruff (E501)

examples/offline_inference/basic/basic.py:19:89: E501 Line too long (90 > 88)
# Generate texts from the prompts.
# The output is a list of RequestOutput objects
# that contain the prompt, generated text, and other information.
Expand Down
2 changes: 2 additions & 0 deletions vllm/v1/attention/backends/flashinfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ def forward(
"""
assert output is not None, "Output tensor must be provided."

print("kv_cache.shape = {}".format(kv_cache.shape))
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This print statement should be removed before merging. It's useful for debugging, but not for production code.


if output_scale is not None:
raise NotImplementedError(
"fused output quantization is not yet supported"
Expand Down
Loading
Loading