Instructions to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS # Run inference directly in the terminal: ./build/bin/llama cli -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Use Docker
docker model run hf.co/pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
- Llama new
- LM Studio
- Jan
- vLLM
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
- Ollama
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with Ollama:
ollama run hf.co/pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
- Unsloth Desktop
- Pi
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with Docker Model Runner:
docker model run hf.co/pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
- Lemonade
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Run and chat with the model
lemonade run user.Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF-IQ2_XXS
List all available models
lemonade list
- Hermes Agent
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF:IQ2_XXS" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Nemotron 3 Nano 30B A3B โ pirola padded, IQ2_XXS/IQ2_XS (fork-only GGUF)
A 9.98 GiB GGUF of NVIDIA-Nemotron-3-Nano-30B-A3B that serves 262,144
context at q4_0 KV within an 11,392 MiB footprint โ comfortably under a 12 GB
RTX 5000-class GPU (896 MiB margin), with coding ability statistically
indistinguishable from the full 13.37 GiB pirola-IQ3_XXS build.
This is the same Variant B zero-padding as pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ3_XXS-GGUF,
quantized lower to fit 12 GB cards.
โ ๏ธ Critical: this file requires a fork build of llama.cpp. The model's expert
weights have their reduction axes zero-padded to 256-divisible widths, which stock
llama.cpp refuses to load. The patch is included (nemotron-expert-padding.patch).
Quantization recipe
Zero-pad the reduction axes (exact: the MoE activation is reluยฒ, and reluยฒ(0)=0):
| tensor | original | padded |
|---|---|---|
ffn_up_exps reduction axis |
2688 | 2816 |
ffn_down_exps (expert FF width) |
1856 | 2048 |
| shared-expert FF width | 3712 | 3840 |
Per-tensor types (chosen by dry-run + validated head-to-head; imatrix = the padded
Unsloth-derived imatrix imatrix-padded.gguf):
| group | type | bpw |
|---|---|---|
ffn_up_exps |
IQ2_XXS | 2.06 |
ffn_down_exps |
IQ2_XS | 2.31 |
| shared-expert FF | Q6_K / Q5_0 / Q4_K (as pirola-IQ3_XXS) | โ |
| attention / SSM | Q4_K / Q5_0 / F32 (as pirola-IQ3_XXS) | โ |
| output | Q8_0 | โ |
The down projection is kept one step higher (IQ2_XS) than the up (IQ2_XXS) โ measured: a Q8_0-base variant with IQ2_XXS on both was worse (PPL 8.15 vs 8.08) and had less VRAM headroom. Down is where MoE quality lives.
Measured quality โ head-to-head vs the 13.37 GiB pirola-IQ3_XXS incumbent
All cells at identical protocol (temp 1.0 / top_p 1.0, thinking ON, 8192 cap for coding; temp 0.6 / top_p 0.95 for agentic). RTX 5080, sm_120 build.
| metric | this file (IQ2_XXS/XS) | pirola-IQ3_XXS | verdict |
|---|---|---|---|
| MBPP-sanitized (427) | 89.23 % (381/427) | 90.40 % (386/427) | McNemar p=0.383 โ n.s. |
| HumanEval (164) | 97.56 % (160/164) | 94.51 % (155/164) | McNemar p=0.227 โ n.s. |
| Agentic gate (5 seeds, thinking-on) | 5/5 | 5/5 | tie |
| MBPP cap-hits | 2 | 7 | better |
wikitext-2 PPL (-c 4096 --chunks 40) |
8.0765 ยฑ 0.074 | 6.9728 ยฑ 0.062 | +1.10 |
| VRAM @ 262,144 / q4_0 KV, full window | 11,392 MiB | 14,862 MiB | fits 12 GB |
Bottom line: statistically indistinguishable from the 13.37 GiB build on every coding cell, at 3.5 GB less VRAM. The +1.10 PPL cost of 2.4 bpw experts does not surface in pass@1 or agentic ability.
Files
| file | purpose |
|---|---|
Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS.gguf |
the quantized model (10,717,175,296 bytes) |
nemotron-expert-padding.patch |
required โ 4 hunks / 3 files, applies to llama.cpp ~b9591 |
pad_gguf.py |
reproduction: zero-pads the GGUF tensors (Variant B) |
pad_imatrix.py |
pads the imatrix (must match the padded geometry) |
imatrix-padded.gguf |
the padded Unsloth-derived imatrix used for this quantization |
verify_pad.py |
verifies padding correctness |
serve-nemotron.sh |
validated serve script |
parts/part-000 โฆ parts/part-019 |
split-download fallback (20 chunks) reassembling to the same GGUF above โ use if the direct download stalls |
sha256
c6363afc6a9c9d77efa4df0587f52c67c0f3dbc8b5a0efec10b8ba0c6a103152 Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS.gguf
Serving
You must build llama.cpp from the included patch. Stock llama.cpp refuses the file. This GGUF was built and validated with llama.cpp compiled for sm_120 (NVIDIA RTX 5080, Blackwell) โ the CUDA target is hard-coded into the build:
git clone https://github.com/ggml-org/llama.cpp
cd llama.cpp && git checkout b9591 # or any commit ~b9591
git apply /path/to/nemotron-expert-padding.patch
cmake -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120 # sm_120 = RTX 5080
cmake --build build --config Release -j
Set -DCMAKE_CUDA_ARCHITECTURES to your own GPU's compute capability (e.g. 89
for RTX 40-series Ada) if you are not on a 5080 โ the patch and the quantization
are architecture-independent; only the CUDA kernels are compiled per capability.
Toolchain caveat: NVCC 13.2 miscompiles the i-quant sign-table CUDA kernels (
iq1_s/iq2_s/iq3_s). If you are on CUDA โฅ13.2, rebuild against CUDA 13.0 before trusting any IQ output.
Exact serve flags (validated operating point)
llama-server \
-m Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS.gguf \
--host 127.0.0.1 --port 8189 \
-ngl 99 -np 1 --flash-attn on \
-c 262144 -ctk q4_0 -ctv q4_0 \
--jinja --alias nemotron \
--temp 0.6 --top-p 0.95
Measured: 11,312 MiB after load, 11,392 MiB after a full 250k-token prompt
(12 GB card = 12,288 MiB; 896 MiB free). Do not raise -np, -c, or the KV cache
type without re-measuring.
Sampling guidance
| mode | temperature | top_p |
|---|---|---|
| Tool calling / agentic | 0.6 | 0.95 |
| Reasoning / single-shot benchmarks | 1.0 | 1.0 |
Thinking is on by default; disable per-request with
"chat_template_kwargs": {"enable_thinking": false}.
First padded build for this family โ verified 2026-08-12
A full audit of Hugging Face, GitHub and the web (100 % enumeration: 7,106 repos / 668 Nemotron GGUF files; 105 repos / 235 Cascade-2-30B-A3B GGUF files; every llama.cpp issue/PR/commit; every relevant discussion) established the following facts:
- No other padded or genuine sub-4-bit GGUF exists for
Nemotron-3-Nano-30B-A3BorNemotron-Cascade-2-30B-A3Bbesides this repo and its IQ3_XXS sibling. - Every published "sub-4-bit named" GGUF of these two models is pinned at
16.5โ18.1 GB (effective 4.6โ5.2 bpw): the expert dims (1856/2688, not
256-divisible) silently fall back to IQ4_NL in
llama-quantize'stensor_type_fallback. Even IQ1_M (1.56 bpw) builds are ~17.9 GB. - The only sub-18 GB llama.cpp files for these models are 4-bit FP formats (ROCmFP4 15.73 GB; NVFP4/MXFP4 โ16.7โ17.9 GB) โ not sub-4-bit and not padded.
- The smaller JANG build (Cascade-2, ~10 GB) is MLX-only (Apple Silicon): MLX group quantization (group 32/64, no 256-divisibility constraint) โ not padded and not a llama.cpp GGUF.
- The zero-padding idea was floated in a draft, never-merged llama.cpp PR
(
708-145/llama.cpp#33, Dec 2025) and an unsloth discussion; no file was ever produced from it.
Provenance
- Base model:
nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16(NVIDIA, SepโDec 2025). Architecturenemotron_h_moe(Mamba2 + MoE hybrid; ~35.4 B declared params, ~29.4 B real MoE params). - License: NVIDIA Open Model License (https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-nemotron-open-model-license/).
- Quantization imatrix: derived from Unsloth's model-specific calibration file,
padded to the padded geometry with
pad_imatrix.py. - Padding lineage: the technique was developed 2026-08-10; see the "First padded build" section above for the prior-art audit.
- Downloads last month
- 75
2-bit
Model tree for pirola/Nemotron-3-Nano-30B-A3B-pirola-IQ2_XXS-XS-GGUF
Base model
nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16