{
  "id": "nemotron-labs-image",
  "title": "Nemotron-Labs-Image 30B-A3B text-to-image on a 12 GB card",
  "summary": "NVIDIA's autoregressive text-to-image MoE (AtomicChat Q4_K_M, 25.4 GB) on stock llama.cpp with every routed expert in RAM, a 7000 MiB MoE cache and GPU-side sampling: a 1024x1024 image in 61.5 s (68.7 tok/s) against 108.6 s for stock --fit; NVIDIA's decoder adds 0.23 s on the GPU. Non-commercial licence.",
  "status": "measured",
  "updated": "2026-11-29",
  "use_cases": [
    "image-generation",
    "text-to-image",
    "moe-offload",
    "non-commercial"
  ],
  "model": {
    "name": "Nemotron-Labs-Image-30B-A3B",
    "hf_repo": "nvidia/Nemotron-Labs-Image-30B-A3B",
    "params": "30B (3B active)",
    "architecture": "hybrid MoE (23 Mamba-2, 23 MoE with 128 routed experts top-6, 6 attention) writing visual codes; L24SQ ViT decoder",
    "license": "NVIDIA OneWay Noncommercial License"
  },
  "weights": {
    "format": "GGUF",
    "quant": "Q4_K_M (mostly Q5_0 and Q8_0)",
    "bpw": 6.23,
    "size_gb": 25.4,
    "source": "https://huggingface.co/AtomicChat/Nemotron-Labs-Image-30B-A3B-GGUF",
    "file": "Nemotron-Labs-Image-30B-A3B-Q4_K_M.gguf",
    "revision": "f0d9baa3ead2fcafce876c4f0204fc005ccc4ee7",
    "notes": "Decoder and tokenizer code from nvidia/Nemotron-Labs-Image-30B-A3B at d7c2ba6a59a384080f0bdd5b1e846da03804cdd1 (Nemotron-Labs-Image-Tokenizer, run in bf16 with the encoder dropped)."
  },
  "engine": {
    "name": "llama.cpp",
    "repo": "https://github.com/ggml-org/llama.cpp",
    "version": "b671865c7 (stock; AtomicChat's patch only changes the converter)",
    "cuda": "sm_86 build"
  },
  "hardware": {
    "gpu": "NVIDIA GeForce RTX 3060",
    "vram_gb": 12,
    "ram_gb": 62,
    "cpu": "Intel Core i5-12500",
    "disk": "NVMe SSD",
    "os": "Linux",
    "driver": "615.78.08",
    "notes": "The desktop and an idle ComfyUI hold about 1.3 GB of the card; at most 10,965 MiB was free for a job."
  },
  "serve": {
    "command": "./generate.sh \"prompt\"",
    "script": "generate.sh",
    "port": 8107,
    "api": "llama-server /completion with raw prompt ids (tools/nli.py), PNG out",
    "key_flags": [
      "-ngl 99 --cpu-moe --fit off",
      "--moe-cache-mib 7000 --moe-cache-cpu-share 0.95",
      "--backend-sampling",
      "-c 6144 -np 1 -fa on",
      "NL_PROFILE=stock for the baseline"
    ]
  },
  "context_tokens": 6144,
  "placement": "Every routed expert in RAM (21.3 GiB, page cache); non-expert weights, the LM head and a 7000 MiB cache of hot experts on the GPU. The decoder runs on the GPU after the server stops.",
  "results": [
    {
      "metric": "decode",
      "label": "1024x1024 image, median of 8 prompts, seed 42",
      "value": 68.69,
      "unit": "tok/s",
      "baseline": 38.7,
      "ceiling": 87,
      "headline": true,
      "source": "nemotron-labs-image/RESULTS.md:61"
    },
    {
      "metric": "other",
      "label": "wall time per 1024x1024 image (generation)",
      "value": 61.5,
      "unit": "s",
      "baseline": 108.6,
      "headline": true,
      "source": "nemotron-labs-image/RESULTS.md:62"
    },
    {
      "metric": "decode",
      "label": "1248x832 image (fox)",
      "value": 70.75,
      "unit": "tok/s",
      "source": "nemotron-labs-image/RESULTS.md:63"
    },
    {
      "metric": "other",
      "label": "decoder, 1024x1024, GPU bf16",
      "value": 0.228,
      "unit": "s",
      "source": "nemotron-labs-image/RESULTS.md:66"
    },
    {
      "metric": "decode",
      "label": "aggregate with -np 4, capped samples",
      "value": 127.0,
      "unit": "tok/s",
      "source": "nemotron-labs-image/RESULTS.md:51"
    },
    {
      "metric": "quality",
      "label": "valid images at 1024x1024, all inspected",
      "value": "8/8",
      "unit": "images",
      "headline": true,
      "source": "nemotron-labs-image/RESULTS.md:32"
    },
    {
      "metric": "vram_peak",
      "label": "llama-server while generating",
      "value": 10250,
      "unit": "MiB",
      "source": "nemotron-labs-image/RESULTS.md:68"
    },
    {
      "metric": "ram_peak",
      "label": "RSS high-water",
      "value": 25.1,
      "unit": "GB",
      "source": "nemotron-labs-image/RESULTS.md:69"
    },
    {
      "metric": "startup",
      "label": "server ready, warm page cache",
      "value": "2-3",
      "unit": "s",
      "source": "nemotron-labs-image/RESULTS.md:67"
    },
    {
      "metric": "ttft",
      "label": "85-token prompt, warm",
      "value": "0.69-0.73",
      "unit": "s",
      "source": "nemotron-labs-image/RESULTS.md:65"
    }
  ],
  "caveats": [
    "Non-commercial use only (NVIDIA OneWay Noncommercial License, section 3.3), for the model, the decoder, the GGUF and the images.",
    "The model card's -ngl 99 line does not load on 12 GB; the baseline is the same line without -ngl (llama.cpp --fit).",
    "The same seed gives a different image on a different config (the first visual token flips at temperature 0.9); one same-config pair also diverged, cause not found.",
    "Drift against BF16 is not measured.",
    "512x512 gives broken grids; use the card's sizes.",
    "The -np 4 throughput figure is from capped 1,200-token samples, not full images."
  ],
  "credits": [
    "nvidia-nemotron-labs",
    "atomicchat",
    "llama-cpp",
    "pedromarinhodev",
    "0xsero",
    "huggingface",
    "nvidia"
  ],
  "findings": [],
  "contributor": {
    "name": "David Hatley",
    "github": "davidghatley"
  },
  "$schema": "https://davidghatley.github.io/3060-recipes/schema/recipe.schema.json",
  "url": "https://davidghatley.github.io/3060-recipes/recipes/nemotron-labs-image/",
  "folder": "https://github.com/davidghatley/3060-recipes/tree/main/nemotron-labs-image"
}
