Skip to content

Serve Nemotron-3 Super ​

Use this recipe to serve nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4 with TokenSpeed and optionally enable multi-token prediction (MTP) speculative decoding.

Prerequisites ​

Before you start, complete the following setup:

  • Install TokenSpeed in an environment that supports the checkpoint's FlashInfer TRT-LLM MoE implementation. For installation instructions, see Getting started.
  • Make the nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4 checkpoint available to the server.

Model architecture and cache settings ​

The checkpoint is a Nemotron-H hybrid with 88 blocks:

  • 40 Mamba2 layers.
  • 40 latent MoE layers.
  • 8 grouped-query attention layers without positional encoding.

Only the Mamba2 and attention blocks own cache state, so the cache plans 48 layers. The routed experts use squared ReLU with NVFP4 weights on the FlashInfer TRT-LLM MoE, routed inside the kernel. Some dense projections are FP8 and the rest are BF16, as specified by the checkpoint's per-layer ModelOpt configuration.

The checkpoint's KV cache scheme is FP8 with unit scales. TokenSpeed does not detect this scheme automatically, so pass --kv-cache-dtype fp8. The Mamba2 SSM state is FP32.

Start the server ​

The basic configuration uses one worker and a maximum model length of 16,384 tokens. It binds to all network interfaces on TCP port 8000; adjust --host and --port if your deployment requires different network settings.

  1. Start the TokenSpeed server:

    bash
    tokenspeed serve nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4 \
      --trust-remote-code \
      --kv-cache-dtype fp8 \
      --max-model-len 16384 \
      --world-size 1 \
      --host 0.0.0.0 \
      --port 8000

    Confirm that startup completes without errors and that the server listens on TCP port 8000.

Optional: Enable MTP speculative decoding ​

The checkpoint's multi-token prediction head serves as the draft model for speculative decoding. ReplaySSM is enabled by default: verification leaves the committed Mamba2 state untouched, and one kernel then rebuilds every layer's accepted state instead of storing a state per draft token. To store a state per draft token instead, pass --disable-replay-ssm.

  1. To enable MTP with three speculative steps and four draft tokens, start TokenSpeed with the following command instead of the basic server command. The command uses the checkpoint ID directly and requires no placeholder substitutions:

    bash
    tokenspeed serve nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-NVFP4 \
      --trust-remote-code \
      --kv-cache-dtype fp8 \
      --max-model-len 16384 \
      --world-size 1 \
      --speculative-algorithm MTP \
      --speculative-num-steps 3 \
      --speculative-num-draft-tokens 4

    Confirm that startup completes without errors and that the server accepts inference requests. ReplaySSM remains enabled unless you pass --disable-replay-ssm.

TokenSpeed documentation