Skip to main content
NVIDIA
Explore
Models
Skills
Blueprints
GPUs
Docs
Help Center
Getting Started
  1. Create and verify your account to unlock full access to NVIDIA NIM APIs.
ResourcesDeveloper ForumsContact Support
FAQs
  • Serve LLMs with SGLang

    30 MIN

    High-throughput serving with RadixAttention, structured output, and an OpenAI-compatible API

    • DGX Spark
    • DGX Station
    • Inference
    • SGLang
    View on GitHub
    OverviewOverviewInstructionsInstructionsTroubleshootingTroubleshooting

    Common issues

    The Hardware platform column shows where an issue is most relevant. "All hardware platforms" applies to every platform listed in this playbook.

    SymptomHardware platformCauseFix
    "permission denied" when running dockerAll hardware platformsUser not in docker groupRun sudo usermod -aG docker $USER && newgrp docker
    Container fails to start with GPU errorAll hardware platformsNVIDIA Container Toolkit not configuredRun nvidia-ctk runtime configure --runtime=docker and restart Docker
    HuggingFace authentication failure, gated model access denied, or model download hangs/failsAll hardware platformsMissing/invalid token, restricted model access, or network issueExport HF_TOKEN before running docker; regenerate your HuggingFace token and request access to the gated model if needed
    CUDA out of memory / server exits with OOMAll hardware platformsModel or context too large for available memoryLower --mem-fraction-static (for example 0.7) and/or reduce --context-length
    Server not responding on port 30000 / connection refusedAll hardware platformsServer still loading, or port already in useCheck docker logs sglang-server; wait for readiness; or use -p 30001:30000 if the port is busy
    json_schema response_format returns errorAll hardware platformsContainer image missing schema-constrained decoding supportUse lmsysorg/sglang:latest-cu130
    Slow first request after server startAll hardware platformsKernel JIT + CUDA-graph captureWait for the ready message in logs; subsequent requests are fast
    Med cached prefill / cached_tokens is n/a or 0 unexpectedlyAll hardware platformsCache report not enabled, or hybrid mamba/SSM modelAdd --enable-cache-report; for mamba/SSM models (for example Qwen3.6-35B-A3B), zero cached tokens across requests is expected — validate with a standard-attention model
    python3: can't open file 'assets/benchmark_multiturn.py': [Errno 2] No such file or directoryAll hardware platformsPlaybook repository not cloned, or command not run from the playbook rootClone the repository and cd into nvidia/playbook-sglang (the directory containing assets/) as shown in Instructions → Step 8
    rm: cannot remove '.../.cache/huggingface/hub/models--...': Permission deniedAll hardware platformsThe container downloads weights as root into the mounted hub cache, so cached model files are root-ownedRemove with sudo rm -rf $HOME/.cache/huggingface/hub/"<downloaded model name>"
    device >= 0 && device < num_gpus INTERNAL ASSERT FAILEDDGX Station--gpus '"device=N"' index does not existRe-run nvidia-smi --query-gpu=index,name --format=csv,noheader and use the GB300 index, or --gpus all if there is only one GPU
    RuntimeError: ... buildNdTmaDescriptor ... Check failed: false during CUDA-graph captureDGX StationDefault trtllm_mha attention backend incompatible with GB300 / SM103Pass --attention-backend flashinfer
    AssertionError: FlashAttention v3 Backend requires SM>=80 and SM<=90DGX Station--attention-backend fa3 on Blackwell SM103Use --attention-backend flashinfer
    User lacks permission to set NUMA affinity warningDGX StationDocker dropped SYS_NICEAdd --cap-add SYS_NICE to docker run
    Memory pressure within capacityDGX SparkUMA buffer cache not releasedSee UMA note below
    deepseek-ai/DeepSeek-V4-* fails to loadDGX StationUnsupported in this SGLang build or insufficient memoryCheck SGLang docs for model support; try Flash before Pro; lower --mem-fraction-static and --context-length

    NOTE

    Unified memory (UMA). On hardware platforms with unified memory, GPU and CPU share memory dynamically. Some applications have not yet been updated for UMA, so you may hit memory issues even within capacity. If that happens, manually flush the buffer cache:

    sudo sh -c 'sync; echo 3 > /proc/sys/vm/drop_caches'
    

    NOTE

    Monitoring GPU memory with UMA. Because of unified memory, nvidia-smi --query-gpu memory fields may report N/A. Use plain nvidia-smi instead.

    NOTE

    On DGX Station the GB300 may be at device 0 or 1 depending on configuration. Always verify with nvidia-smi --query-gpu=index,name --format=csv,noheader before pinning a device.

    Resources

    • SGLang Documentation
    • SGLang Cookbook
    • SGLang Supported Models
    • SGLang Cookbook (source)
    • SGLang OpenAI API Reference
    • SGLang (GitHub)
    • DGX Spark Documentation
    • DGX Spark Forum
    • DGX Station Support
    • NVIDIA Developer Forums
    Terms of Use
    Privacy Policy
    Your Privacy Choices
    Contact

    Copyright © 2026 NVIDIA Corporation