mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-02-18 16:55:08 +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/796891ba2a6959bad58c0da9645416c7264349e9/examples/llm-api/llm_guided_decoding.py.
|
|
|
|
.. literalinclude:: ../../../examples/llm-api/llm_guided_decoding.py
|
|
:lines: 4-47
|
|
:language: python
|
|
:linenos:
|