[BugFix] Fix blocked reasoning parsing with MRV2 (#43808)
Signed-off-by: Nick Hill <nickhill123@gmail.com>
This commit is contained in:
+10
-9
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user