You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4e0fddd
Browse filesBrowse the repository at this point in the historyBrowse files
[TRTLLM-17679][feat] KernelBuilder build mode and autotuner tune mode on per-rank worker processes; JIT builds shared within a node by default (#22374)
|`FLASHINFER_WORKSPACE_BASE`|`$HOME/.cache/tensorrt_llm/flashinfer/rank-N` in MPI workers (see below), `$HOME/.cache/flashinfer` otherwise |`flashinfer/rank-N` in MPI workers, `flashinfer` otherwise |
|`TLLM_JIT_SHARE_DIR`|Disabled| Not set (one directory per launch, see below) |
248
+
|`TLLM_JIT_SHARE_DIR`|Not set: `/tmp/tllm-jit-<uid>/<launch>` for a launch of several processes per node (see below)| Not set (one directory per launch, see below) |
Copy file name to clipboardExpand all lines: docs/source/release-notes.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ All published functionality in the Release Notes has been fully tested and verif
23
23
24
24
- Eligible text-only Kimi-K3 chat requests use the renderer’s native token IDs; `/v1/messages/count_tokens` excludes the same prompt tokens as response usage (three fewer for the default Kimi-K3 template). Requests containing media, server or tokenizer templates, forced tool-call prefixes, added special tokens, or prompt truncation retain the text path.
25
25
- Single-GPU LLM instances whose model runs in a spawned MPI worker (the default) and single-rank `trtllm-llmapi-launch` runs now isolate FlashInfer JIT workspaces like multi-GPU ones. By default each process claims a persistent slot under `~/.cache/tensorrt_llm/flashinfer/rank-N` instead of using `~/.cache/flashinfer`, whose existing contents are not reused, so the first launch downloads and compiles FlashInfer artifacts again. Set `TRTLLM_FLASHINFER_WORKSPACE_PER_PROCESS=0` to keep the shared cache. See [FlashInfer JIT workspaces](llm-api/index.md#flashinfer-jit-workspaces-for-mpi-workers) for the temporary-workspace fallback, the precedence of an explicit `FLASHINFER_WORKSPACE_BASE`, and offline hosts.
26
+
-**The processes of a launch on one node now build each DeepGEMM and CuTe DSL kernel once.** Without `TLLM_JIT_SHARE_DIR`, a launch of several processes per node that its launcher names (PMIx, Slurm job step, torchrun `--rdzv_id` or `--standalone`, DWDP) shares its JIT builds through `/tmp/tllm-jit-<uid>/<launch>` on the node's local disk: the first process to claim a kernel builds it, and the others wait up to `TLLM_JIT_SHARE_WAIT_S` seconds and load it. During the memory-profiling warmup, the ops that opt in also build their kernels ahead on worker processes of each rank, capped by `TLLM_KERNEL_BUILDER_WORKERS`. `TLLM_JIT_SHARE_DEFAULT=0` turns the shared directory off; `TLLM_KERNEL_BUILDER=0` also starts no worker. See [Unified Cache for Compiled Artifacts](llm-api/index.md#unified-cache-for-compiled-artifacts).
26
27
-`/v1/responses`: a response cut short by `max_output_tokens` now reports `incomplete_details.reason``max_output_tokens`, and when streamed it ends with `response.incomplete` instead of `response.completed`, as in the OpenAI API.
27
28
- <span style="color: red">**[BREAKING CHANGE] Removed obsolete C++ executor orchestration helpers.**</span> The internal `RequestWithId` type, its `serializeReqWithIds` / `deserializeReqWithIds` functions, all production `insertRequestInOrder` overloads, and the unused `requestUtils.h` and `orchestratorUtils.h` helpers have been removed. These helpers belonged to the retired C++ executor orchestration path; downstream code linking their exported symbols must stop using them and rebuild. The current `Request` / `Response` interfaces and serialization remain available. Executor factory and worker constructors no longer accept the unused `engine` and `batched_logits_processor` arguments; callers should omit them and continue passing model configuration through `llm_args` and `hf_model_dir`. Unused decoder, request-cancellation, executor, legacy-model, orchestration, and speculative-decoding MPI tag names have also been removed; values 1–23, 127–129, and 1023–1025 are retired. The default, KV-cache event, and context-transfer tags retain their existing values. Internal `LogprobParams` and `LogProbsResult` tuples now contain only prompt-logprob fields; generation logprobs remain supplied by the sampler. The unused `TLLM_EXECUTOR_PERIODICAL_RESP_IN_AWAIT` environment variable has been removed.
28
29
- <spanstyle="color: red">**[BREAKING CHANGE] Media loaders now decode images as RGB PIL images and video as RGB uint8 NumPy arrays.**</span>
0 commit comments