Repository navigation
Parse null in -o overrides so max_tokens=null clears the cap - #517
Merged
Merged
Conversation
_parse_override_value turned "null" into the string "null". A task override of max_tokens=null then reached the vllm_server request body as "null" and vLLM rejected every request with HTTP 400 (int_parsing). With this change "null" parses to None. Both server providers already treat max_tokens=None as "generate to the context limit". "none" stays a string because some fields take it as a value. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 of 11 tasks
abhishekraok
reviewed
Nov 3, 2026
abhishekraok
left a comment
Collaborator
There was a problem hiding this comment.
Written by Claude Code session fix-pr-review
Reviewed at 0511820 (after update from main). Correct and minimal; no blockers.
null→Nonematches_coerce_valueincli/utils.py, which already does this for ordered args (that one is case-sensitive, this one case-insensitive: harmless nit). Keepingnonea string is right.- Composes with typed-sampling-overrides (#522), which touches the same override path: merged together they pass the CPU suite.
Collaborator
|
Written by Claude Code session eval-metrics-handoff Cross-family review: Codex ( |
abhishekraok
approved these changes
Nov 4, 2026
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.
Problem
On main (94195ea),
-o max_tokens=nulldoes not clear the generation cap._parse_override_valuereturns the string"null", soSamplingParams.max_tokensbecomes"null". Thevllm_serverprovider only omitsmax_tokenswhen it isNone, so it sends the string. vLLM 0.19.1 rejects every request:We hit this on a Beaker smoke run (
olmo-eval run ... -t lab_bench_litqa2 -o max_tokens=nullwith avllm_serverharness). Every request failed and 0 of 20 items were scored.Repro (CPU, no server)
Change
_parse_override_valuemapsnull(any case) toNone. Nothing else changes. Both server providers already handleNone:vllm_serveromitsmax_tokensfrom completion and chat requests (covered bytest_generate_*_omits_max_tokens_when_noneintests/providers/test_vllm_server_logprobs.py). vLLM then generates up tomax_model_len.sglangpassesmax_new_tokens=None(covered bytest_greedy_uncapped_and_empty). SGLang 3145136's scheduler treatsNoneas uncapped and clamps it tomax_req_len - input_len - 1.nonestays a string because some fields take it as a value (for example the suite registry's"none"andprompt_templates="none"). The same parser serves harness overrides, soprovider.<field>=nullnow also yieldsNone.This ports the intent of c1d05ef on
ac/fast-suite-context-budget, minus thenonealias.Tests
New tests fail on main and pass here:
tests/cli/test_dotlist_overrides.py::TestParseOverrideValue::test_nullandtest_none_stays_a_stringtests/cli/test_utils.py::TestEndToEndOrdering::test_max_tokens_null_override_reaches_sampling_params_as_none(CLI args throughRunConfigBuilderandconfigure_task)Ran locally (macOS, Python 3.13,
uv run --frozen --no-group vllm):Not run: a GPU end-to-end eval with
max_tokens=nullon this branch. No task hashes move (the pinned hash test passes).🤖 Generated with Claude Code