Radix & VRAM Tuning
Multi-GPU Tensor Parallel (--tp 2) & Docker IPC Tuning
Configure shared memory, NCCL P2P flags, and Hugging Face weight caches cleanly inside docker-compose.yml for 70B+ clusters.
--tp 2 / --tp 4 · ipc: host Required · HF Cache Mount
Why Default /dev/shm Fails Tensor Parallel
Standard Docker containers cap /dev/shm at 64 MB, which breaks PyTorch tensor sharing and NCCL collectives across multi-GPU instances. Setting ipc: host resolves this cleanly.
Persisting Safetensors Across Restarts
Always bind-mount the Hugging Face hub cache directory so container updates or flag changes boot in 15-35 seconds instead of re-fetching 70+ GB checkpoints.
Measured Thresholds & SGLang Flag Matrix
| Docker Setting | Required Value | Failure Mode If Omitted |
|---|---|---|
| ipc | host | NCCL shared memory crash at startup |
| volumes | ~/.cache/huggingface | Re-downloads 70-140 GB weights on restart |
| --tp | 2 (on 2x H100) | Model loads on GPU 0 only and OOMs |