TensorRT-LLMs/_sources/examples/llm_guided_decoding.rst.txt
2025-10-22 01:55:45 +00:00

9 lines
326 B
ReStructuredText

Generate text with guided decoding
==================================
Source https://github.com/NVIDIA/TensorRT-LLM/blob/796891ba2a6959bad58c0da9645416c7264349e9/examples/llm-api/llm_guided_decoding.py.
.. literalinclude:: ../../../examples/llm-api/llm_guided_decoding.py
:lines: 4-47
:language: python
:linenos: