[BugFix] Fix blocked reasoning parsing with MRV2 (#43808)

Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
Nick Hill
2026-05-28 04:59:34 +00:00
committed by GitHub
parent e54eff769d
commit 626fa9bba5
3 changed files with 36 additions and 22 deletions
+10 -9
View File
@@ -500,14 +500,14 @@ class VllmConfig:
if not HAS_TRITON:
logger.warning_once(
"Model runner v2 requires Triton; using the v1 model runner instead."
"Model Runner V2 requires Triton; using the V1 model runner instead."
)
return False
unsupported = self._get_v2_model_runner_unsupported_features()
if unsupported:
logger.warning_once(
"Model runner v2 does not yet support %s; using the v1 model "
"Model Runner V2 does not yet support %s; using the V1 model "
"runner instead.",
", ".join(unsupported),
)
@@ -1982,10 +1982,6 @@ class VllmConfig:
):
unsupported.append("EAGLE3 with pipeline parallelism")
if self.reasoning_config is not None:
# TODO: add reasoning budget enforcement to ModelRunnerV2.
unsupported.append("reasoning budget enforcement")
if self.parallel_config.enable_dbo:
unsupported.append("dual batch overlap")
@@ -2027,13 +2023,18 @@ class VllmConfig:
def _validate_v2_model_runner(self) -> None:
"""Check for features not yet supported by the V2 model runner."""
if not HAS_TRITON:
raise ValueError("VLLM_USE_V2_MODEL_RUNNER requires Triton.")
raise ValueError("Model Runner V2 requires Triton.")
unsupported = self._get_v2_model_runner_unsupported_features()
if unsupported:
raise ValueError(
"VLLM_USE_V2_MODEL_RUNNER does not yet support: "
+ ", ".join(unsupported)
f"Model Runner V2 does not yet support: {', '.join(unsupported)}"
)
if self.reasoning_config is not None:
logger.warning_once(
"Model Runner V2 does not yet support the thinking_token_budget "
"request parameter. Set VLLM_USE_V2_MODEL_RUNNER=0 if this is required."
)
def validate_block_size(self) -> None: