Skip to content

Conversation

sducouedic
Copy link
Collaborator

The continuous batching scheduler checks that the request (ie. prompt + requested tokens) would fit the max_context_len, but didn't account for the fact that the last generated token is a "free" one that doesn't need to be stored in a block

Signed-off-by: Sophie du Couédic <[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 🚀

@yannicks1
Copy link
Collaborator

related to #320

@yannicks1 yannicks1 marked this pull request as draft July 24, 2025 12:35
@sducouedic sducouedic changed the title [CB] fix scheduler free last token [CB] fix scheduler constraint max tokens Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants