`1.3.0rc15`: trtllm-serve hangs in fused_moe/quantization.py during cold-start on GB10 / sm_121 — `1.3.0rc12` works with identical config
Summary
Loading Nemotron-3-Super-120B-A12B-NVFP4 via trtllm-serve with the same launch args and the same extra_llm_api_options yaml on 1.3.0rc12 and 1.3.0rc15:
| Image | Cold-start | Outcome |
|---|---|---|
nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc12 |
~4 min | ✅ serves /v1/models |
nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc15 |
18+ min, never serves | ❌ worker spins on NVIDIA-driver ioctls in fused_moe/quantization.py:2769, progress bar stuck at Loading weights concurrently: 0/1288 |
Reverting only the image tag back to rc12 immediately restores normal cold-start and serving.
Environment
- GPU: NVIDIA GB10 (Grace-Blackwell, sm_121, integrated GPU, unified-memory architecture)
- OS: DGX OS 7 (Ubuntu 24.04 aarch64)
- Model:
Nemotron-3-Super-120B-A12B-NVFP4(MoE; hybrid Mamba/SSM + attention; NVFP4 quantized) - Container image tested:
nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc15 - Backend:
pytorch(AutoDeploy viatrtllm-serve)
Repro
Launch command (identical args work on 1.3.0rc12):
docker run --rm \
--gpus all --ipc host --network host \
--ulimit memlock=-1 --ulimit stack=67108864 \
-e TLLM_ALLOW_LONG_MAX_MODEL_LEN=1 \
-v /path/to/Nemotron-3-Super-120B-A12B-NVFP4:/model:ro \
-v /path/to/extra-llm-api-config.yml:/extra-llm-api-config.yml:ro \
nvcr.io/nvidia/tensorrt-llm/release:1.3.0rc15 \
trtllm-serve /model --host 0.0.0.0 --port 8080 \
--served_model_name nemotron-super-120b-nvfp4 \
--max_batch_size 8 --tp_size 1 --ep_size 1 \
--max_num_tokens 8192 --max_seq_len 1048576 \
--trust_remote_code \
--reasoning_parser nano-v3 --tool_parser qwen3_coder \
--extra_llm_api_options /extra-llm-api-config.yml
extra-llm-api-config.yml:
kv_cache_config:
dtype: fp8
enable_block_reuse: false
free_gpu_memory_fraction: 0.9
mamba_ssm_cache_dtype: float16
mamba_ssm_stochastic_rounding: true
mamba_ssm_philox_rounds: 5
moe_config:
backend: CUTLASS
cuda_graph_config:
enable_padding: true
max_batch_size: 8
enable_chunked_prefill: true
(No speculative decoding / MTP. tp_size=1, ep_size=1.)
Observed behavior
Boot reaches this point and then makes no further visible progress for 18 minutes:
[TensorRT-LLM] TensorRT LLM version: 1.3.0rc15
…
Loading safetensors weights in parallel: 100%|██████████| 17/17 [00:15<00:00, 1.13it/s]
[TRT-LLM] [W] [_torch] [load_weight_shard] Skipping device transfer from cpu to cuda on integrated GPU to conserve shared memory.
Loading weights concurrently: 0%| | 0/1288 [00:00<?, ?it/s]
/usr/local/lib/python3.12/dist-packages/tensorrt_llm/_torch/modules/fused_moe/quantization.py:2769: UserWarning: TypedStorage is deprecated. […]
dst_base = dst_w3_w1_weight.storage().data_ptr()
No further log lines, no errors emitted. During the hang:
- CPU: the
mpi4py.futures.serverworker holds 99.9 % of one core; accumulated ~15 min of CPU time on a single thread - GPU: 0 % utilization throughout (
nvidia-smi) - Block I/O: stable at 51.4 GB read (all weights already on disk; not I/O bound)
- Memory: container RSS 19 GB / 119 GB unified; no swap thrashing (
vmstatshowssi≈0,so=0)
strace of the busy worker thread
ioctl(23, _IOC(_IOC_READ|_IOC_WRITE, 0x46, 0x2a, 0x20), 0xf0336fffbf50) = 0
ioctl(23, _IOC(_IOC_READ|_IOC_WRITE, 0x46, 0x2a, 0x20), 0xf0336fffbf50) = 0
ioctl(23, _IOC(_IOC_READ|_IOC_WRITE, 0x46, 0x2a, 0x20), 0xf0336fffbf50) = 0
…thousands of identical calls, all returning 0…
0x46 is the NVRM character-device magic; 0x2a is a memory-handshake ioctl. All calls succeed but the caller never reaches a satisfying condition.
Likely path
The log line Skipping device transfer from cpu to cuda on integrated GPU to conserve shared memory is the GB10-specific code path that avoids the cpu→cuda copy because unified memory makes it redundant. The hang then appears inside the NVFP4 fused-MoE weight-quantization path entered from there (_torch/modules/fused_moe/quantization.py:2769).
Why this looks like an rc15 regression, not a config issue
- The same yaml and the same flags boot on
1.3.0rc12in ~4 minutes and serve traffic stably atmax_batch_size=8 - Switching only the container tag
rc15 → rc12restores normal cold-start; no other change required - Nothing exotic in the config: no MTP, no TP, no EP, default
pytorchbackend
Worth noting: 1.3.0rc15 does not hit the sm_121 PTXAS / Triton codegen error that previously blocked 1.3.0rc14 on this same hardware — so the rc15 boot path on GB10 has clearly moved, just not yet to a working state.
What would help
- Confirmation whether the GB10 / sm_121 integrated-GPU NVFP4 fused-MoE path is exercised in CI for rc15
- Whether
moe_config.backend: TRTLLM(vsCUTLASS) is expected to work-around it - Whether
mamba_ssm_cache_dtype: bfloat16(vsfloat16) makes a difference - Whether
--enable_chunked_prefilloff changes anything
Happy to capture py-spy dump, a longer strace, or run additional repro variants — let me know what's most useful.
Context — why this matters to us (added per reviewer benefit):
We were specifically attempting rc15 to validate the mamba-cache + Scheduler-V2 fixes documented in the release notes:
- #13549 — Improve memory calculation for mamba hybrid models when block reuse is off
- #13274 — Fix mamba disagg issues when conc > mbs
- #13592 — Clear stale Scheduler V2 request state
- #13696 — Fix stale TRTLLM attention backend metadata reuse across request shape transitions
On rc12 with the same Nemotron-3-Super-120B-A12B-NVFP4 setup, we currently observe two production-impacting symptoms at moderate concurrency:
- Engine event-loop thread dies under mamba-cache pressure — the HTTP shell keeps answering 200 OK with empty SSE bodies (no error), so the failure is invisible to upstream proxies. We work around it with an external 30-second 1-token liveness probe that flips
/api/healthtodegraded+503 when the engine stops emitting tokens. - Cancellation leaks request slots — when a client disconnects mid-stream, the scheduler doesn't always release the slot, so the next ~N requests at the batch ceiling hang waiting for a slot that never frees.
The four rc15 PRs above all read like direct fixes for those two symptoms, which is why we tried to upgrade. The cold-start hang reported in this issue is currently blocking us from reaching the /v1/models endpoint at all on rc15, so we can't confirm whether those fixes resolve our production symptoms.
If there's a way to validate rc15 on GB10 / sm_121 without going through the fused_moe/quantization.py path that's hanging (e.g., a moe_config.backend knob or a build flag), that would unblock us. Otherwise we're holding at rc12 with the workarounds above pending a fix.
The hang site (rc15 line 2769, HEAD line 2806) sits inside a per-expert dict-accumulation pattern (tmp_cutlass_w3_w1_weights, keyed off dst.storage().data_ptr()) that wasn't there at rc12. On integrated GPU the dst stays host/UMA-backed because of the "Skipping device transfer..." branch you log just above, and calling .storage().data_ptr() on that path goes through NVRM memory ops, which is the 0x46/0x2a ioctl loop your strace is sitting in. Best bisect candidates between rc12 and HEAD on this file: f15af81e88 (EPLB host memory reduction) and 1f5339f206 (shared-expert index fix).
If you need to unblock today, try moe_config.backend: TRTLLM. The hanging code is CUTLASS-specific (the class is CUTLASS-prefixed and the dict is literally tmp_cutlass_w3_w1_weights), so switching backends should skip this entirely. Can't promise TRTLLM is feature-equivalent for NVFP4 MoE on Nemotron-3-Super-120B but it's the cheapest thing to try. The bfloat16 mamba cache and chunked-prefill-off knobs are on unrelated code paths so they probably won't help with a load-time hang.
Thanks for the very specific diagnosis — much appreciated.
I tried moe_config.backend: TRTLLM (only that knob changed; CUDA-graph + chunked-prefill + mamba SSM settings left as before, MTP still off). It exits hard at executor-worker startup with:
NotImplementedError: TRTLLMGenFusedMoE does not support SM120 and above.
Full traceback (trimmed to the relevant frames):
File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/commands/serve.py", line 331, in launch_server
llm = PyTorchLLM(**llm_args)
File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/llmapi/llm.py", line 1533, in _build_model
self._executor = self._executor_cls.create(…)
File "/usr/local/lib/python3.12/dist-packages/tensorrt_llm/executor/proxy.py", line 402, in _start_executor_workers
raise RuntimeError("Executor worker returned error")
…
NotImplementedError: TRTLLMGenFusedMoE does not support SM120 and above.
So on GB10 / sm_121 in 1.3.0rc15 both NVFP4 MoE backends appear blocked:
moe_config.backend: CUTLASS— hangs infused_moe/quantization.py:2769(the original report)moe_config.backend: TRTLLM— explicitlyNotImplementedErrorfor SM120+
Reverted to rc12 for now. The f15af81 / 1f5339f bisect targets you flagged are still the most likely culprits for the CUTLASS path on integrated/UMA GPUs — happy to test a candidate patch or a custom build against this hardware if that would help narrow it down. Let me know.
Re-framing — to be explicit about the production cost driving this:
The original report focused on the rc15 cold-start hang, but that's the symptom blocking the upgrade, not the underlying production pain. Surfacing the real problem so the priority is clear:
Where we're stuck on Nemotron-3-Super-120B-A12B-NVFP4 + GB10 today:
- With MTP on (
speculative_config: num_nextn_predict_layers: 3): each request consumes 1 main + 3 draft = 4 mamba slots, against a pool of 8. Engine reaches slot exhaustion at ~4–6 concurrent users, after which the event-loop thread dies under the slot pressure — HTTP shell stays up emitting empty SSE bodies, so it's silent. - Workaround we run in production: disable MTP entirely. Throughput on this model drops roughly 30 tok/s → 15–25 tok/s (≈30–50 %). On a 120B model that latency hit is meaningful for every interactive user, and it's been steady since we adopted Nemotron-3-Super.
- The supposed fix is rc14 #13151 (per the release notes for the MTP+mamba interaction), but rc14 has the separate sm_121 PTXAS/Triton codegen issue, so we cannot adopt it on GB10.
- rc15 was the next viable target — release notes (#13549, #13274, #13592, #13696) all read like direct fixes for our scheduler / mamba behavior. We attempted the upgrade and hit:
moe_config.backend: CUTLASS→ the cold-start ioctl-loop hang reported in this issuemoe_config.backend: TRTLLM→NotImplementedError: TRTLLMGenFusedMoE does not support SM120 and above(comment above)
Net: on the only NVFP4 model we're shipping, no MoE backend in rc15 works on GB10, the slot-exhaustion bug remains live on rc12, and the only known mitigation costs us a real chunk of throughput on every request.
What we'd actually find unblocking (in rough priority order):
- A working NVFP4 fused-MoE path on sm_120+ in a near-term release — either CUTLASS without the integrated-GPU hang, or
TRTLLMGenFusedMoEextended to SM120+ - Or: a backport of #13151 (MTP + mamba slot accounting) to a release that actually loads on GB10
- Or: confirmation that there's an existing config knob to avoid the per-expert host-tensor accumulation path on UMA-backed
dst(so we can stay on rc15 without the CUTLASS hang)
Happy to be the GB10 / Nemotron-3-Super reproducer for any of those — we can build/test custom images on this hardware and feed back results quickly.
Read the consumer side. The dict key is only used to partition calls into setdefault (the consumer iterates .values(), never looks up by key), so swapping the key value to something cheaper is safe as long as the new value still distinguishes regular-vs-shared experts at the same expert_idx.
tensor.data_ptr() satisfies that and skips the .storage() wrapper construction that's tripping NVRM on UMA-backed storage. Candidate patch against HEAD:
- dst_base = dst_w3_w1_weight.storage().data_ptr()
+ dst_base = dst_w3_w1_weight.data_ptr()
(Same change applies to dst_w3_w1_weight_scale.storage().data_ptr() a few hundred lines up, both follow the same pattern.)
If you apply this to your rc15 container and the cold-start gets past Loading weights concurrently:, that confirms the trip is the TypedStorage wrapper construction on UMA storage. If it hangs at a different .storage() somewhere downstream, py-spy dump at the hang point would tell us where to repeat the same swap.
I don't have GB10 hardware so I can't verify end to end, but the swap is small and reversible if it doesn't pan out.
Patch works on GB10. Applied your two-line .storage().data_ptr() → .data_ptr() swap (both sites, L2678 + L2769) via bind-mount over the in-image file. rc15 cold-started in ~5 minutes (parity with rc12), /v1/models came up clean, served a smoke completion.
Then ran a 20-min soak: 10 concurrent streamers (above the 8-slot batch ceiling), 15 % cancellation rate, mixed prompt sizes (24 long ~1500-token / 56 medium ~600-token / 39 short).
Results — both production symptoms absent:
| Metric | Result |
|---|---|
| Engine deaths (empty SSE bodies) | 0 |
| Cancel hangs > 5 s | 0 |
| Engine still serving post-soak | yes |
- 119 dispatched, 82 completed, 18 cancelled cleanly, 9 errors
- All 9 errors are harness-side
read_timeoutwithtokens_streamed=0, ttft_s=null, total_s=60.008s— those are 10-concurrent-vs-8-slot queue-wait timeouts, not engine failures. The back-pressure is real and correct. - TTFT p50 14 s, p95 47.8 s (expected given the slot saturation)
- 70 157 tokens streamed total
So #13592 (clear stale Scheduler V2 state on cancel) is observably working — 18 cancels, every one released its slot promptly. #13549 (mamba memory accounting with block reuse off) is indirectly confirmed by the lack of engine death across the soak. MTP was still disabled for this run, so #13151 (MTP+mamba slot accounting in rc14) isn't validated yet — that's the next test on this hardware.
Suggested upstream follow-ups, in priority order:
-
Land the patch into a public release. It's the same uniqueness key (the consumer iterates
.values()per your earlier note), but skips theTypedStoragewrapper construction that trips NVRM on UMA-backed storage. Plaindata_ptr()works for any storage class. Would unblock rc15+ on every GB10 / sm_120+ deployment. -
Promote
TRTLLMGenFusedMoEto SM120+, or document the CUTLASS fallback path expectation for GB10. Right now both backends are blocked for sm_121 NVFP4 MoE in a vanilla rc15 install. -
Once (1) is in, I can re-run with MTP re-enabled (
num_nextn_predict_layers: 3) and report whether#13151works on this hardware — that's the throughput recovery we ultimately need.
Thanks again — this unblocks us. Happy to keep providing GB10 reproduction signal on related issues.
Follow-up: MTP re-enabled on rc15+patch hits the sm_121a Triton/PTXAS wall — but at a new code path.
Re-ran with speculative_config.decoding_type: MTP, num_nextn_predict_layers: 3 added (no other changes; patch still bind-mounted, CUTLASS MoE backend, mamba SSM stochastic rounding still on). Engine reached MTPSampler initialization, then began MoE GEMM tuning and hit a chain of failures culminating in PTXAS rejecting Triton-emitted PTX:
[Autotuner] Failed when profiling runner=<…MoERunner…>, tactic=6, …
[ERROR] Assertion failed: Failed to initialize cutlass TMA WS grouped gemm.
… cutlass_kernels/cutlass_instantiations/gemm_grouped/120/
cutlass_kernel_file_gemm_grouped_sm120_M128_BS_group2.generated.cu:39
[ERROR] Assertion failed: GPU lacks the shared memory resources to run GroupedGEMM kernel
… moe_gemm/moe_gemm_template_dispatch.h:174
Internal Triton PTX codegen error
ptxas /tmp/tmpacy3oa91.ptx, line 1200; error : Feature '.rs' not supported on .target 'sm_121a'
ptxas /tmp/tmpacy3oa91.ptx, line 1205; error : Feature '.rs' not supported on .target 'sm_121a'
…(continues for many lines)
After ~9 minutes of compile failures the container exited and crashlooped. Reverted to rc15+patch+MTP-off (the working config from the previous comment).
This appears to be the same class of issue the QA-disabled-MTP yaml note in our deployment had warned about ("rc14 has a separate PTXAS/Triton codegen issue on sm121/GB10") — still present in rc15, just on a different trigger path. Three distinct failure modes stacked here:
- CUTLASS
gemm_grouped_sm120_M128_BS_group2failed to initialize for the MTP-shaped MoE GEMM (Failed to initialize cutlass TMA WS grouped gemm) - CUTLASS GroupedGEMM kernel claimed insufficient shared memory (
moe_gemm_template_dispatch.h:174) — note: the same hardware ran MoE fine without MTP, so the shape change from MTP is what blew the SMEM budget - Triton fallback emits PTX with the
.rs(stochastic-rounding) feature, which PTXAS rejects withFeature '.rs' not supported on .target 'sm_121a'
The .rs rejection is interesting — sm_121a (Grace-Blackwell integrated) appears to be a SASS variant that lacks the round-stochastic modifier that sm_120/sm_121 standard variants accept. If the Triton MTP-path kernel emits .rs unconditionally on sm_12x, that's the kind of thing that needs a cuda_arch_tag gate.
So on this hardware in rc15:
| Config | Status |
|---|---|
rc15+patch, MTP off (speculative_config unset) |
✅ working, just-completed 20-min soak |
rc15+patch, MTP num_nextn_predict_layers: 3 |
❌ CUTLASS sm_120 grouped-GEMM init + Triton .rs PTX both fail |
So we can't yet validate #13151's mamba-slot-accounting claim on GB10 — the MTP path doesn't get past kernel selection before any of that math runs.
Asks (in priority order for our use case):
- Fix the Triton MTP kernel to not emit
.rsfor sm_121a (or document a flag / env to avoid the codegen path) - Or: extend the CUTLASS
gemm_grouped_sm120MoE path to handle the MTP-shaped GEMMs without the SMEM blowup, so the fallback to Triton never has to happen - Long-term: a
sm_121a-aware build target for the MTP-related kernels
Happy to repro any of these with TLLM_LOG_LEVEL=DEBUG or capture the full failing PTX dump if useful. Reverting to the working rc15+patch+MTP-off config in the meantime.
For future readers landing here: the MTP-path failure mode I reported in the comment above (CUTLASS sm_120 grouped-GEMM init → SMEM shortfall → Triton fallback emits .rs PTX rejected by PTXAS on sm_121a) is a different bug from the cold-start hang in this issue's title. Tracking it separately at #14575 so it doesn't get archived when this issue closes.
The cold-start hang reported here is fixed by ssam18's patch (validated via 20-min soak — also documented in that comment).
Opened #14586 with the patch validated by @zentradev-rabih. Body credits your GB10 soak test and links the validation comment. Once it lands, you should be able to drop the bind-mount workaround and run stock rc15+ images.
Confirming #14586 is still needed on the latest pre-release and that it ports forward cleanly:
1.3.0rc17still reproduces this cold-start hang on GB10 / sm_121 without the patch (the.storage().data_ptr()call infused_moe/quantization.pystill triggers the NVRM ioctl loop on UMA-backed storage).- #14586 applies cleanly to rc17 — the two touch points have shifted to lines 2715 and 2806 (
dst_w3_w1_weight_scaleanddst_w3_w1_weight), but the change is identical (.storage().data_ptr()→.data_ptr()). - With the patch bind-mounted over the in-image file, rc17 cold-starts in ~5 min and serves cleanly, including with MTP enabled (see #14575 — that path is now unblocked on rc17 via the FlashInfer NVFP4 MoE backend from #13773).
+1 to merging #14586. Happy to re-validate on GB10 against the merged commit.
Based on @ssam18's diagnosis — here's the minimal fix for the UMA dict-key hang in fused_moe/quantization.py.
Problem: tensor.storage().data_ptr() returns inconsistent host-side addresses on UMA-integrated GPUs (GB10), causing dict.setdefault() to miss existing keys → infinite accumulation hang.
Fix (two locations):
# L2805 — weights dict key
# Before:
dst_base = dst_w3_w1_weight.storage().data_ptr()
dict_key = (dst_base, expert_idx)
# After:
if getattr(dst_w3_w1_weight.device, "is_integrated", False):
dst_base = id(dst_w3_w1_weight) # stable for UMA lifetime
else:
dst_base = dst_w3_w1_weight.storage().data_ptr()
dict_key = (dst_base, expert_idx)
# L2714 — scale dict key (same pattern)
# Before:
dst_base = dst_w3_w1_weight_scale.storage().data_ptr()
# After:
if getattr(dst_w3_w1_weight_scale.device, "is_integrated", False):
dst_base = id(dst_w3_w1_weight_scale)
else:
dst_base = dst_w3_w1_weight_scale.storage().data_ptr()
id() is O(1), stable for the process lifetime, and won't collide with data_ptr() keys since the dict is per-module (module.tmp_cutlass_w3_w1_weights).
Happy to open a PR if this looks right.
Excellent investigation and validation. The fact that a two-line storage-access change turns an 18+ minute non-progressing startup into a ~5-minute successful load is a particularly useful example of how hardware memory topology can change the behavior of an otherwise innocuous host-side operation.
We’re building MemForge, a GPU/inference runtime diagnostics project:
https://github.com/elmehdi-eljair/memforge
One capability this case motivates for us is treating cold start as a profiled execution phase, rather than considering performance analysis only after the model starts serving.
The signature here is highly diagnosable:
model weights read complete GPU utilization 0% disk activity stable host memory pressure low one worker CPU ~100% repeated NVIDIA memory ioctl yes startup progress unchanged
That is very different from slow weight I/O, kernel compilation, GPU OOM, or ordinary model initialization.
A runtime diagnostic tool should ideally classify the stall and identify the last progress boundary automatically:
weight I/O ✓ weight materialization ↓ fused-MoE host/UMA memory handling ✗ progress stall
The GB10/UMA aspect is also important. We want MemForge to reason about memory topology explicitly, because a host/device operation that is harmless on a discrete GPU can take a very different driver path on an integrated GPU.
Another useful abstraction from this thread is the backend capability/fallback graph. With model, quantization, architecture and optional features known, tooling should be able to answer before launch:
CUTLASS supported? / known issue? TRTLLM supported? FlashInfer supported? Triton compatible with target ISA?
and warn if the configured fallback chain ultimately has no viable backend.
Finally, the rc12 → rc15 distinction is exactly the kind of case where an automated runtime bisector could help: define “reaches READY within N minutes” as the test predicate and bisect framework/container versions until the first failing change is localized.
I see #14586 already contains the concrete .storage().data_ptr() → .data_ptr() fix and has been validated on GB10, so we would not duplicate that work. We’re interested in generalizing the lessons into startup-stall detection, UMA-path analysis, backend compatibility checks, and automatic upgrade qualification.
MemForge: https://github.com/elmehdi-eljair/memforge