Nemotron-Labs-Image-30B-A3B: Pixel-as-Code Hybrid Mamba-MoE Visual Generation & Agentic Harness

Nemotron-Labs-Image-30B-A3B is NVIDIA's 30B-total, 3B-active hybrid Mamba-MoE autoregressive raster image generator inside the Pixel-as-Code VisualCreation framework. Using a 642M-parameter L24SQ Leech-lattice visual tokenizer with 196,560 codebook entries and 52 hybrid Nemotron-H layers, it connects directly to Smoke Monkey Harness for verified visual and structured artifact generation.
Nemotron-Labs-Image-30B-A3B: Pixel-as-Code Hybrid Mamba-MoE Visual Generation & Agentic Harness: Nemotron-Labs-Image-30B-A3B is NVIDIA's 30B-total, 3B-active hybrid Mamba-MoE autoregressive raster image generator inside the Pixel-as-Code VisualCreation framework. Using a 642M-parameter L24SQ Leech-lattice visual tokenizer with 196,560 codebook entries and 52 hybrid Nemotron-H layers, it connects directly to Smoke Monkey Harness for verified visual and structured artifact generation. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Unified Autoregressive Visual Token Stream: Represents 16x16 raster patches as 196,560 discrete virtual tokens inside a 327,680-row NemotronHForCausalLM vocabulary.
- 52-Layer Hybrid Mamba-MoE Backbone: Combines Mamba-2 SSM layers (M), sparse 128-expert ReLU2 MoE layers (E, top-6 active), and GQA attention (*) across 262,144-token context.
- 10.93x Faster L24SQ Visual Decoding: The 642M-parameter Leech-lattice tokenizer encodes in 41.30 ms and decodes in 37.10 ms on A100 while hitting 29.57 dB PSNR and 0.834 SSIM.
- GRPO Post-Training & Pairwise Visual Selection: Achieves 92.86 on GenEval, 97.98 on LongTextBench, and 91.50 on WISE Verified inside the VisualCreation harness.
- Deterministic Harness Repair Loops: Pairs raster output with VisionCode HTML/SVG generation and Smoke Monkey Harness verification gates.
import { createAgent } from '@smoke-monkey/harness';// Orchestrate Nemotron-Labs-Image-30B-A3B raster generation + HTML/SVG verificationconst visualAgent = createAgent({agentId: 'nemotron-visual-creator',provider: 'openai',baseUrl: process.env.VLLM_BASE_URL ?? 'http://127.0.0.1:8000/v1',apiKey: process.env.VLLM_API_KEY ?? 'local-nemotron',model: 'nvidia/Nemotron-Labs-Image-30B-A3B',workspacePath: process.cwd(),tools: ['filesystem', 'terminal', 'search'],permission: 'ask-default',mcp: [{id: 'playwright-audit',name: 'Playwright Visual Audit',description: 'Render hybrid HTML/SVG deliverables and inspect bounding-box layout',command: 'npx',args: ['-y', '@playwright/mcp@latest'],enabled: true,},],});visualAgent.on('permission.required', (event) => {const safeTools = ['read_file', 'glob', 'grep', 'browser_snapshot'];visualAgent.resolvePermission(event.data.toolCallId,safeTools.includes(event.data.toolName) ? 'allow' : 'deny');});async function runVisualPipeline() {const res = await visualAgent.run('Generate a 1184x880 technical raster diagram using scripts/infer_l24sq.py, verify grid shape (55x74), and embed it in reports/architecture.html.');console.log('VisualCreation status:', res.status);}runVisualPipeline().catch(console.error);
Watch: Related Video Guides
NVIDIA Nemotron 3.5 Super VL | 120B AI Model for Vision & Agents
Nemotron 3.5 Super VL — NVIDIA's New AI Model Is Built for Multimodal Autonomous Agents
What Is Nemotron-Labs-Image-30B-A3B? Pixel-as-Code Architecture
Nemotron-Labs-Image-30B-A3B is NVIDIA's 30B-total, 3B-active autoregressive raster image generator built on the NemotronHForCausalLM hybrid Mamba-MoE architecture. Inside the Nemotron-Labs-VisualCreation framework, it emits discrete visual tokens from a 196,560-entry Leech-lattice codebook, unifying pixel synthesis and programmatic HTML/SVG rendering under one autoregressive token interface.
Inspecting config.json from nvidia/Nemotron-Labs-Image-30B-A3B exposes the exact 52-layer hybrid topology initialized from Nemotron 3 Nano. Rather than relying on a diffusion U-Net or DiT (AutoPipelineForText2Image is unsupported), the model embeds visual patches directly into an extended 327,680-row vocabulary (131,072 base text tokens plus 196,560 visual virtual tokens and framing delimiters <|img_start|>, <|img_end|>, <|vis_row|>).
Exact Model Topology from config.json
| Configuration Field | Verified Specification |
|---|---|
| Architecture Class | NemotronHForCausalLM (model_type: nemotron_h) |
| Hybrid Layer Pattern (`52` Layers) | MEMEM*EMEMEM*EMEMEM*EMEMEM*EMEMEM*EMEMEMEM*EMEMEMEME |
| Mamba-2 SSM (`M`) Config | 64 heads, mamba_head_dim: 64, ssm_state_size: 128, conv_kernel: 4, fp32 state cache |
| Sparse MoE (`E`) Config | 128 routed experts (top-6 active), 1 shared expert (3712 width), relu2 activation |
| GQA Attention (`*`) Config | 32 query heads, 2 KV heads (head_dim: 128), rope_theta: 10000, 262,144 max context |
| Visual Tokenizer (`l24sq_vit`) | ~642M parameters (Nemotron-Labs-Image-Tokenizer/), 16x16 patches, 196,560 Leech-lattice vectors |
| Training & Alignment | Progressive mid-training + GRPO for semantic alignment and typography fidelity |
Not a Diffusers Pipeline
Nemotron-Labs-Image-30B-A3B is an autoregressive causal language model emitting discrete L24SQ codebook tokens, not a latent diffusion model. Serve it through vLLM with --moe-backend triton and decode token IDs via decoder.pack_decode().
L24SQ Leech-Lattice Tokenizer & Pixel-as-Code Routing
The bundled Nemotron-Labs-Image-Tokenizer (l24sq_vit) maps 16x16 RGB patches into a fixed 24-dimensional Leech-lattice codebook of 196,560 vectors. At batch size 1 on an NVIDIA A100, it encodes in 41.30 ms and decodes in 37.10 ms—delivering a 7.13x encoding and 10.93x decoding speedup over Emu3.5 IBQ.
In the full VisualCreation harness (arXiv 2611.31358), requests route across three paths: direct raster synthesis (Image-30B-A3B + Nemotron-3.5-Super-VL candidate selection), browser-based hybrid creation (Nemotron 3 Ultra layout contract + Dual Coder + Playwright audits), and native SVG/document code (VisionCode-30B-A3B and 120B-A12B). Default repair policies cap edits at three accepted repairs across eight attempted cycles.
Tokenizer Reconstruction Quality vs. Emu3.5 IBQ (178K Images)
| Reconstruction Metric | Emu3.5 IBQ | Nemotron-Labs-Image-Tokenizer (l24sq_vit) |
|---|---|---|
| PSNR (dB) ↑ | 26.08 | 29.57 |
| SSIM ↑ | 0.781 | 0.834 |
| LPIPS ↓ | 0.0855 | 0.0713 |
| FID ↓ | 36.36 | 35.06 |
| FD-DINOv2 ↓ | 7.49 | 5.25 |
| Encode / Decode Latency (A100, BS=1) | 294.53 ms / 405.46 ms | 41.30 ms / 37.10 ms (7.13x / 10.93x) |
Raster Generation & Structured Visual Coding Benchmarks
Across text-to-image and infographic suites, Nemotron-Labs-VisualCreation scores 92.86 on GenEval, 97.98 on LongTextBench, 92.53 on CVTG-2K, and 91.50 on WISE Verified—surpassing FLUX.2 Dev (87.00 GenEval, 56.50 WISE) and GPT Image 2 (89.00 GenEval, 96.00 LongTextBench) on multi-object composition and dense text.
Cross-Model Visual Generation Comparison
| Benchmark ↑ | Nemotron-Labs-VisualCreation | GPT Image 2 | Nano Banana Pro | FLUX.2 Dev | Qwen-Image |
|---|---|---|---|---|---|
| GenEval | 92.86 | 89.00 | — | 87.00 | 86.83 |
| GenEval2 | 65.43 | 81.00 | 59.00 | — | 33.80 |
| UniGenBench++ (Short / Long) | 93.20 / 94.25 | — / — | 92.72 / 94.20 | 84.76 / 90.31 | 78.36 / 83.94 |
| LongTextBench | 97.98 | 96.00 | 97.60 | 96.30 | 94.30 |
| CVTG-2K | 92.53 | 90.03 | 77.90 | 89.26 | 82.88 |
| WISE Verified | 91.50 | — | 87.60 | 56.50 | 51.00 |
| BizGenEval | 86.0 | 83.2 | 76.7 | 4.9 | 6.3 |
On standalone structured visual coding (Chart2Code, Img2SVG, Text2SVG, Design2Code, Image2Struct), VisionCode-30B-A3B reaches a 93.62 five-task aggregate (91.17 Chart+SVG, 95.25 SVG+Web+Doc), while VisionCode-120B-A12B hits 98.27—ahead of Kimi K3.1 Pro (94.44).
Production Serving on 4x H100 with vLLM, Triton MoE & L24SQ Decoding
Deploying Nemotron-Labs-Image-30B-A3B requires PyTorch 2.11.0, CUDA 13.0, vLLM 0.21.0, and Transformers 5.23.0 on four 80 GB GPUs (tensor_parallel_size=4) with moe_backend="triton". Generating a 1024x1024 image produces a 64x64 visual-token grid (4,096 visual tokens plus 64 <|vis_row|> delimiters and headers) inside a 4,352-token budget.
Recommended Resolutions & Grid Shapes (patch_size = 16)
Any width and height divisible by 16 are supported within max_tokens=4352 and max_model_len=6144:
1024x1024:64 x 64grid (4,096visual tokens +64row markers)1184x880:55 x 74landscape grid (4,070visual tokens +55row markers)1248x832:52 x 78widescreen grid (4,056visual tokens +52row markers)880x1184:74 x 55portrait grid (4,070visual tokens +74row markers)
# 1. Create isolated Python 3.12 environment with CUDA 13.0 validated stack
python3.12 -m venv .venv-nemotron-img && source .venv-nemotron-img/bin/activate
pip install --upgrade pip
pip install "torch==2.11.0" "vllm==0.21.0" "transformers==5.23.0" \
"Pillow==12.3.0" "safetensors==0.8.0" "einops>=0.8,<1" "huggingface_hub>=1,<3"
export VLLM_WORKER_MULTIPROC_METHOD=spawn
# 2. Download all 32 safetensors shards + Nemotron-Labs-Image-Tokenizer/
hf download nvidia/Nemotron-Labs-Image-30B-A3B --local-dir ./Nemotron-Labs-Image-30B-A3BSet temperature=0.9, top_p=1.0, top_k=-1, enable_thinking=False, and stop_token_ids=[tokenizer.convert_tokens_to_ids("<|img_end|>")] when calling vllm.LLM(..., moe_backend="triton", dtype="bfloat16", enforce_eager=True). Validate height= and width= headers in extract_l24sq_codes() before passing indices to decoder.pack_decode().
Orchestrating Hybrid Visual Deliverables in Smoke Monkey Harness
In Smoke Monkey Harness, Nemotron-Labs-Image-30B-A3B acts as the raster generation stage inside a multi-agent Explore-Plan-Edit-Verify loop. Coding agents write HTML/SVG layout contracts, invoke the L24SQ raster pipeline for hero assets, and inspect rendered DOM screenshots via Playwright MCP before shipping.
- Grid-Shape Contract Validation: Wrap
extract_l24sq_codes()as a pre-commit check inrun_commandso malformed token grids fail deterministically before pixel decoding. - Process-Split GPU Scheduling: When running alongside a code-generation LLM on 4x 80 GB GPUs, run the
30B-A3Bgenerator (gpu_memory_utilization=0.70) and the642ML24SQ decoder in separate processes, passing only the4,096-integer codebook ID array between stages. - Compliance & License Gate: Note that
nvidia/Nemotron-Labs-Image-30B-A3Bcarries the NVIDIA One-Way Noncommercial License (nvidia-license), so reserve it for R&D, evaluation, and non-commercial prototyping inside Smoke Monkey Canvas.
Frequently Asked Questions
Q:How does Nemotron-Labs-Image-30B-A3B generate images without a diffusion U-Net?
It is an autoregressive hybrid Mamba-MoE causal language model (NemotronHForCausalLM) whose 327,680-row vocabulary includes 196,560 discrete Leech-lattice visual tokens. It predicts row-by-row 16x16 patch indices framed by <|img_start|>, <|vis_row|>, and <|img_end|>, which the 642M L24SQ decoder turns into RGB pixels in 37.10 ms.
Q:Why does the reference vLLM configuration require moe_backend='triton'?
NVIDIA's validated PyTorch 2.11 + vLLM 0.21.0 recipe explicitly selects moe_backend='triton' with enforce_eager=True to match tested numerical outputs and avoid FlashInfer MoE kernel compilation delays during multi-GPU startup.
Q:What resolutions are recommended for Nemotron-Labs-Image-30B-A3B?
Both width and height must be multiples of 16 and fit inside the 4,352-token generation cap. NVIDIA recommends 1024x1024 (64x64 grid), 1184x880 (55x74), 1248x832 (52x78), and 880x1184 (74x55).
Q:Can Nemotron-Labs-Image-30B-A3B be loaded with Hugging Face Diffusers?
No. AutoPipelineForText2Image is incompatible because the model uses NemotronHForCausalLM and a custom l24sq_vit pack_decode() decoder with trust_remote_code=True.
Q:How does L24SQ compare to Emu3.5 IBQ for visual reconstruction?
Evaluated across ~178K images in six domains, Nemotron-Labs-Image-Tokenizer improves PSNR from 26.08 to 29.57 dB, SSIM from 0.781 to 0.834, and FID from 36.36 to 35.06 while running 7.13x faster at encoding (41.30 ms) and 10.93x faster at decoding (37.10 ms) on A100.
Related Alternatives & Comparisons
Claude Code Runtime Alternative: Open Source Stdio MCP Agent Harness
Openai Codex Alternative Open Source: Free Open Source AI Agent & Runtime (2026)
LangChain TypeScript Alternative: Zero Dependencies & Deterministic Loops
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.