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
  • Quantize Models to NVFP4 with NVIDIA Model Optimizer

    60 MIN

    Cut memory ~3.5× vs FP16 while keeping accuracy close to FP8, then validate with an OpenAI-compatible endpoint

    • DGX Spark
    • DGX Station
    • Inference
    • Model Optimizer
    • TensorRT-LLM
    • vLLM
    View on GitHub
    OverviewOverviewInstructionsInstructionsTroubleshootingTroubleshooting

    Common issues

    The Hardware platform column shows where an issue is most relevant. "All hardware platforms" applies to every supported platform.

    SymptomHardware platformCauseFix
    "permission denied" when running dockerAll hardware platformsUser not in docker groupRun sudo usermod -aG docker $USER && newgrp docker
    "Permission denied" when accessing Hugging FaceAll hardware platformsMissing or invalid HF tokenExport a valid HF_TOKEN, or run huggingface-cli login
    Cannot access gated repo for URLAll hardware platformsRestricted Hugging Face modelRegenerate your Hugging Face token and request access to the gated model
    Container exits with CUDA out of memoryAll hardware platformsInsufficient GPU memoryQuantize a smaller model, or free GPU memory and retry
    Model files not found in output directoryAll hardware platformsVolume mount failed or wrong pathVerify ./output_models resolves from your working directory and remount
    Git clone fails inside containerAll hardware platformsNetwork connectivity issuesCheck internet access and retry
    Quantization process hangsAll hardware platformsContainer resource limitsIncrease Docker memory limits or keep --ulimit flags from Instructions
    Log ends with MPI or ModuleNotFoundError: No module named 'mpi4py'DGX StationOptional MPI runner step after quantConfirm NVFP4 artifacts exist under ./output_models; quantization may have succeeded even if the final runner step fails
    Model runs on wrong GPUDGX StationDual-GPU default selectionSet GPU_ID to the GB300 device from nvidia-smi and use --gpus "device=$GPU_ID"
    Memory pressure within capacityDGX SparkUMA buffer cache not releasedSee UMA note below
    Permission denied removing ./output_modelsAll hardware platformsRoot-owned files from containerUse sudo rm -rf ./output_models

    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'
    

    Resources

    • NVIDIA Model Optimizer Documentation
    • TensorRT-LLM Documentation
    • vLLM Documentation
    • 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