mirror of
https://github.com/deepseek-ai/DeepInfer.git
synced 2026-10-31 00:36:20 +08:00
An unknown schema_type failed three layers away from its cause: the
compiler raised ValueError('Unsupported Grammar Type') inside the try
block, the except ValueError meant for xgrammar's own input errors
rewrapped it as RuntimeError('xgrammar invalid input: ...'), and
try_result()'s except RuntimeError branch then reported it as an
xgrammar timeout. A typo in schema_type surfaced as a timeout.
Expose the supported types from the compiler and check the value in
build() next to the presence check, so a wrong schema_type fails the
same synchronous way a missing one does. The compiler keeps its own
guard, moved ahead of the try so it is no longer rewrapped.
|
||
|---|---|---|
| .. | ||
| _C | ||
| distributed | ||
| engine | ||
| entrypoints | ||
| hugging_face | ||
| model_executor | ||
| npu_ops | ||
| structure_output | ||
| ve | ||
| worker | ||
| __init__.py | ||
| attrdict.py | ||
| config.py | ||
| environ.py | ||
| load_class.py | ||
| logger.py | ||
| model_config_loader.py | ||
| multimodal_tokens.py | ||
| platform.py | ||
| py.typed | ||
| sampling_params.py | ||
| sequence.py | ||
| shared_memory.py | ||
| testing.py | ||
| timer.py | ||
| utils.py | ||