chunk_id large_stringlengths 36 36 | doc_type large_stringclasses 2
values | category large_stringclasses 17
values | document large_stringclasses 50
values | version_raw large_stringclasses 590
values | chunk_index int64 0 262 | text large_stringlengths 11 5.69k | file_path large_stringclasses 882
values |
|---|---|---|---|---|---|---|---|
1725110a-3cf1-52f6-8014-1a8f65166d4d | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 120rc8 | 2 | #### NVFP4 KV Cache[#](#nvfp4-kv-cache "Link to this heading")
To enable NVFP4 KV cache, offline quantization with ModelOpt is required. Please follow the below section for instructions.
After the quantization is done, the NVFP4 KV cache option can be set by:
```None
from tensorrt_llm import LLM
from tensorrt_llm.llm... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_120rc8.md |
a87adb02-08ae-52b6-b5dc-bde0557c834c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 120rc8 | 3 | #### NVFP4 KV Cache[#](#id1 "Link to this heading")
To generate the checkpoint for NVFP4 KV cache:
```None
git clone https://github.com/NVIDIA/Model-Optimizer.git
cd TensorRT-Model-Optimizer/examples/llm_ptq
scripts/huggingface_example.sh --model <huggingface_model_card> --quant fp8 --kv_cache_quant nvfp4
```
Note t... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_120rc8.md |
70d7515f-a624-5f3b-a90c-80d184f6915f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 120rc8 | 4 | | GPT-OSS | . | Y | . | . | . | Y | . | . | . | . | . |
| LLaMA | Y | . | Y | . | . | Y | . | . | Y | . | Y |
| LLaMA-v2 | Y | . | Y | . | . | Y | Y | Y | Y | . | Y |
| LLaMA 3 | . | . | . | . | Y | Y | Y | Y | . | . | . |
| LLaMA 4 | Y | . | Y | . | . | Y | . | . | . | . | . |
| Mistral | . | . | Y | . | . | Y | . | .... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_120rc8.md |
fe359e91-4f10-53b0-bee2-804c8f5e68d8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 120rc8 | 5 | The language component decides which quantization methods are supported by a given multi-modal model.
## Hardware Support Matrix[#](#hardware-support-matrix "Link to this heading")
| Model | NVFP4 | MXFP4 | FP8(per tensor) | FP8(block scaling) | FP8(rowwise) | FP8 KV Cache | NVFP4 KV Cache | W4A8 AWQ | W4A16 AWQ | W4... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_120rc8.md |
88f77225-a868-589d-9e63-2c9799d28d80 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 120rc8 | 6 | ## Quick Links[#](#quick-links "Link to this heading")
* [Pre-quantized Models by ModelOpt](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4)
* [ModelOpt Support Matrix](https://nvidia.github.io/Model-Optimizer/guides/0_support_matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_120rc8.md |
29ef6a6e-ef13-53da-8c5a-11575db0e98c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc0 | 0 | # Quantization#
Source: https://nvidia.github.io/TensorRT-LLM/1.3.0rc0/features/quantization.html
Version: 1.3.0rc0
## Quantization in TensorRT LLM[#](#quantization-in-tensorrt-llm "Link to this heading")
Quantization is a technique used to reduce memory footprint and computational cost by converting the model’s wei... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc0.md |
1d5802b0-c537-555e-9e6a-c4b1bdea6870 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc0 | 1 | ### Running Pre-quantized Models[#](#running-pre-quantized-models "Link to this heading")
TensorRT LLM can directly run [pre-quantized models](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) generated with the [NVIDIA Model Optimizer](https://github.com/NVIDIA/Model-Optimizer).
```... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc0.md |
9601f70b-ae89-575f-9074-86363257512e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc0 | 2 | #### NVFP4 KV Cache[#](#nvfp4-kv-cache "Link to this heading")
To enable NVFP4 KV cache, offline quantization with ModelOpt is required. Please follow the below section for instructions.
After the quantization is done, the NVFP4 KV cache option can be set by:
```None
from tensorrt_llm import LLM
from tensorrt_llm.llm... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc0.md |
9185851a-bcee-517d-8003-2c39151eed57 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc0 | 3 | #### NVFP4 KV Cache[#](#id1 "Link to this heading")
To generate the checkpoint for NVFP4 KV cache:
```None
git clone https://github.com/NVIDIA/Model-Optimizer.git
cd TensorRT-Model-Optimizer/examples/llm_ptq
scripts/huggingface_example.sh --model <huggingface_model_card> --quant fp8 --kv_cache_quant nvfp4
```
Note t... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc0.md |
1065119a-de39-58db-9a47-cf50ee25c3e4 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc0 | 4 | | GPT-OSS | . | Y | . | . | . | Y | . | . | . | . | . |
| LLaMA | Y | . | Y | . | . | Y | . | . | Y | . | Y |
| LLaMA-v2 | Y | . | Y | . | . | Y | Y | Y | Y | . | Y |
| LLaMA 3 | . | . | . | . | Y | Y | Y | Y | . | . | . |
| LLaMA 4 | Y | . | Y | . | . | Y | . | . | . | . | . |
| Mistral | . | . | Y | . | . | Y | . | .... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc0.md |
b2faea39-1a57-505e-8ed2-bd26ccbf2944 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc0 | 5 | The language component decides which quantization methods are supported by a given multi-modal model.
## Hardware Support Matrix[#](#hardware-support-matrix "Link to this heading")
| Model | NVFP4 | MXFP4 | FP8(per tensor) | FP8(block scaling) | FP8(rowwise) | FP8 KV Cache | NVFP4 KV Cache | W4A8 AWQ | W4A16 AWQ | W4... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc0.md |
266a67bb-e465-5e3a-892d-7bccae5198ef | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc0 | 6 | ## Quick Links[#](#quick-links "Link to this heading")
* [Pre-quantized Models by ModelOpt](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4)
* [ModelOpt Support Matrix](https://nvidia.github.io/Model-Optimizer/guides/0_support_matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc0.md |
20347f59-0c96-54fe-a5ba-408df5d2debf | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc1 | 0 | # Quantization#
Source: https://nvidia.github.io/TensorRT-LLM/1.3.0rc1/features/quantization.html
Version: 1.3.0rc1
## Quantization in TensorRT LLM[#](#quantization-in-tensorrt-llm "Link to this heading")
Quantization is a technique used to reduce memory footprint and computational cost by converting the model’s wei... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc1.md |
9260b267-46dc-528d-9567-9d1d5a4c7f9b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc1 | 1 | ### Running Pre-quantized Models[#](#running-pre-quantized-models "Link to this heading")
TensorRT LLM can directly run [pre-quantized models](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) generated with the [NVIDIA Model Optimizer](https://github.com/NVIDIA/Model-Optimizer).
```... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc1.md |
9e82eb04-afaf-5d81-9c74-d8c0f249c42c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc1 | 2 | #### NVFP4 KV Cache[#](#nvfp4-kv-cache "Link to this heading")
To enable NVFP4 KV cache, offline quantization with ModelOpt is required. Please follow the below section for instructions.
After the quantization is done, the NVFP4 KV cache option can be set by:
```None
from tensorrt_llm import LLM
from tensorrt_llm.llm... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc1.md |
15def978-d883-54e4-bb52-ebe2b2b038f1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc1 | 3 | #### NVFP4 KV Cache[#](#id1 "Link to this heading")
To generate the checkpoint for NVFP4 KV cache:
```None
git clone https://github.com/NVIDIA/Model-Optimizer.git
cd TensorRT-Model-Optimizer/examples/llm_ptq
scripts/huggingface_example.sh --model <huggingface_model_card> --quant fp8 --kv_cache_quant nvfp4
```
Note t... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc1.md |
0ed409c1-4d1b-5873-ad5b-41ab4aad5c18 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc1 | 4 | | GPT-OSS | . | Y | . | . | . | Y | . | . | . | . | . |
| LLaMA | Y | . | Y | . | . | Y | . | . | Y | . | Y |
| LLaMA-v2 | Y | . | Y | . | . | Y | Y | Y | Y | . | Y |
| LLaMA 3 | . | . | . | . | Y | Y | Y | Y | . | . | . |
| LLaMA 4 | Y | . | Y | . | . | Y | . | . | . | . | . |
| Mistral | . | . | Y | . | . | Y | . | .... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc1.md |
b3eacdc5-a034-5780-b4bb-d92c07251ad8 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc1 | 5 | The language component decides which quantization methods are supported by a given multi-modal model.
## Hardware Support Matrix[#](#hardware-support-matrix "Link to this heading")
| Model | NVFP4 | MXFP4 | FP8(per tensor) | FP8(block scaling) | FP8(rowwise) | FP8 KV Cache | NVFP4 KV Cache | W4A8 AWQ | W4A16 AWQ | W4... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc1.md |
e82394df-2cc0-55de-9b03-6811a73d639b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc1 | 6 | ## Quick Links[#](#quick-links "Link to this heading")
* [Pre-quantized Models by ModelOpt](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4)
* [ModelOpt Support Matrix](https://nvidia.github.io/Model-Optimizer/guides/0_support_matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc1.md |
7deb6277-9932-5cc0-b756-b55c8bc04ce5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc2 | 0 | # Quantization#
Source: https://nvidia.github.io/TensorRT-LLM/1.3.0rc2/features/quantization.html
Version: 1.3.0rc2
## Quantization in TensorRT LLM[#](#quantization-in-tensorrt-llm "Link to this heading")
Quantization is a technique used to reduce memory footprint and computational cost by converting the model’s wei... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc2.md |
1198570a-49f4-5462-85c2-c5917b102912 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc2 | 1 | ### Running Pre-quantized Models[#](#running-pre-quantized-models "Link to this heading")
TensorRT LLM can directly run [pre-quantized models](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) generated with the [NVIDIA Model Optimizer](https://github.com/NVIDIA/Model-Optimizer).
```... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc2.md |
0faf4e71-2fbf-58fc-89a6-85abb4cdae12 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc2 | 2 | #### NVFP4 KV Cache[#](#nvfp4-kv-cache "Link to this heading")
To enable NVFP4 KV cache, offline quantization with ModelOpt is required. Please follow the below section for instructions.
After the quantization is done, the NVFP4 KV cache option can be set by:
```None
from tensorrt_llm import LLM
from tensorrt_llm.llm... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc2.md |
6056d298-773e-5139-b2b3-3b1fec931a16 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc2 | 3 | #### NVFP4 KV Cache[#](#id1 "Link to this heading")
To generate the checkpoint for NVFP4 KV cache:
```None
git clone https://github.com/NVIDIA/Model-Optimizer.git
cd TensorRT-Model-Optimizer/examples/llm_ptq
scripts/huggingface_example.sh --model <huggingface_model_card> --quant fp8 --kv_cache_quant nvfp4
```
Note t... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc2.md |
4208c107-8da4-5577-981f-6988523fd0da | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc2 | 4 | | GPT-OSS | . | Y | . | . | . | Y | . | . | . | . | . |
| LLaMA | Y | . | Y | . | . | Y | . | . | Y | . | Y |
| LLaMA-v2 | Y | . | Y | . | . | Y | Y | Y | Y | . | Y |
| LLaMA 3 | . | . | . | . | Y | Y | Y | Y | . | . | . |
| LLaMA 4 | Y | . | Y | . | . | Y | . | . | . | . | . |
| Mistral | . | . | Y | . | . | Y | . | .... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc2.md |
5795fa49-f765-521d-98b3-f2c967003ed4 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc2 | 5 | The language component decides which quantization methods are supported by a given multi-modal model.
## Hardware Support Matrix[#](#hardware-support-matrix "Link to this heading")
| Model | NVFP4 | MXFP4 | FP8(per tensor) | FP8(block scaling) | FP8(rowwise) | FP8 KV Cache | NVFP4 KV Cache | W4A8 AWQ | W4A16 AWQ | W4... | large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc2.md |
5e1fed1b-90ec-5318-86c9-ab8175f1faac | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quantization | 130rc2 | 6 | ## Quick Links[#](#quick-links "Link to this heading")
* [Pre-quantized Models by ModelOpt](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4)
* [ModelOpt Support Matrix](https://nvidia.github.io/Model-Optimizer/guides/0_support_matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quantization/quantization_130rc2.md |
24556e87-e02c-536f-8cba-8902dca8694f | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.0.0/quick-start-guide.html
Version: 1.0.0
This is the starting point to try out TensorRT LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT LLM.
## Launch Docker on a node with NVIDIA G... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100.md |
c7a8466d-dc67-5691-b587-f7a85c8c5eaa | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100 | 1 | If you are running trtllm-server inside a Docker container, you have two options for sending API requests:
1. Expose a port (e.g., 8000) to allow external access to the server from outside the container.
2. Open a new terminal and use the following command to directly attach to the running container:
```None
docker e... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100.md |
a9fd0c27-8b41-5dc0-b99e-b95866609b25 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100 | 2 | *Example Output*
```None
{
"id": "chatcmpl-ef648e7489c040679d87ed12db5d3214",
"object": "chat.completion",
"created": 1741966075,
"model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "New York is a city in the n... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100.md |
5d5a27a9-ec0b-5fab-8c9f-f4c1f0a6949c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100 | 3 | The LLM API is a Python API designed to facilitate setup and inference with TensorRT LLM directly within Python. It enables model optimization by simply specifying a HuggingFace repository name or a model checkpoint. The LLM API streamlines the process by managing model loading, optimization, and inference, all through... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100.md |
247f45a0-2599-5ecf-947a-d7f4a43d7206 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100 | 4 | 20 for output in llm.generate(prompts, sampling_params):
21 print(
22 f"Prompt: {output.prompt!r}, Generated text: {output.outputs[0].text!r}"
23 )
24
25 # Got output like
26 # Prompt: 'Hello, my name is', Generated text: '\n\nJane Smith. I am a student pursuing my degree in Computer S... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100.md |
c8d630ed-e611-510d-a1f5-3f47ce9e0775 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100 | 5 | You can also directly load pre-quantized models [quantized checkpoints on Hugging Face](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) in the LLM constructor.
To learn more about the LLM API, check out the [LLM API Introduction](llm-api/index.html) and [LLM Examples](examples/llm_ap... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100.md |
41450701-0178-5abf-adfa-99910688bc86 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100 | 6 | * **CLI Reference** - Explore TensorRT LLM command-line tools:
+ [`trtllm-serve`](commands/trtllm-serve/trtllm-serve.html) - Deploy models for online serving
+ [`trtllm-bench`](commands/trtllm-bench.html) - Benchmark model performance
+ [`trtllm-eval`](commands/trtllm-eval.html) - Evaluate model accuracy
| large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100.md |
1bac0208-2791-5524-af20-c371f1872565 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.0.0rc5/quick-start-guide.html
Version: 1.0.0rc5
This is the starting point to try out TensorRT-LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT-LLM.
## Installation[#](#installation "... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
7d62cb5c-5076-5ce8-8e2f-70587a4f2c1c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 1 | The following examples can most easily be executed using the prebuilt [Docker release container available on NGC](https://registry.ngc.nvidia.com/orgs/nvstaging/teams/tensorrt-llm/containers/release) (see also [release.md](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docker/release.md) on GitHub). Ensure to run the... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
cd5e2618-8838-5880-b832-aef18d3af20c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 2 | 6 # Model could accept HF model name, a path to local HF model,
7 # or TensorRT Model Optimizer's quantized checkpoints like nvidia/Llama-3.1-8B-Instruct-FP8 on HF.
8 llm = LLM(model="TinyLlama/TinyLlama-1.1B-Chat-v1.0")
9
10 # Sample prompts.
11 prompts = [
12 "Hello, my name is",
13 "... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
6bd8f3a3-0133-58ab-8190-88753f54edad | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 3 | 27 # Prompt: 'The president of the United States is', Generated text: 'likely to nominate a new Supreme Court justice to fill the seat vacated by the death of Antonin Scalia. The Senate should vote to confirm the'
28 # Prompt: 'The capital of France is', Generated text: 'Paris.'
29 # Prompt: 'The future of AI ... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
315b6bd4-840c-5cf1-96bf-0f6ed7d28e2e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 4 | ## Deploy with trtllm-serve[#](#deploy-with-trtllm-serve "Link to this heading")
You can use the `trtllm-serve` command to start an OpenAI compatible server to interact with a model.
To start the server, you can run a command like the following example:
```None
trtllm-serve "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
```
A... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
e85d5974-f6c8-52f4-8c69-4475ca32811b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 5 | "id": "chatcmpl-ef648e7489c040679d87ed12db5d3214",
"object": "chat.completion",
"created": 1741966075,
"model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "New York is a city in the northeastern United States, l... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
5b8c0299-961d-58d8-a5a9-e341dd623f38 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 6 | docker exec -it <container_id> bash
```
## Model Definition API[#](#model-definition-api "Link to this heading")
### Prerequisites[#](#prerequisites "Link to this heading")
* This quick start uses the Meta Llama 3.1 model. This model is subject to a particular [license](https://llama.meta.com/llama-downloads/). To d... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
9e4913c7-5294-5dde-b30d-f335b142e0d1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 7 | ### Compile the Model into a TensorRT Engine[#](#compile-the-model-into-a-tensorrt-engine "Link to this heading")
Use the [Llama model definition](https://github.com/NVIDIA/TensorRT-LLM/tree/main/examples/models/core/llama) from the `examples/models/core/llama` directory of the GitHub repository.
The model definition ... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
07bd2323-00ec-55af-8995-e1f083572222 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 8 | trtllm-build --checkpoint_dir llama-3.1-8b-ckpt \
--gemm_plugin float16 \
--output_dir ./llama-3.1-8b-engine
```
Container image tags
In the example shell commands, `x.y.z` corresponds to the TensorRT-LLM container
version to use. If omitted, `IMAGE_TAG` will default to `tensorrt_llm.__version__`
(e.g., this ... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
cba2e1e2-2271-5b9c-aef2-638930222cad | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 9 | When you create a model definition with the TensorRT-LLM API, you build a graph of operations from [NVIDIA TensorRT](https://developer.nvidia.com/tensorrt) primitives that form the layers of your neural network. These operations map to specific kernels; prewritten programs for the GPU.
In this example, we included the... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
07546fc3-9985-5578-a0e8-12eb1e51b3e6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 10 | ### Run the Model[#](#run-the-model "Link to this heading")
Now that you have the model engine, run the engine and perform inference.
```None
python3 ../run.py --engine_dir ./llama-3.1-8b-engine --max_output_len 100 --tokenizer_dir Meta-Llama-3.1-8B-Instruct --input_text "How do I count to nine in French?"
```
### ... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
6fd8fb34-41dd-5896-af7f-a44fed323f95 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc5 | 11 | git clone https://github.com/triton-inference-server/tensorrtllm_backend.git
cd tensorrtllm_backend
```
2. Refer to [End to end workflow to run llama 7b](https://github.com/triton-inference-server/tensorrtllm_backend/blob/main/docs/llama.md) in the TensorRT-LLM backend repository to deploy the model with Triton Infere... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc5.md |
3d4beeab-35ae-5877-809e-6b54f230a8e1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.0.0rc6/quick-start-guide.html
Version: 1.0.0rc6
This is the starting point to try out TensorRT-LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT-LLM.
## Installation[#](#installation "... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
decdbf09-edfa-5aa9-a1b7-f8f57792a85c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 1 | The following examples can most easily be executed using the prebuilt [Docker release container available on NGC](https://registry.ngc.nvidia.com/orgs/nvstaging/teams/tensorrt-llm/containers/release) (see also [release.md](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docker/release.md) on GitHub). Ensure to run the... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
7d369f57-2d06-544b-bac4-6ce28347f625 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 2 | The LLM API is a Python API designed to facilitate setup and inference with TensorRT-LLM directly within Python. It enables model optimization by simply specifying a HuggingFace repository name or a model checkpoint. The LLM API streamlines the process by managing checkpoint conversion, engine building, engine loading,... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
67430ca4-1382-5b0c-baa0-28401f9a6206 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 3 | 19
20 for output in llm.generate(prompts, sampling_params):
21 print(
22 f"Prompt: {output.prompt!r}, Generated text: {output.outputs[0].text!r}"
23 )
24
25 # Got output like
26 # Prompt: 'Hello, my name is', Generated text: '\n\nJane Smith. I am a student pursuing my degree in Compute... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
d6f579e0-294d-5e3e-81e5-8069a3d0c3f1 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 4 | You can also directly load TensorRT Model Optimizer’s [quantized checkpoints on Hugging Face](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) in the LLM constructor.
To learn more about the LLM API, check out the [LLM API Introduction](llm-api/index.html) and [LLM Examples](examples/... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
f23b26e5-d10a-5895-ad0d-a5803bebac81 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 5 | > ```None
> docker exec -it <container_id> bash
> ```
After the server has started, you can access well-known OpenAI endpoints such as `v1/chat/completions`.
Inference can then be performed using examples similar to the one provided below, from a separate terminal.
```None
curl -X POST http://localhost:8000/v1/chat/c... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
ebe1df98-f64b-58c1-b88d-264dd80a4ca5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 6 | "content": "New York is a city in the northeastern United States, located on the eastern coast of the state of New York.",
"tool_calls": []
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null
}
],
"usage": {
"prompt_tokens": 43,
"total_tokens": 69,
... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
de8d93b6-93f5-5105-a008-f28e59da3943 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 100rc6 | 7 | ## Related Information[#](#related-information "Link to this heading")
* [Best Practices Guide](https://nvidia.github.io/TensorRT-LLM/performance/performance-tuning-guide/index.html)
* [Support Matrix](https://nvidia.github.io/TensorRT-LLM/reference/support-matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_100rc6.md |
5058035d-77f7-520c-bf60-0664733f585c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0/quick-start-guide.html
Version: 1.1.0
This is the starting point to try out TensorRT LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT LLM.
## Launch Docker on a node with NVIDIA G... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110.md |
b8c54776-5d17-51b4-a446-9ffe4b2d874a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110 | 1 | Ensure your GPU supports FP8 quantization before running the following:
```None
trtllm-serve "nvidia/Qwen3-8B-FP8"
```
For more options, browse the full [collection of generative models](https://huggingface.co/collections/nvidia/inference-optimized-checkpoints-with-model-optimizer) that have been quantized and optimi... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110.md |
03b27fc6-b0ab-5c2f-ad0e-19e4b203a4bf | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110 | 2 | -H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
"messages":[{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Where is New York? Tell me in a single senten... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110.md |
8b283bc3-0295-503f-af46-54730360665c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110 | 3 | For detailed examples and command syntax, refer to the [trtllm-serve](commands/trtllm-serve/trtllm-serve.html) section.
## Run Offline inference with LLM API[#](#run-offline-inference-with-llm-api "Link to this heading")
The LLM API is a Python API designed to facilitate setup and inference with TensorRT LLM directly... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110.md |
722405c4-4c5e-5a0d-9b94-5f5b81958b96 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110 | 4 | 12 "Hello, my name is",
13 "The capital of France is",
14 "The future of AI is",
15 ]
16
17 # Create a sampling params.
18 sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
19
20 for output in llm.generate(prompts, sampling_params):
21 print(
22 f"Prompt: {... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110.md |
a22f6f42-c248-5555-a900-e6b0498bebaa | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110 | 5 | 29 # Prompt: 'The future of AI is', Generated text: 'an exciting time for us. We are constantly researching, developing, and improving our platform to create the most advanced and efficient model available. We are'
30
31
32if __name__ == '__main__':
33 main()
```
You can also directly load pre-quantized models [... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110.md |
be687af5-e374-510c-9923-e7037537c984 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110 | 6 | * **[Deployment Guide](examples/llm_api_examples.html)** - Comprehensive examples for deploying LLM inference in various scenarios
* **[Model Support](models/supported-models.html)** - Check which models are supported and how to add new ones
* **CLI Reference** - Explore TensorRT LLM command-line tools:
+ [`trtllm-s... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110.md |
f3a9d3a5-1578-5380-bf83-4030ee979539 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc0/quick-start-guide.html
Version: 1.1.0rc0
This is the starting point to try out TensorRT-LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT-LLM.
## Installation[#](#installation "... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
10abdf0a-806f-5971-a2d3-2ad5cb4d4a51 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 1 | The following examples can most easily be executed using the prebuilt [Docker release container available on NGC](https://registry.ngc.nvidia.com/orgs/nvstaging/teams/tensorrt-llm/containers/release) (see also [release.md](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docker/release.md) on GitHub). Ensure to run the... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
85484835-56fa-53b5-97c5-4fd9451c62df | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 2 | The LLM API is a Python API designed to facilitate setup and inference with TensorRT-LLM directly within Python. It enables model optimization by simply specifying a HuggingFace repository name or a model checkpoint. The LLM API streamlines the process by managing checkpoint conversion, engine building, engine loading,... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
094e1d9b-b7aa-5601-9f37-f8ae3da9f27e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 3 | 19
20 for output in llm.generate(prompts, sampling_params):
21 print(
22 f"Prompt: {output.prompt!r}, Generated text: {output.outputs[0].text!r}"
23 )
24
25 # Got output like
26 # Prompt: 'Hello, my name is', Generated text: '\n\nJane Smith. I am a student pursuing my degree in Compute... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
d6a964a3-d6c3-575b-924c-81200b4a2748 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 4 | You can also directly load TensorRT Model Optimizer’s [quantized checkpoints on Hugging Face](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) in the LLM constructor.
To learn more about the LLM API, check out the [LLM API Introduction](llm-api/index.html) and [LLM Examples](examples/... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
dfb6b481-96d2-5171-8100-56be7665de7c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 5 | > ```None
> docker exec -it <container_id> bash
> ```
After the server has started, you can access well-known OpenAI endpoints such as `v1/chat/completions`.
Inference can then be performed using examples similar to the one provided below, from a separate terminal.
```None
curl -X POST http://localhost:8000/v1/chat/c... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
2d0665b3-880f-5545-be86-cbb65e10d30a | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 6 | "content": "New York is a city in the northeastern United States, located on the eastern coast of the state of New York.",
"tool_calls": []
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null
}
],
"usage": {
"prompt_tokens": 43,
"total_tokens": 69,
... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
23a43716-f408-56df-badf-0bbdbe2164cb | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc0 | 7 | ## Related Information[#](#related-information "Link to this heading")
* [Best Practices Guide](https://nvidia.github.io/TensorRT-LLM/performance/performance-tuning-guide/index.html)
* [Support Matrix](https://nvidia.github.io/TensorRT-LLM/reference/support-matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc0.md |
06c514a4-3c25-5370-a3c1-63f4e9376f73 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc1/quick-start-guide.html
Version: 1.1.0rc1
This is the starting point to try out TensorRT-LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT-LLM.
## Installation[#](#installation "... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
fce999f9-894e-552f-946c-fcf59bfe2ff2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 1 | The following examples can most easily be executed using the prebuilt [Docker release container available on NGC](https://registry.ngc.nvidia.com/orgs/nvstaging/teams/tensorrt-llm/containers/release) (see also [release.md](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docker/release.md) on GitHub). Ensure to run the... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
e4d9bf3e-d3e0-5e2a-869e-fdf0500ccc3b | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 2 | The LLM API is a Python API designed to facilitate setup and inference with TensorRT-LLM directly within Python. It enables model optimization by simply specifying a HuggingFace repository name or a model checkpoint. The LLM API streamlines the process by managing checkpoint conversion, engine building, engine loading,... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
5a853aeb-0014-50b1-a745-baac2220b3f7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 3 | 19
20 for output in llm.generate(prompts, sampling_params):
21 print(
22 f"Prompt: {output.prompt!r}, Generated text: {output.outputs[0].text!r}"
23 )
24
25 # Got output like
26 # Prompt: 'Hello, my name is', Generated text: '\n\nJane Smith. I am a student pursuing my degree in Compute... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
95965687-0224-56b1-a77b-e39c5274d9ae | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 4 | You can also directly load TensorRT Model Optimizer’s [quantized checkpoints on Hugging Face](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) in the LLM constructor.
To learn more about the LLM API, check out the [LLM API Introduction](llm-api/index.html) and [LLM Examples](examples/... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
c194c175-0f76-5c03-b775-c46578bd00b9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 5 | > ```None
> docker exec -it <container_id> bash
> ```
After the server has started, you can access well-known OpenAI endpoints such as `v1/chat/completions`.
Inference can then be performed using examples similar to the one provided below, from a separate terminal.
```None
curl -X POST http://localhost:8000/v1/chat/c... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
9f73e756-978e-5c3b-aac8-708f51294b62 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 6 | "content": "New York is a city in the northeastern United States, located on the eastern coast of the state of New York.",
"tool_calls": []
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null
}
],
"usage": {
"prompt_tokens": 43,
"total_tokens": 69,
... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
f2f8dea5-71fc-51f8-b536-866ebcf4a7b7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc1 | 7 | ## Related Information[#](#related-information "Link to this heading")
* [Best Practices Guide](https://nvidia.github.io/TensorRT-LLM/performance/performance-tuning-guide/index.html)
* [Support Matrix](https://nvidia.github.io/TensorRT-LLM/reference/support-matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc1.md |
13e611b0-ebf2-5b8a-afb5-3cd795be4ab5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc2/quick-start-guide.html
Version: 1.1.0rc2
This is the starting point to try out TensorRT-LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT-LLM.
## Installation[#](#installation "... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
2660473a-b193-596d-b1c8-e8419727ed16 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 1 | The following examples can most easily be executed using the prebuilt [Docker release container available on NGC](https://registry.ngc.nvidia.com/orgs/nvstaging/teams/tensorrt-llm/containers/release) (see also [release.md](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docker/release.md) on GitHub). Ensure to run the... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
a5d916a4-4976-5458-b8d0-14a911d0da13 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 2 | The LLM API is a Python API designed to facilitate setup and inference with TensorRT-LLM directly within Python. It enables model optimization by simply specifying a HuggingFace repository name or a model checkpoint. The LLM API streamlines the process by managing checkpoint conversion, engine building, engine loading,... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
ee72f273-2f93-596f-88bf-ec9f3fc58201 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 3 | 19
20 for output in llm.generate(prompts, sampling_params):
21 print(
22 f"Prompt: {output.prompt!r}, Generated text: {output.outputs[0].text!r}"
23 )
24
25 # Got output like
26 # Prompt: 'Hello, my name is', Generated text: '\n\nJane Smith. I am a student pursuing my degree in Compute... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
d3055748-b997-5d93-a715-f112e1bb8fc5 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 4 | You can also directly load TensorRT Model Optimizer’s [quantized checkpoints on Hugging Face](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) in the LLM constructor.
To learn more about the LLM API, check out the [LLM API Introduction](llm-api/index.html) and [LLM Examples](examples/... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
87affeed-b72b-5d1f-88fd-b1d4bd84a138 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 5 | > ```None
> docker exec -it <container_id> bash
> ```
After the server has started, you can access well-known OpenAI endpoints such as `v1/chat/completions`.
Inference can then be performed using examples similar to the one provided below, from a separate terminal.
```None
curl -X POST http://localhost:8000/v1/chat/c... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
8dfb2d6c-e5d2-5b8a-a787-a9f412763fc2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 6 | "content": "New York is a city in the northeastern United States, located on the eastern coast of the state of New York.",
"tool_calls": []
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null
}
],
"usage": {
"prompt_tokens": 43,
"total_tokens": 69,
... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
cfd1f8e6-5d1b-5371-8830-b01b6f3cf1c4 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc2 | 7 | ## Related Information[#](#related-information "Link to this heading")
* [Best Practices Guide](https://nvidia.github.io/TensorRT-LLM/performance/performance-tuning-guide/index.html)
* [Support Matrix](https://nvidia.github.io/TensorRT-LLM/reference/support-matrix.html)
| large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc2.md |
d36b7266-bc03-540a-ac9d-1a5245061658 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc3/quick-start-guide.html
Version: 1.1.0rc3
This is the starting point to try out TensorRT-LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT-LLM.
## Installation[#](#installation "... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
eacb904e-a1e8-588c-beb1-aaa6900ebd6c | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 1 | The following examples can most easily be executed using the prebuilt [Docker release container available on NGC](https://registry.ngc.nvidia.com/orgs/nvstaging/teams/tensorrt-llm/containers/release) (see also [release.md](https://github.com/NVIDIA/TensorRT-LLM/blob/main/docker/release.md) on GitHub). Ensure to run the... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
11e4ca45-5c4e-50c1-a54d-ca4c2c01f939 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 2 | The LLM API is a Python API designed to facilitate setup and inference with TensorRT-LLM directly within Python. It enables model optimization by simply specifying a HuggingFace repository name or a model checkpoint. The LLM API streamlines the process by managing checkpoint conversion, engine building, engine loading,... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
c9408208-4676-5eb3-bb50-fadf824d33e2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 3 | 16 # Sample prompts.
17 prompts = [
18 "Hello, my name is",
19 "The capital of France is",
20 "The future of AI is",
21 ]
22
23 # Create a sampling params.
24 sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
25
26 for output in llm.generate(prompts, sampling_params):
... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
f20d1e6e-1b46-590f-9f29-31f20945e606 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 4 | 35 # Prompt: 'The future of AI is', Generated text: 'an exciting time for us. We are constantly researching, developing, and improving our platform to create the most advanced and efficient model available. We are'
36
37
38if __name__ == '__main__':
39 main()
```
You can also directly load TensorRT Model Optimiz... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
8e0c739b-3806-5324-a0ec-e01b0c36f0d7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 5 | > If you are running `trtllm-server` inside a Docker container, you have two options for sending API requests:
> 1. Expose port `8000` to access the server from outside the container.
> 2. Open a new terminal and use the following command to directly attach to the running container:
> ```None
> docker exec -it <cont... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
919a504e-d103-5e81-b074-94fa6b80e2aa | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 6 | *Example Output*
```None
{
"id": "chatcmpl-ef648e7489c040679d87ed12db5d3214",
"object": "chat.completion",
"created": 1741966075,
"model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "New York is a city in the n... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
593fe8f3-5a8f-5dea-8b0d-cce461a2b2bb | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc3 | 7 | ## Next Steps[#](#next-steps "Link to this heading")
In this Quick Start Guide, you:
* Saw an example of the LLM API
* Learned about deploying a model with `trtllm-serve`
For more examples, refer to:
* [examples](https://github.com/NVIDIA/TensorRT-LLM/tree/main/examples) for showcases of how to run a quick benchmar... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc3.md |
f851db58-134a-5bf8-9e0a-3ddb337eb083 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc4 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc4/quick-start-guide.html
Version: 1.1.0rc4
This is the starting point to try out TensorRT LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT LLM.
## Launch Docker on a node with NV... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc4.md |
de259032-d1a8-57b0-8685-c473ff1d1be2 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc4 | 1 | 1. Expose a port (e.g., 8000) to allow external access to the server from outside the container.
2. Open a new terminal and use the following command to directly attach to the running container:
```None
docker exec -it <container_id> bash
```
After the server has started, you can access well-known OpenAI endpoints su... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc4.md |
c1409e41-6c4f-599e-8204-99dfa962e4da | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc4 | 2 | "object": "chat.completion",
"created": 1741966075,
"model": "TinyLlama/TinyLlama-1.1B-Chat-v1.0",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "New York is a city in the northeastern United States, located on the eastern coast of the state of New York.... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc4.md |
a5da5b0a-60d4-525e-8629-61a8c5c45795 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc4 | 3 | The LLM API is a Python API designed to facilitate setup and inference with TensorRT LLM directly within Python. It enables model optimization by simply specifying a HuggingFace repository name or a model checkpoint. The LLM API streamlines the process by managing model loading, optimization, and inference, all through... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc4.md |
032e7417-93ac-5961-9883-f5e469b7311e | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc4 | 4 | 20 for output in llm.generate(prompts, sampling_params):
21 print(
22 f"Prompt: {output.prompt!r}, Generated text: {output.outputs[0].text!r}"
23 )
24
25 # Got output like
26 # Prompt: 'Hello, my name is', Generated text: '\n\nJane Smith. I am a student pursuing my degree in Computer S... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc4.md |
bbfb2cfb-7569-500c-9b9c-dfa05cf8d2f7 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc4 | 5 | You can also directly load pre-quantized models [quantized checkpoints on Hugging Face](https://huggingface.co/collections/nvidia/model-optimizer-66aa84f7966b3150262481a4) in the LLM constructor.
To learn more about the LLM API, check out the [LLM API Introduction](llm-api/index.html) and [LLM Examples](examples/llm_ap... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc4.md |
1e841c22-18c6-5eed-99af-5046d28e1af6 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc4 | 6 | * **CLI Reference** - Explore TensorRT LLM command-line tools:
+ [`trtllm-serve`](commands/trtllm-serve/trtllm-serve.html) - Deploy models for online serving
+ [`trtllm-bench`](commands/trtllm-bench.html) - Benchmark model performance
+ [`trtllm-eval`](commands/trtllm-eval.html) - Evaluate model accuracy
| large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc4.md |
ac8cd45f-eee7-52e7-a846-1d8f1300e4e9 | docs | nvidia_tensorrt-llm | nvidia_tensorrt-llm_quick-start-guide | 110rc5 | 0 | # Quick Start Guide#
Source: https://nvidia.github.io/TensorRT-LLM/1.1.0rc5/quick-start-guide.html
Version: 1.1.0rc5
This is the starting point to try out TensorRT LLM. Specifically, this Quick Start Guide enables you to quickly get set up and send HTTP requests using TensorRT LLM.
## Launch Docker on a node with NV... | large_dataset/raw/docs/nvidia_tensorrt-llm/quick-start-guide/quick-start-guide_110rc5.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.