Skip to content

Conversation

@dr75
Copy link
Contributor

@dr75 dr75 commented Aug 19, 2025

Purpose

When using gpt-oss, vLLM is ignoring the cache_salt request field in chat completions and responses APIs.

Loading the value if set in the request as for other models.

Test Plan

Added a unit test.

@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 frontend gpt-oss Related to GPT-OSS models labels Aug 19, 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 aims to add support for cache_salt for gpt-oss models in chat completions. The implementation correctly adds this for the gpt-oss specific code path. A new unit test is also added to verify this functionality.

However, the new test is parameterized to check for cache_salt support for all model types, not just gpt-oss. The current implementation is incomplete as it does not handle cache_salt for other model types, which will likely cause the test to fail. I've left a comment with a suggestion on how to implement this consistently for all chat models.

@dr75 dr75 force-pushed the gpt-oss-cache-salt branch from 28ec97d to 45ea2a8 Compare August 19, 2025 14:49
dr75 added 2 commits August 19, 2025 14:51
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
@dr75 dr75 force-pushed the gpt-oss-cache-salt branch from 45ea2a8 to 14616b1 Compare August 19, 2025 14:52
Copy link
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

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

Seems that this is also missed in serving_responses.py, can you fix that as well?

@dr75
Copy link
Contributor Author

dr75 commented Aug 19, 2025

Seems that this is also missed in serving_responses.py, can you fix that as well?

Oh, indeed. Will fix it there as well.

Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
Copy link
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) August 19, 2025 15:46
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 19, 2025
@DarkLight1337 DarkLight1337 merged commit 80141bb into vllm-project:main Aug 19, 2025
40 of 42 checks passed
princepride pushed a commit to princepride/vllm that referenced this pull request Aug 20, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
divakar-amd pushed a commit to divakar-amd/vllm_upstream that referenced this pull request Aug 20, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
cyang49 pushed a commit to cyang49/vllm that referenced this pull request Aug 20, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
djmmoss pushed a commit to djmmoss/vllm that referenced this pull request Aug 21, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
Signed-off-by: Duncan Moss <djm.moss@gmail.com>
epwalsh pushed a commit to epwalsh/vllm that referenced this pull request Aug 28, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
xiao-llm pushed a commit to xiao-llm/vllm that referenced this pull request Aug 28, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
Signed-off-by: Xiao Yu <xiao.yu@amd.com>
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Aug 28, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
mengxingkongzhouhan pushed a commit to mengxingkongzhouhan/vllm that referenced this pull request Aug 30, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
zhewenl pushed a commit to zhewenl/vllm that referenced this pull request Sep 3, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
FeiDaLI pushed a commit to FeiDaLI/vllm that referenced this pull request Sep 25, 2025
Signed-off-by: Marko Rosenmueller <5467316+dr75@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend gpt-oss Related to GPT-OSS models 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