-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Speculative decoding][Re-take] Enable TP>1 speculative decoding #4840
Conversation
Hi @Alexei-V-Ivanov-AMD, the failed test on AMD has the following error. Could you help point some directions for fixing? Thanks!
|
Hello @comaniac , I assume you're talking about the following build: https://buildkite.com/vllm/ci/builds/7430#018f7e0c-6001-40de-aeb6-29ce70a898b1 If you look earlier in the log the node complaints about inability to access the "gated repo" (https://buildkite.com/vllm/ci/builds/7430#018f7e0c-6001-40de-aeb6-29ce70a898b1/11010-11264), - usually a llama-family model. The CI's config is correct, but sometimes the HF authentication still doesn't succeed. We have seen this kind of error on multiple occasions in different tests as well, not only on the AMD side. The best current remedy is to repeat the test, which I've requested just now for this particular build. |
Ah I see. Thanks for helping out! |
Update for @comaniac Now that I'm looking into your first attempt at making the same test in your build, I can see that the error you're referring to is the only one in the test (https://buildkite.com/vllm/ci/builds/7430#018f7d52-18a7-44e6-a9e6-44f37bbe86e2/13304-14196) We shall look into this with greater attention. The test you're trying to accomplish was working just a few hours ago. So, there it not much of code for us look through. |
Appreciate it. This is a new test added in this PR. It mainly enables TP>1 for target model in speculative decoding by broadcasting required metadata. You're welcome to review this PR and let me know if there's anything wrong. Thanks. |
FYI the latest successful PR passing that test is https://buildkite.com/vllm/ci/builds/7365 They were doing the same test "AMD: Distributed Tests" on the same machine as your original run. But they didn't have the test that was failing in your case, which is Running 2 items in this shard: tests/spec_decode/e2e/test_integration_dist.py::test_target_model_tp_gt_1[1-32-2-test_llm_kwargs0-baseline_llm_kwargs0-per_test_common_llm_kwargs0-common_llm_kwargs0], tests/spec_decode/e2e/test_integration_dist.py::test_target_model_tp_gt_1[1-32-2-test_llm_kwargs1-baseline_llm_kwargs0-per_test_common_llm_kwargs0-common_llm_kwargs0] IMHO The problem with your attempt at "AMD: Distributed Tests" is here: w.r.t. the common standard composition of the "AMD: Distributed Tests" there is an added test " - pytest -v -s spec_decode/e2e/test_integration_dist.py " which does not belong there. |
OK, I'll have a look at it. Thank you! |
To succeed with the "AMD: Distributed Tests" please remove the line it doesn't belong there. |
Thanks for the advice, but this line is added intentionally to test speculative decoding on multiple GPUs and it passed on NVIDIA GPUs, so we should not remove it. For short term I can skip this test on AMD GPUs and add a warning. |
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, thanks for getting all the tests passing
…m-project#4840) Co-authored-by: Cade Daniel <edacih@gmail.com> Co-authored-by: Cade Daniel <cade@anyscale.com>
Great! Thanks for the PR! And I have a question. @comaniac @cadedaniel |
After a short experiment with this PR code, I'm getting almost the same result with my local branch, based on v0.4.2. @comaniac @cadedaniel Tell me if you have the plan. Or maybe I can make a PR. Setting: benchmark_latency.py (batch_size=8, lookahead_slots=8), A100*4
|
Thanks for the help and benchmark. We do have a plan to support draft model with a different TP size. See #4632 |
…m-project#4840) Co-authored-by: Cade Daniel <edacih@gmail.com> Co-authored-by: Cade Daniel <cade@anyscale.com>
…m-project#4840) Co-authored-by: Cade Daniel <edacih@gmail.com> Co-authored-by: Cade Daniel <cade@anyscale.com>
Fix tests in #4808:
BEFORE SUBMITTING, PLEASE READ THE CHECKLIST BELOW AND FILL IN THE DESCRIPTION ABOVE
PR Checklist (Click to Expand)
Thank you for your contribution to vLLM! Before submitting the pull request, please ensure the PR meets the following criteria. This helps vLLM maintain the code quality and improve the efficiency of the review process.
PR Title and Classification
Only specific types of PRs will be reviewed. The PR title is prefixed appropriately to indicate the type of change. Please use one of the following:
[Bugfix]
for bug fixes.[CI/Build]
for build or continuous integration improvements.[Doc]
for documentation fixes and improvements.[Model]
for adding a new model or improving an existing model. Model name should appear in the title.[Frontend]
For changes on the vLLM frontend (e.g., OpenAI API server,LLM
class, etc.)[Kernel]
for changes affecting CUDA kernels or other compute kernels.[Core]
for changes in the core vLLM logic (e.g.,LLMEngine
,AsyncLLMEngine
,Scheduler
, etc.)[Hardware][Vendor]
for hardware-specific changes. Vendor name should appear in the prefix (e.g.,[Hardware][AMD]
).[Misc]
for PRs that do not fit the above categories. Please use this sparingly.Note: If the PR spans more than one category, please include all relevant prefixes.
Code Quality
The PR need to meet the following code quality standards:
format.sh
to format your code.docs/source/
if the PR modifies the user-facing behaviors of vLLM. It helps vLLM user understand and utilize the new features or changes.Notes for Large Changes
Please keep the changes as concise as possible. For major architectural changes (>500 LOC excluding kernel/data/config/test), we would expect a GitHub issue (RFC) discussing the technical design and justification. Otherwise, we will tag it with
rfc-required
and might not go through the PR.What to Expect for the Reviews
The goal of the vLLM team is to be a transparent reviewing machine. We would like to make the review process transparent and efficient and make sure no contributor feel confused or frustrated. However, the vLLM team is small, so we need to prioritize some PRs over others. Here is what you can expect from the review process:
action-required
label on the PR if there are changes required. The contributor should address the comments and ping the reviewer to re-review the PR.Thank You
Finally, thank you for taking the time to read these guidelines and for your interest in contributing to vLLM. Your contributions make vLLM a great tool for everyone!