37 Downloads Updated 6 days ago
ollama run oamazonasgabriel/nemotron-nano-9b-v2
Updated 1 week ago
1 week ago
007175a6bfc3 · 18GB ·
Model: oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU
A Q4_K_M build of NVIDIA Nemotron Nano 9B v2, NVIDIA’s open 9B reasoning model, quantized locally from the BF16 source and tuned for a single 16 GB GPU card with maximum KV cache. The Q4_K_M weights (6.53 GB) fit entirely on a 16 GB GPU — verified 100% GPU / 0% CPU offload — leaving ~9 GB of VRAM for a large KV cache. Uses the hybrid Mamba-2 + attention architecture for efficient long-context inference.
The ideal single-16GB-GPU reasoning companion for: RTX 5060 Ti 16GB · RTX 4080 · RTX 5080 · RTX 4090 · any NVIDIA setup with 16 GB VRAM
thinking… response reasoning blocks, returned by Ollama as message.thinking<tool_call> XML format, parseable with the qwen3_coder parser used by agent harnesses (OpenCode, OpenClaw, Hermes Agent, Claude Code)/think & /no_think controls: force or skip extended reasoning per request| Property | Value |
|---|---|
| Architecture | nemotron_h — hybrid Mamba-2 + Attention (dense, non-MoE) |
| Total Parameters | 8.89B (all active) |
| Layers | 56 |
| Hidden Size | 4,480 |
| Native Context | 131,072 tokens (128K) |
| Modalities | Text |
| Quantization | Q4_K_M (~6.53 GB) |
| Model Size | ~6.53 GB (weights) |
| License | NVIDIA Open Model License |
| Upstream | nvidia/NVIDIA-Nemotron-Nano-9B-v2 |
| Resource | Minimum | Recommended |
|---|---|---|
| GPU Memory | 16 GB VRAM | 16 GB+ VRAM |
| System RAM | 16 GB | 32 GB |
| Disk Space | 8 GB free | 16 GB+ free |
| NVIDIA Driver | 525+ | 550+ |
| Ollama Version | 0.30.6+ | Latest |
Platform support: - NVIDIA GPU (single): 16 GB VRAM (RTX 5060 Ti 16GB, RTX 4080, RTX 5080) — verified 100% GPU / 0% CPU - NVIDIA GPU (dual): 16 GB + 8 GB (RTX 5060 Ti + RTX 4060 Ti) - Apple Silicon: Mac with 16 GB+ unified memory
💡 Why Q4_K_M? This build quantizes the 17.8 GB BF16 source down to 6.53 GB Q4_K_M, so it fits entirely on a single 16 GB GPU with ~9 GB left for KV cache. For the full 128K context, use
--no-kv-offload(KV cache in system RAM) via the llama.cpp config in the Hugging Face repo.
# macOS (Homebrew)
brew install ollama
# Linux
curl -fsSL https://ollama.com/install.sh | sh
# Windows
# Download from https://ollama.com/download
# Pull the model (downloads ~6.5 GB)
ollama pull oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU
# Run interactively
ollama run oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU
# Single prompt
ollama run oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU \
"Explain the difference between Mamba and Transformer architectures"
💡
latesttag: This model is also available asoamazonasgabriel/nemotron-nano-9b-v2(defaults tolatest, the BF16 weights).
# Interactive chat (thinking on by default)
ollama run oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU
# Force extended reasoning
ollama run oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU "/think Solve this step by step: ..."
# Skip reasoning for a direct answer
ollama run oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU "/no_think What is 2+2?"
# Chat completion
curl -s http://127.0.0.1:11434/api/chat \
-d '{
"model": "oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU",
"messages": [{"role": "user", "content": "Hello!"}]
}'
# OpenAI-compatible endpoint
curl -s http://127.0.0.1:11434/v1/chat/completions \
-d '{
"model": "oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU",
"messages": [{"role": "user", "content": "Hello!"}],
"stream": false
}'
pip install ollama
import ollama
# Chat (thinking returned as message.thinking)
response = ollama.chat(
model='oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU',
messages=[{'role': 'user', 'content': 'Write a Python function to merge two sorted lists'}],
)
print(response.message.content)
npm install ollama
import ollama from 'ollama'
const response = await ollama.chat({
model: 'oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU',
messages: [{ role: 'user', content: 'Explain recursion with an example' }],
})
console.log(response.message.content)
These are baked into the model via its Modelfile:
| Parameter | Value | Rationale |
|---|---|---|
num_ctx |
32768 | 32K context (safe on 16 GB; up to ~65K with q4_0 KV) |
num_gpu |
99 | Offload all layers to GPU |
temperature |
0.7 | Balanced creativity vs coherence |
top_p |
0.95 | Standard nucleus sampling |
top_k |
40 | Focused token selection |
repeat_penalty |
1.0 | No repetition penalty |
num_predict |
4096 | Max output tokens |
| Component | Size |
|---|---|
| Model weights (Q4_K_M) | ~6.53 GB |
| KV cache (q4_0, 32K context) | ~2 GB |
| Ollama process overhead | ~1-1.5 GB |
| Total (q4_0 + 32K) | ~10 GB ✅ plenty of headroom |
On a single 16 GB GPU:
| Context | KV Cache | Fits 16 GB? | Notes |
|---|---|---|---|
| 16,384 | ~1 GB | ✅ Plenty | ~8.5 GB total |
| 32,768 | ~2 GB | ✅ Recommended | ~10 GB total |
| 65,536 | ~4 GB | ✅ | ~12 GB total |
| 131,072 (native) | ~8 GB | ⚠️ Tight | ~15.5 GB total |
💡 For the full 128K context, use the llama.cpp config with
--no-kv-offload(KV cache in system RAM) — see the Hugging Face repo.
Add to ~/.config/opencode/opencode.jsonc:
"oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU": {
"name": "oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU",
"options": {
"supportsThinking": true,
"contextWindow": 131072
}
}
Use as agent:
"model": "ollama/oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU"
Or launch directly:
ollama launch opencode --model oamazonasgabriel/nemotron-nano-9b-v2:q4-km-16gbGPU
Cause: Not enough free VRAM. This is a 6.53 GB Q4_K_M model.
Fix: Free at least 8 GB before loading, or reduce num_ctx.
Run ollama ps — if CPU% appears, reduce num_ctx or set OLLAMA_KV_CACHE_TYPE=q4_0.
On 16 GB you should get 25-40 tok/s. If slower:
- Check for CPU offloading (ollama ps)
- Verify GPU is on CUDA (not Vulkan)
- Close competing GPU processes
Ollama keeps the KV cache in VRAM. For 128K context, use the llama.cpp config with --no-kv-offload (KV cache in system RAM) from the Hugging Face repo.
# Smaller / faster Nemotron (MoE, needs 24 GB)
ollama pull oamazonasgabriel/nemotron-3.5-lightning:q4-24gbGPU
# Coding-optimized Qwen (needs 16 GB)
ollama pull oamazonasgabriel/qwen3.5-9b:q4-16gbGPU
# Heavy-lift Qwen (needs 32 GB)
ollama pull oamazonasgabriel/qwen3.8-27b:q4-km-32gbGPU
| Role | Entity |
|---|---|
| Base Model | NVIDIA |
| Original Model | NVIDIA-Nemotron-Nano-9B-v2 |
| GGUF Conversion | impacte.tech — BF16 → Q4_K_M (local llama.cpp quantize) |
| Ollama Packaging | impacte.tech |
| License | NVIDIA Open Model License |
| Resource | URL |
|---|---|
| This model on Ollama | https://ollama.com/oamazonasgabriel/nemotron-nano-9b-v2 |
| Upstream model (HuggingFace) | https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-9B-v2 |
| GGUF + llama.cpp config | https://huggingface.co/impacte/NVIDIA-Nemotron-Nano-9B-v2-GGUF |
| Ollama documentation | https://docs.ollama.com |
| Built by | impacte.tech |