Skip to content

Add CB API tests on the correct use of max_tokens #339

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

Merged
merged 6 commits into from
Jul 29, 2025

Conversation

gmarinho2
Copy link
Collaborator

Description

Add tests to check if the API is generating the correct amount of tokens when CB is enabled.

Related Issues

Signed-off-by: Gabriel Marinho <[email protected]>
Copy link

👋 Hi! Thank you for contributing to vLLM support on Spyre.
Just a reminder: Make sure that your code passes all the linting checks, otherwise your PR won't be able to be merged. To do so, first install the linting requirements, then run format.sh and commit the changes. This can be done with uv directly:

uv sync --frozen --group lint --active --inexact

Or this can be done with pip:

uv pip compile --group lint > requirements-lint.txt
pip install -r requirements-lint.txt
bash format.sh

Now you are good to go 🚀

Signed-off-by: Gabriel Marinho <[email protected]>
Signed-off-by: Gabriel Marinho <[email protected]>
Signed-off-by: Gabriel Marinho <[email protected]>
@gmarinho2 gmarinho2 changed the title add CB api tests Add CB API tests on the correct use of max_tokens Jul 25, 2025
Signed-off-by: Gabriel Marinho <[email protected]>
@ckadner ckadner self-requested a review July 28, 2025 16:52
Copy link
Collaborator

@ckadner ckadner left a comment

Choose a reason for hiding this comment

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

Just a quick review on code lint failures

Signed-off-by: Gabriel Marinho <[email protected]>
@gmarinho2 gmarinho2 marked this pull request as ready for review July 29, 2025 16:50
@maxdebayser maxdebayser enabled auto-merge (squash) July 29, 2025 18:05
@github-actions github-actions bot added the ready label Jul 29, 2025
@gmarinho2 gmarinho2 requested a review from ckadner July 29, 2025 18:07
@maxdebayser maxdebayser merged commit 4d98151 into vllm-project:main Jul 29, 2025
15 of 18 checks passed
@pytest.mark.parametrize("max_num_seqs", [2])
@pytest.mark.parametrize(
"backend", [pytest.param("eager", marks=pytest.mark.cpu, id="eager")])
def test__api_cb_rejects_oversized_request(
Copy link
Collaborator

Choose a reason for hiding this comment

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

is that an extra _ between test and api?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh yes, does that prevent it from running?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants