Datasets:
Download reports/nemotron-twotower-autopsy.md from witcheer/rtx-5090-benchmarks: direct link, hf CLI and curl.
- Browser
- Download file 6.1 kB
-
https://huggingface.co/datasets/witcheer/rtx-5090-benchmarks/resolve/main/reports/nemotron-twotower-autopsy.md
- Command line
-
hf download hf://datasets/witcheer/rtx-5090-benchmarks/reports/nemotron-twotower-autopsy.md
-
curl -L -o nemotron-twotower-autopsy.md https://huggingface.co/datasets/witcheer/rtx-5090-benchmarks/resolve/main/reports/nemotron-twotower-autopsy.md
Nemotron-TwoTower autopsy: a 2.4x speedup that costs a second 30B model
NVIDIA's Nemotron-TwoTower is a diffusion language model that generates 2.42x faster than autoregressive at 98.7% of the quality — no backbone retraining, a genuinely clever piece of engineering. It is also datacenter-only by construction, and not because the weights are merely large. It gets its speedup by holding two full 30B backbones in memory at once. On a single consumer card, the same ~2.4x throughput is already available for roughly a thousandth of the memory, and this rig has measured it. This is an autopsy from the published artifact and arithmetic — the model needs 2x80GB and does not run on the 5090.
Credit first: what it does
TwoTower takes one pretrained autoregressive model (Nemotron-3-Nano-30B-A3B) and runs it in two roles. A frozen context tower reads the clean prompt once and produces the KV cache and Mamba state. A trained denoiser tower then generates a block of tokens at a time by iterative mask-diffusion, unmasking several tokens per step instead of one. Because it commits multiple tokens per diffusion step, it clears a 240-token-style block in fewer forward passes than autoregressive decoding needs — hence 2.42x throughput, at 98.7% of the base model's quality (arXiv 2606.26493, measured on 2xH100). Adapting an AR model into a competitive diffusion model without retraining the backbone is real work.
The wall: the speedup is a second 30B network
The denoiser is not a lightweight add-on. It is a full, separately-trained 30B backbone, and at inference both towers are resident at once:
- The checkpoint ships two complete layer stacks (
context_tower.*anddenoiser_tower.*in the safetensors index): 126 GB in bf16, ~63B parameters total. The model card requires 2x A100/H100 80GB, ~59 GB per GPU. - You cannot share one backbone between the roles: the paper's own ablation reports that tying the towers is "substantially worse," so the denoiser's weights genuinely diverge from the frozen context tower.
- You cannot run the towers sequentially to halve peak memory either: the denoiser cross-attends to, and seeds its Mamba state from, the live context tower on every block step. The reference code places them on two separate GPUs precisely because both must be resident together.
So the 2.42x is bought by doubling the model's footprint. That is fine on 2x80GB. It is impossible on a 32GB card, and impossible even with full CPU offload on a 64GB-RAM box: 126 GB exceeds the 96 GB of total addressable memory. No quantized two-tower runtime exists (the custom trust_remote_code diffusion architecture is not supported by llama.cpp, GGUF, or AWQ pipelines), and building one is a research project, not a config flag. There is also a second, independent Blackwell wall: the denoiser has a hard, no-fallback dependency on mamba_ssm and causal_conv1d CUDA kernels — the familiar Mamba-hybrid sm_120 build problem.
The comparison that matters: what does 2.4x actually cost?
On one consumer 5090 the throughput problem is already solved, and far more cheaply. Speculative decoding buys the same multiplier for a draft head measured in single-digit gigabytes — often for nothing, when the draft head ships with the model. From this rig's own three-way spec-decode run on Gemma-4-26B-A4B (one RTX 5090, vLLM, sm_120, single stream):
| mechanism | AR-throughput multiplier | extra memory to enable it | hardware |
|---|---|---|---|
| Nemotron-TwoTower (diffusion) | 2.42x | a second 30B backbone (~60 GB) | 2x 80GB |
| spec-decode: MTP | 2.13x | ~0 (the draft head ships with the model) | 1x 32GB |
| spec-decode: DFlash | 2.19x | a small block drafter (~1 GB) | 1x 32GB |
| spec-decode: EAGLE-3 | 1.69x | a 0.9B drafter (~1.8 GB) | 1x 32GB |
Same target multiplier, memory costs that differ by ~50-100x. TwoTower spends a whole extra model to reach ~2.4x; MTP reaches ~2.1x by drafting from a head that is already part of the checkpoint. On a memory-constrained card, that gap is the entire story.
Two honest caveats. These are different mechanisms on different models — this is not a controlled A/B (TwoTower will not run on the rig to make one), it is an architectural argument about where the throughput comes from and what it costs. And it cuts the other way too: TwoTower's 2.42x is measured against plain autoregressive, with no speculative-decoding baseline. A production AR deployment already runs spec-decode at ~2.1-2.2x, so TwoTower's marginal win over a well-tuned AR server is much smaller than 2.42x — while still costing a second 30B backbone.
Verdict
The two-tower trick is clever and the quality retention is real, but the speedup is inseparable from a doubled memory footprint, which makes it a datacenter feature. On consumer hardware you do not need it: speculative decoding delivers the same ~2.4x for a rounding error of extra memory, and the rig has the numbers. If you want the model itself, the frozen backbone — nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-Base-BF16 — runs fine on a 5090 with the usual GGUF/FP8 quants; you just lose the diffusion path, which is the only part that needed two GPUs.
Method
Arithmetic and architecture autopsy from the published artifact: HF nvidia/Nemotron-Labs-TwoTower-30B-A3B-Base-BF16 (config.json, safetensors index, modeling_nemotron_twotower.py, inference.py, model card) and arXiv 2606.26493, cross-referenced with this rig's measured spec-decode numbers (Spec-decode three-way, Gemma-4-26B-A4B). The two HF repos (Nemotron-TwoTower and Nemotron-Labs-TwoTower) are the same checkpoint — config and shard sha256 byte-identical; the -Labs- repo adds inference.py. No 5090 run: the model requires 2x80GB and does not fit.
Companion pieces: GLM-5.2 autopsy (datacenter-only by memory arithmetic) and the spec-decode three-way (the cheap consumer path to the same throughput).