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

[Bugfix] [SpecDecode] Default speculative_draft_tensor_parallel_size to 1 when using MLPSpeculator #7105

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

tdoublep
Copy link
Member

@tdoublep tdoublep commented Aug 3, 2024

Let's default the value of speculative_draft_tensor_parallel_size to 1 when we detect MLPSpeculator, since this is the only case that works right now.

cc @njhill

…culator

Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
Copy link

github-actions bot commented Aug 3, 2024

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which consists a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of default ones by unblocking the steps in your fast-check build on Buildkite UI.

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:

  • Comment /ready on the PR
  • Add ready label to the PR
  • Enable auto-merge.

🚀

Comment on lines -1145 to -1146
speculative_draft_tensor_parallel_size = \
target_parallel_config.tensor_parallel_size
Copy link
Member Author

@tdoublep tdoublep Aug 3, 2024

Choose a reason for hiding this comment

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

Looking at this logic now, I don't think it makes sense since below (L1157) we explicitly say that speculative_draft_tensor_parallel_size cannot be set to any value other than 1, but we default it to be the target_parallel_config.tensor_parallel_size which can be greater than 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

Should we just default it to 1 in all cases instead?

Copy link
Member

Choose a reason for hiding this comment

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

I think for regular draft models it might currently work either with tp=1 or tp same as target model. That could be the reason for this logic (but it strangely still doesn't allow setting tp to the same as the target model explicitly).

Copy link
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

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

Thanks @tdoublep!

@njhill njhill added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 3, 2024
@njhill njhill merged commit b1c9aa3 into vllm-project:main Aug 4, 2024
80 checks passed
sfc-gh-mkeralapura pushed a commit to sfc-gh-mkeralapura/vllm that referenced this pull request Aug 12, 2024
…to 1 when using MLPSpeculator (vllm-project#7105)

Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
kylesayrs pushed a commit to neuralmagic/vllm that referenced this pull request Aug 17, 2024
…to 1 when using MLPSpeculator (vllm-project#7105)

Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
…to 1 when using MLPSpeculator (vllm-project#7105)

Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
Signed-off-by: Alvant <alvasian@yandex.ru>
KuntaiDu pushed a commit to KuntaiDu/vllm that referenced this pull request Nov 20, 2024
…to 1 when using MLPSpeculator (vllm-project#7105)

Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants