[Deployment Guide] Single-Node 8x NVIDIA HGX B300 (1,048,576 Context) -NVLS Multicast & CUDA 13.1 JIT Reference

#18
by 2026Dev-ARK - opened

Overview

Outside of next-generation Vera Rubin rack-scale systems, a single 8× NVIDIA HGX B300 (288 GB HBM3e per GPU; 2,304 GB total VRAM) node is the primary conventional 4U server class capable of holding Kimi K3.1 Pro's full MXFP4 weights (~1.56 TB across 96 shards) alongside a full 1,048,576-token (1M) KV cache in a single TP=8 NVLink domain.

We brought up Kimi K3.1 Pro on a bare-metal Supermicro H14 4U HGX B300 system and documented three field blockers—and their exact fixes—so Moonshot's engineering team and other single-node B300 operators can deploy cleanly out of the box.


Verified Hardware & Software Baseline

  • System: Supermicro H14 4U GPU System with NVIDIA HGX B300 8-GPU Baseboard
  • GPUs: 8× NVIDIA B300 (288 GB HBM3e per GPU, 2,304 GB total HBM, NVLink 5 / 4th-Gen NVSwitch)
  • CPUs: Dual AMD EPYC 9575F 64-Core (128 cores / 256 threads)
  • RAM: 3,072 GB DDR5-6000 MT/s (24× 128 GB Micron, 24-channel)
  • Storage: 8× Samsung 7.68 TB PCIe 5.0 NVMe SSDs + 2× Samsung 960 GB NVMe M.2
  • OS / Stack: Ubuntu 24.04 LTS, NVIDIA Container Toolkit, CUDA 13.1, vLLM + FlashInfer
  • Model Footprint: 195 GB/GPU base weights (1,560 GB total), leaving 93 GB/GPU (744 GB node-wide) for KV cache, activations, and CUDA graphs at max_model_len=1048576.

Field Blockers & Exact Fixes

1. CUDA error 401 on Blackwell NVLS Multicast Binding (latent_moe_tail)

  • Issue: On HGX B300 baseboards, NVSwitch multicast tables can remain uninitialized after warm boots even when nvidia-fabricmanager is version-matched and active. Because K3.1's Blackwell Latent-MoE Tail Fusion (torch.distributed._symmetric_memory) auto-engages on SM100/SM103 with no env-var bypass (NCCL_NVLS_ENABLE=0 does not disable custom symmetric-memory multicast kernels), cuMulticastBindMem fails with CUDA error 401.
  • Fix: Perform an in-band GPU + NVSwitch reset before launching the container:
    sudo systemctl stop nvidia-fabricmanager
    sudo nvidia-smi -r
    sudo systemctl start nvidia-fabricmanager
    
  • Model/Runtime Suggestion: Add a multicast capability probe before committing to latent_moe_tail fusion, with a graceful fallback to unfused collectives if multicast binding is unavailable.

2. Driver-Only Host Images Fail FlashInfer Blackwell JIT (nvcc + ninja)

  • Issue: Enterprise HGX B300 nodes commonly ship with matched GPU drivers + nvidia-fabricmanager only (omitting the CUDA Toolkit to prevent driver/FM drift). FlashInfer's SM100/SM103 NVLS all-reduce and MXFP4 MoE kernels require nvcc (CUDA 13.1+) and ninja at runtime, aborting after loading all 96 shards (~1.56 TB).
  • Fix: Install driver-pinned cuda-toolkit-13-1 and ninja-build, expose CUDA_HOME / nvcc to the container, and mount ~/.cache/flashinfer to NVMe to persist compiled cubins.

3. fastsafetensors (nogds) Device Desync After nvidia-smi -r

  • Issue: Running nvidia-smi -r invalidates existing NVIDIA Container Toolkit UVM/device-cgroup handles for active container runtimes, causing fastsafetensors (nogds) to miss the GPUs.
  • Fix: Restart Docker (sudo systemctl restart docker) after nvidia-smi -r, or fall back to standard safetensors (~1.2 shards/s on PCIe 5.0 NVMe).

Validation Gates & Sanity Results

  • Fabric State: Completed / Success across all 8 GPUs; zero Xid errors in dmesg -T.
  • Memory Balance: ~195 GB/GPU base MXFP4 weights + full 1,048,576 context window verified.
  • Step 1 Benchmark (1M Context Capable Config): [TBD: Insert TTFT ms and Decode tok/s here]

Update: Confirmed Live Bring-Up (All Gates Passed)

Following the steps above, Kimi K3.1 Pro (full 96 MXFP4 shards, max_model_len=1048576) is now live and serving cleanly on our single-node 8× NVIDIA HGX B300 system:

  • Memory Footprint: Balanced at 208 GB/GPU across all 8 B300s (1,664 GB total weights + workspace), leaving **80 GB/GPU (~640 GB node-wide)** of HBM3e headroom for the 1M-token KV cache and CUDA graphs.
  • NVLS Multicast & Kernel JIT: Resetting the NVSwitch multicast tables (nvidia-smi -r + nvidia-fabricmanager cycle) resolved CUDA error 401, and installing driver-pinned CUDA 13.1 (nvcc) + ninja allowed FlashInfer's Blackwell SM100/SM103 NVLS all-reduce and MXFP4 MoE kernels to compile cleanly and complete CUDA graph capture.
  • Hardware Health: Zero Xid errors in dmesg -T across shard load, JIT build, graph capture, and live inference.
2026Dev-ARK changed discussion status to closed

Sign up or log in to comment