Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ TensorRT LLM distributes the pre-built container on [NGC Catalog](https://catalo
You can launch the container using the following command:

```bash
docker run --rm --ipc host -p 8000:8000 --gpus all -it nvcr.io/nvidia/tensorrt-llm/release
docker run --rm -it --ipc host -p 8000:8000 --gpus all --ulimit memlock=-1 --ulimit stack=67108864 nvcr.io/nvidia/tensorrt-llm/release:x.y.z
```


## Start the trtllm-serve service
> [!WARNING]
> The commands and configurations presented in this document are for illustrative purposes only.
Expand Down
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def tag_role(name, rawtext, text, lineno, inliner, options=None, content=None):


def setup(app):
from helper import generate_examples, generate_llmapi
from helper import generate_examples, generate_llmapi, update_version

from tensorrt_llm.llmapi.utils import tag_llm_params
tag_llm_params()
Expand All @@ -173,6 +173,7 @@ def setup(app):

generate_examples()
generate_llmapi()
update_version()


def gen_cpp_doc(ofile_name: str, header_dir: str, summary: str):
Expand Down
25 changes: 25 additions & 0 deletions docs/source/helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import importlib.util
import logging
import os
Comment thread
nv-guomingz marked this conversation as resolved.
import re
from dataclasses import dataclass
from itertools import chain, groupby
Expand Down Expand Up @@ -340,6 +342,29 @@ def generate_llmapi():
f.write(content)


def update_version():
version_path = os.path.abspath(
os.path.join(os.path.dirname(__file__),
"../../tensorrt_llm/version.py"))
spec = importlib.util.spec_from_file_location("version_module",
version_path)
version_module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version_module)
version = version_module.__version__
file_list = [
"docs/source/quick-start-guide.md",
"docs/source/commands/trtllm-serve/run-benchmark-with-trtllm-serve.md"
]
for file in file_list:
file_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "../../" + file))
with open(file_path, "r") as f:
content = f.read()
content = content.replace("x.y.z", version)
with open(file_path, "w") as f:
f.write(content)

Comment thread
nv-guomingz marked this conversation as resolved.

if __name__ == "__main__":
import os
path = os.environ["TEKIT_ROOT"] + "/examples/llm-api/llm_inference.py"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/quick-start-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is the starting point to try out TensorRT LLM. Specifically, this Quick Sta
## Launch Docker on a node with NVIDIA GPUs deployed

```bash
docker run --ipc host --gpus all -p 8000:8000 -it nvcr.io/nvidia/tensorrt-llm/release
docker run --rm -it --ipc host --gpus all --ulimit memlock=-1 --ulimit stack=67108864 -p 8000:8000 nvcr.io/nvidia/tensorrt-llm/release:x.y.z
Comment thread
nv-guomingz marked this conversation as resolved.
```


Expand Down