Repository navigation
cp: reject request-supplied chat templates - #7070
Merged
balasaajay merged 1 commit intoSep 9, 2026
Merged
balasaajay merged 1 commit into
balasaajay merged 1 commit into
Conversation
Contributor
|
/ok to test b6bcd0d |
nemo-autobot-origin
Bot
force-pushed
the
chore/cherrypick-4c4be575-to-core-r0.19.0
branch
from
September 3, 2026 22:29
b6bcd0d to
1dac4a1
Compare
Contributor
|
/ok to test 1dac4a1 |
balasaajay
enabled auto-merge (squash)
September 9, 2026 23:25
balasaajay
disabled auto-merge
September 9, 2026 23:25
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Backport the security fix from #6818 to
core_r0.19.0.What changed
Reject request-supplied chat templates and move template tokenization off the event loop.
Details
Cherry-picked merged commit
4c4be575. Conflicts were adapted to the release branch's tokenizer path, and focused sanitization tests were moved into a new test module because the original upstream test file is absent on this branch.Tested
tests/unit_tests/inference/**/*.py: 1,967 passed, 22 skipped