@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 2c174420f5
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 11, 23:45 UTC

Reduce validation to a warning (#28749)

Signed-off-by: Alec Solder <alecs@fb.com> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Alec Solder <alecs@fb.com> Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

Alec S committed Dec 5, 2025 at 09:02 UTC 2c174420f5184256159e3d1acfe4184f3f70083e
2 files changed +4 -17
vllm/config/structured_outputs.py
-16
@@ -65,22 +65,6 @@ class StructuredOutputsConfig:
65
66 @model_validator(mode="after")
67 def _validate_structured_output_config(self) -> Self:
68 - # Import here to avoid circular import
69 - from vllm.reasoning.abs_reasoning_parsers import ReasoningParserManager
70 -
71 - if self.reasoning_parser_plugin and len(self.reasoning_parser_plugin) > 3:
72 - ReasoningParserManager.import_reasoning_parser(self.reasoning_parser_plugin)
73 -
74 - valid_reasoning_parsers = ReasoningParserManager.list_registered()
75 - if (
76 - self.reasoning_parser != ""
77 - and self.reasoning_parser not in valid_reasoning_parsers
78 - ):
79 - raise ValueError(
80 - f"invalid reasoning parser: {self.reasoning_parser} "
81 - f"(chose from {{ {','.join(valid_reasoning_parsers)} }})"
82 - )
83 -
68 if self.disable_any_whitespace and self.backend not in ("xgrammar", "guidance"):
69 raise ValueError(
70 "disable_any_whitespace is only supported for "
vllm/reasoning/abs_reasoning_parsers.py
+4 -1
@@ -160,7 +160,10 @@ class ReasoningParserManager:
160 if name in cls.lazy_parsers:
161 return cls._load_lazy_parser(name)
162
163 - raise KeyError(f"Reasoning parser '{name}' not found.")
163 + registered = ", ".join(cls.list_registered())
164 + raise KeyError(
165 + f"Reasoning parser '{name}' not found. Available parsers: {registered}"
166 + )
167
168 @classmethod
169 def list_registered(cls) -> list[str]: