trtllm-serve-config-guide
Generate a source-backed starting `trtllm-serve --config` YAML for
- 01Installs
- New
- 02Files scanned
- 25
Security scan
Scan passedNo risky patterns were found in the scanned files.
Content sha256 ea4ef88fcddd462d… — run codexguild_scan_skills after installing to verify your local copy.
Static analysis is a first line of defense, not a guarantee. Read the source
SKILL.md
Serve Config Guide
Scope: aggregate/IFB (in-flight batching) colocated prefill+decode, single node, PyTorch backend, non-speculative by default; DeepSeek-R1 MTP is the standard mode (all checked-in configs include it).
Input: model, GPU, ISL (input sequence length), OSL (output sequence length), concurrency, TP, performance objective (Min Latency | Balanced | Max Throughput | unspecified).
Output: repo-grounded starting YAML for trtllm-serve --config.
If the request is adjacent but out of scope, provide a best-effort answer using the nearest in-scope config as a starting point, clearly label inferred vs. verified fields, and point to the relevant feature doc in docs/source/features/ (e.g., speculative-decoding, disagg-serving, parallel-strategy) or examples/llm-api/.
Constraints
-
Speculative exclusion: Exclude configs containing
speculative_configby default. Exception: exact checked-in DeepSeek-R1 MTP configs (models withdecoding_type: MTPinexamples/configs/). When including MTP, copy the fullspeculative_configblock verbatim — never interpolate speculative fields. -
Objective preservation: Preserve the user's stated objective through config selection. Use
database.pyprofile labels (Min Latency,Balanced,Max Throughput; plusLow Latency/High Throughputin smaller sets) as selection aids. If a config is unlabeled, treat it as a default starting point — do not claim it matches a specific objective. If the only match conflicts with the stated objective, call out the mismatch. -
Source preference: Prefer checked-in configs over interpolation. When docs and configs disagree, prefer the config for the exact scenario and note the mismatch. Mark any interpolation as unverified.
Response Format
For exact matches: Config → Source → Launch command
For interpolated configs: Config → Source used as starting point → What to benchmark (single list of knobs worth sweeping, not per-field unverified tags)
Step 0: Lock Objective and Decode Mode
Identify the user's objective (Min Latency | Balanced | Max Throughput | unspecified) and decode mode (non-speculative or DeepSeek-R1 MTP per Constraint 1). Preserve both through the remaining steps.
Step 1: Exact Database Match
Search examples/configs/database/lookup.yaml for an exact (model, gpu, isl, osl, concurrency, num_gpus) match. Use database.py as a loader/helper.
- Apply speculative exclusion.
- When multiple recipes exist at different concurrency points, use profile labels to match the user's objective per objective preservation.
- Prefer an exact match that also matches the stated objective over manual tuning.
Step 2: Nearest Checked-In Config
If no exact match, widen the search to also include examples/configs/curated/lookup.yaml.
Apply the same constraints as Step 1. Additionally:
- A partial match from
database/is preferred over a partial match fromcurated/for the same model (database configs are benchmark-tuned). - Exclude disaggregated-only or prefill-only entries (e.g.,
qwen3-disagg-prefill.yaml). - For curated configs, only treat intent as explicit when the repo labels it (e.g.,
*-latency.yaml,*-throughput.yaml, or guide text). - If no in-scope config matches the stated objective, pick the nearest same-model starting point and call out the mismatch.
Step 3: Read Model Docs
Search docs/source/deployment-guide/ and examples/models/core/ for the model's deployment guide and README. Read both before adjusting knobs.
Excluded sources: Do NOT use docs/source/legacy/ tuning values or benchmark numbers — those were measured on the TensorRT engine-building backend and do not transfer to PyTorch backend serving.
DeepSeek-V3 caveat: For DeepSeek-V3/V3.2-Exp, use examples/models/core/deepseek_v3/README.md, not the R1 deployment guide.
Step 4: Adjust Source-Backed Fields
Commonly scenario-dependent fields (adjust only these, guided by the checked-in source):
max_batch_size, max_num_tokens, max_seq_len, enable_attention_dp, attention_dp_config.*, kv_cache_config.free_gpu_memory_fraction, moe_expert_parallel_size (MoE), moe_config.backend (when guide specifies), stream_interval, num_postprocess_workers, cuda_graph_config.max_batch_size/batch_sizes, and MTP-specific fields when using DeepSeek-R1 MTP configs.
Do not assume other fields are constant across models/GPUs. For tuning notes, read references/knob-heuristics.md.
Validation Checklist
-
trust_remote_code: truecalled out as trust boundary when present -
max_num_tokens>= ISL + chat template overhead (requests rejected if violated) - If interpolated: single "What to benchmark" section listing knobs to sweep, not per-field unverified tags
Files
25- BENCHMARK.md
74ef1c4ae910.2 KB - SKILL.md
ed255fb46c5.2 KB - evals/evals.json
aa5c41f1f09.7 KB - evals/files/qwen3-32b-hf/config.json
855a9d23f9729 B - evals/files/trtllm-mini/README.txt
3f7614b850637 B - evals/files/trtllm-mini/docs/source/deployment-guide/deployment-guide-for-deepseek-r1-on-trtllm.md
3be768b36e1.0 KB - evals/files/trtllm-mini/docs/source/deployment-guide/deployment-guide-for-llama3.3-70b-on-trtllm.md
cdbc2447d61.7 KB - evals/files/trtllm-mini/docs/source/legacy/performance/perf-best-practices.md
664391b8fa787 B - evals/files/trtllm-mini/examples/configs/curated/gpt-oss-120b-latency.yaml
8574285df4257 B - evals/files/trtllm-mini/examples/configs/curated/gpt-oss-120b-throughput.yaml
3789bb0b0e407 B - evals/files/trtllm-mini/examples/configs/curated/llama-3.3-70b.yaml
5559f8f272189 B - evals/files/trtllm-mini/examples/configs/curated/lookup.yaml
cf5d8fb352992 B - evals/files/trtllm-mini/examples/configs/curated/qwen3-disagg-prefill.yaml
42f3e1471d168 B - evals/files/trtllm-mini/examples/configs/curated/qwen3.yaml
c5a19cfef2270 B - evals/files/trtllm-mini/examples/configs/database/deepseek-ai/DeepSeek-R1-0528/B200/1k1k_tp8_conc128.yaml
811b8bfbd4392 B - evals/files/trtllm-mini/examples/configs/database/deepseek-ai/DeepSeek-R1-0528/B200/1k1k_tp8_conc256.yaml
3b8b1d9b37509 B - evals/files/trtllm-mini/examples/configs/database/deepseek-ai/DeepSeek-R1-0528/B200/1k1k_tp8_conc512.yaml
8b3896c3cd509 B - evals/files/trtllm-mini/examples/configs/database/deepseek-ai/DeepSeek-R1-0528/B200/1k1k_tp8_conc64.yaml
dcc4447c32390 B - evals/files/trtllm-mini/examples/configs/database/lookup.yaml
4f0e67c1711.8 KB - evals/files/trtllm-mini/examples/configs/database/openai/gpt-oss-120b/H200/1k1k_tp8_conc512.yaml
8d59bf5b9d386 B - evals/files/trtllm-mini/examples/configs/database/openai/gpt-oss-120b/H200/1k1k_tp8_conc64_latency.yaml
3944f278db384 B - evals/files/trtllm-mini/examples/configs/database/openai/gpt-oss-120b/H200/1k1k_tp8_conc64_throughput.yaml
98abce8c49499 B - evals/files/trtllm-mini/examples/configs/database/openai/gpt-oss-120b/H200/1k1k_tp8_conc8.yaml
1d4a9eee83331 B - references/knob-heuristics.md
e0b6bf03fe5.9 KB - skill-card.md
7a043e378c7.1 KB
Agent reviews
0No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.
More from NVIDIA/skills8
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.
Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.
Customize NVIDIA Nemotron Voice Agent's Generic Pipecat example for healthcare appointment, five-field patient intake, or custom tool-calling workflows without a separate backend.
Calibrate a new dataset from live RTSP camera streams via the AutoMagicCalib REST API. Use when the user provides RTSP URLs or asks to calibrate live cameras; VIOS records clips, AMC ingests them, then runs calibration.
Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample dataset', 'run sample calibration', 'verify AMC install', or 'launch and test'.
Calibrates pre-recorded `cam_*.mp4` datasets through the AutoMagicCalib REST API. Use for user-supplied local MP4s; route live RTSP streams to `amc-run-rtsp-calibration`.
Launch AutoMagicCalib microservice and web UI from NGC release images via Docker Compose. Use when user says 'deploy auto calibration', 'launch auto calibration', 'launch AMC', 'start MS+UI', or 'set up auto-magic-calib'. Requires NGC API key.
Related knowledge skillsscan passed
Restrict file edits to a specific directory for the session. Use for: freeze edits to directory, lock editing scope. (gstack)
Use when designing, updating, or reviewing the schemas or behavior of a WordPress ability.
Manage local skills - list, add, remove, search, edit, setup wizard
Create and manage Kibana alerting rules and the action policies that notify on their alerts, for both Universal Alerting and classic alerting. Use when the user wants to be alerted or notified about conditions in their data, change where or how often alerts notify (including snoozing notifications),