mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-26 05:32:57 +08:00
9 lines
290 B
ReStructuredText
9 lines
290 B
ReStructuredText
Generate text with guided decoding
|
|
==================================
|
|
Source https://github.com/NVIDIA/TensorRT-LLM/tree/main/examples/llm-api/llm_guided_decoding.py.
|
|
|
|
.. literalinclude:: ../../../examples/llm-api/llm_guided_decoding.py
|
|
:lines: 4-50
|
|
:language: python
|
|
:linenos:
|