mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-26 21:53:30 +08:00
9 lines
326 B
ReStructuredText
9 lines
326 B
ReStructuredText
Generate text with guided decoding
|
|
==================================
|
|
Source https://github.com/NVIDIA/TensorRT-LLM/blob/9ba14263db0045ed3fa0860f949b5ce320107eb3/examples/llm-api/llm_guided_decoding.py.
|
|
|
|
.. literalinclude:: ../../../examples/llm-api/llm_guided_decoding.py
|
|
:lines: 4-47
|
|
:language: python
|
|
:linenos:
|