[错误]: 如果没有指导性解码后端,则会默默忽略指导性 response_format
I ran into the remaining missing-backend case from NVIDIA/TensorRT#4855 and reproduced it against current TensorRT-LLM main: c76f4a856447820aa1f994b053da7580d69b657d I reduced the issue to the request-vs-engine validation path in BaseLLM._check_arguments(). The regression test I used is: Python def test_check_arguments_rejects_guided_decoding_without_backend() -> None: LLM = _TestLLM(guided_decoding_backend=None) sampling_params = SamplingParams( guided_decoding=GuidedDecodingParams( json={"type": "object"} ) ) with pytest.raises(ValueError, match="guided_decoding_backend"): LLM._check_arguments( prompt_len=1, sampling_params=sampling_params, is_gen_only=False ) Against unmodified current main, the regression test fails with: Failed: DID NOT RAISE <class 'ValueError'> The request contains an active guided-decoding constraint, but the missing backend is not rejected before execution. I also traced the request path and confirmed that guided decoding is only installed when guided_decoding_backend is configured. Without a backend configured, the request can continue without the requested constraint being enforced. I did not run full GPU inference locally because this host does not have an NVIDIA GPU. I ran the regression test inside NVIDIA's TensorRT-LLM release container built from the exact same source commit. Container used: nvcr.io/nvidia/tensorrt-LLM/release:1.3.0rc29.dev202609250232
内容来源: NVIDIA/TensorRT-LLM