Skip to content

Conversation

@tjtanaa
Copy link
Collaborator

@tjtanaa tjtanaa commented Jul 24, 2025

Essential Elements of an Effective PR Description Checklist

  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

Purpose

Fix #21308

  • after PR
  • server command:
export VLLM_USE_V1=1
export VLLM_ROCM_USE_AITER=0
export VLLM_V1_USE_PREFILL_DECODE_ATTENTION=0
vllm serve meta-llama/Llama-3.1-8B-Instruct --trust-remote-code --swap-space 16 --disable-log-requests --tensor-parallel-size 1 --distributed-executor-backend mp --dtype float16 --quantization fp8 --no-enable-chunked-prefill --max-num-seqs 300  --max-num-batched-tokens 131072 --gpu-memory-utilization 0.8 --enforce-eager --speculative_config '{"method": "eagle3", "model": "yuhuili/EAGLE3-LLaMA3.1-Instruct-8B", "num_speculative_tokens": 2, "draft_tensor_parallel_size": 1, "dtype": "float16"}' --port 8001
  • server log
INFO 07-27 13:23:18 [loggers.py:122] Engine 000: Avg prompt throughput: 7.9 tokens/s, Avg generation throughput: 1.8 tokens/s, Running: 0 reqs, Waiting: 0 reqs, GPU KV cache usage: 0.0%, Prefix cache hit rate: 0.0%
INFO 07-27 13:23:18 [metrics.py:87] SpecDecoding metrics: Draft acceptance rate: 56.2%, Mean acceptance length: 2.12, Accepted: 9 tokens, Drafted: 16 tokens, Per-position acceptance rate: 0.750, 0.375

Enable Speculative Decoding on ROCm V1 Engine:

  • Eagle
  • NGram

Test Plan

Enable and pass the unit tests:

  • tests/v1/spec_decode/test_ngram.py
  • tests/v1/spec_decode/test_max_len.py
  • tests/v1/spec_decode/test_eagle.py
  • tests/v1/e2e/test_spec_decode.py

Test Result

Pass status

  • tests/v1/spec_decode/test_ngram.py
  • tests/v1/spec_decode/test_max_len.py
  • tests/v1/spec_decode/test_eagle.py
  • tests/v1/e2e/test_spec_decode.py

(Optional) Documentation Update

@github-actions
Copy link

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

@mergify mergify bot added rocm Related to AMD ROCm speculative-decoding v1 labels Jul 24, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enables speculative decoding on the ROCm V1 Engine, which is a great enhancement. The changes primarily involve updating test configurations to support different attention backends on ROCm and relaxing an assertion to allow for this.

I've found a critical issue in a test utility function where a try...except block is ineffective, potentially causing tests to run with incorrect configurations. I've also pointed out a misleading comment in the core logic that could cause confusion for future developers. Addressing these points will improve the correctness and maintainability of the code.

@tjtanaa tjtanaa marked this pull request as draft July 24, 2025 16:25
@tjtanaa tjtanaa marked this pull request as ready for review July 27, 2025 13:18
Copy link
Contributor

@SageMoore SageMoore left a comment

Choose a reason for hiding this comment

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

Just one minor suggestion. The rest looks good.

@mergify
Copy link

mergify bot commented Aug 1, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @tjtanaa.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Aug 1, 2025
Signed-off-by: tjtanaa <[email protected]>
@mergify mergify bot removed the needs-rebase label Aug 1, 2025
@mergify
Copy link

mergify bot commented Aug 4, 2025

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @tjtanaa.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Aug 4, 2025
Signed-off-by: tjtanaa <[email protected]>
@mergify mergify bot removed the needs-rebase label Aug 6, 2025
@DarkLight1337 DarkLight1337 added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 7, 2025
@vllm-bot vllm-bot merged commit 1ee5ead into vllm-project:main Aug 8, 2025
35 of 43 checks passed
@DarkLight1337
Copy link
Member

LGTM

ywang96 pushed a commit to ywang96/vllm that referenced this pull request Aug 8, 2025
ywang96 pushed a commit to ywang96/vllm that referenced this pull request Aug 8, 2025
jinzhen-lin pushed a commit to jinzhen-lin/vllm that referenced this pull request Aug 9, 2025
noamgat pushed a commit to noamgat/vllm that referenced this pull request Aug 9, 2025
@DarkLight1337 DarkLight1337 mentioned this pull request Aug 11, 2025
3 tasks
paulpak58 pushed a commit to paulpak58/vllm that referenced this pull request Aug 13, 2025
diegocastanibm pushed a commit to diegocastanibm/vllm that referenced this pull request Aug 15, 2025
yiliu30 pushed a commit to yiliu30/vllm-fork that referenced this pull request Aug 19, 2025
epwalsh pushed a commit to epwalsh/vllm that referenced this pull request Aug 28, 2025
xiao-llm pushed a commit to xiao-llm/vllm that referenced this pull request Aug 28, 2025
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Aug 28, 2025
@tjtanaa tjtanaa deleted the fix-specdec-rocm branch September 30, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm speculative-decoding v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ROCm NotImplementedError: Speculative decoding is not yet supported on vLLM V1

4 participants