Text Generation
GGUF
English
code
qwen3_moe
reasoning
ollama
llama-cpp
code-generation
instruction-tuned
nim-ai
programming
conversational
Instructions to use NIM-AI/NIM-3-Coder-30B 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 NIM-AI/NIM-3-Coder-30B 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 NIM-AI/NIM-3-Coder-30B:Q4_K_M # Run inference directly in the terminal: llama cli -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M # Run inference directly in the terminal: llama cli -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M
Use Docker
docker model run hf.co/NIM-AI/NIM-3-Coder-30B:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use NIM-AI/NIM-3-Coder-30B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NIM-AI/NIM-3-Coder-30B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NIM-AI/NIM-3-Coder-30B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NIM-AI/NIM-3-Coder-30B:Q4_K_M
- Ollama
How to use NIM-AI/NIM-3-Coder-30B with Ollama:
ollama run hf.co/NIM-AI/NIM-3-Coder-30B:Q4_K_M
- Unsloth Desktop
- Pi
How to use NIM-AI/NIM-3-Coder-30B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M
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": "NIM-AI/NIM-3-Coder-30B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use NIM-AI/NIM-3-Coder-30B with Docker Model Runner:
docker model run hf.co/NIM-AI/NIM-3-Coder-30B:Q4_K_M
- Lemonade
How to use NIM-AI/NIM-3-Coder-30B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NIM-AI/NIM-3-Coder-30B:Q4_K_M
Run and chat with the model
lemonade run user.NIM-3-Coder-30B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use NIM-AI/NIM-3-Coder-30B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M
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 NIM-AI/NIM-3-Coder-30B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use NIM-AI/NIM-3-Coder-30B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NIM-AI/NIM-3-Coder-30B:Q4_K_M
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 "NIM-AI/NIM-3-Coder-30B:Q4_K_M" \ --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"
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,9 @@ license: apache-2.0
|
|
| 6 |
tags:
|
| 7 |
- code
|
| 8 |
- reasoning
|
| 9 |
-
-
|
|
|
|
|
|
|
| 10 |
- code-generation
|
| 11 |
- instruction-tuned
|
| 12 |
- nim-ai
|
|
@@ -19,20 +21,30 @@ inference: false
|
|
| 19 |
|
| 20 |
<p align="center">
|
| 21 |
<b>Developed by NIM-AI</b><br>
|
| 22 |
-
<i>A Sparse Mixture-of-Experts (MoE) Reasoning
|
| 23 |
</p>
|
| 24 |
|
| 25 |
---
|
| 26 |
|
| 27 |
## Overview
|
| 28 |
|
| 29 |
-
**NIM 3 - Coder - 30B** is NIM-AI's
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
-
|
| 34 |
-
- Concurrency patterns
|
| 35 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
---
|
| 38 |
|
|
@@ -41,38 +53,70 @@ NIM 3 - Coder is trained with an explicit **Chain-of-Thought (CoT)** reasoning o
|
|
| 41 |
| Parameter | Specification |
|
| 42 |
| :--- | :--- |
|
| 43 |
| **Total Parameters** | 30.5 Billion |
|
| 44 |
-
| **Active Parameters
|
| 45 |
-
| **
|
| 46 |
-
| **Context Window** | 4,096 tokens (
|
| 47 |
-
| **Primary Focus** | Systems Programming, High-Concurrency Architectures, Full-Stack Optimization |
|
| 48 |
| **Primary Languages** | Rust, Python, Go, TypeScript/JavaScript, C++, SQL, Bash |
|
| 49 |
-
| **
|
| 50 |
|
| 51 |
---
|
| 52 |
|
| 53 |
-
##
|
| 54 |
-
|
| 55 |
-
NIM 3 - Coder was developed using targeted response-based knowledge distillation from frontier reasoning engines, combined with senior-engineer synthetic curation across complex development scenarios:
|
| 56 |
-
1. **Algorithmic Edge-Case Synthesis:** Verification-driven problem sets covering dynamic programming, graph invariants, memory-safe data structures, and custom allocators.
|
| 57 |
-
2. **Production Systems & Concurrency:** Real-world workloads including distributed consensus protocols, deadlock resolution, zero-copy buffer networking, and database indexing/query planning.
|
| 58 |
-
3. **Reasoning Trace Supervision:** Supervised fine-tuning (SFT) enforcing strict `<think>` token boundaries, ensuring the model internally plans algorithmic steps before outputting executable code.
|
| 59 |
-
|
| 60 |
-
---
|
| 61 |
|
| 62 |
-
##
|
| 63 |
|
| 64 |
-
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
<|im_end|>
|
| 69 |
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
You can run the official 4-bit quantized GGUF directly using Ollama:
|
| 76 |
-
|
| 77 |
-
```bash
|
| 78 |
-
ollama run hf.co/NIM-AI/NIM-3-Coder-30B-GGUF:Q4_K_M
|
|
|
|
| 6 |
tags:
|
| 7 |
- code
|
| 8 |
- reasoning
|
| 9 |
+
- gguf
|
| 10 |
+
- ollama
|
| 11 |
+
- llama-cpp
|
| 12 |
- code-generation
|
| 13 |
- instruction-tuned
|
| 14 |
- nim-ai
|
|
|
|
| 21 |
|
| 22 |
<p align="center">
|
| 23 |
<b>Developed by NIM-AI</b><br>
|
| 24 |
+
<i>A Sparse Mixture-of-Experts (MoE) Reasoning Engine for Production Software Engineering</i>
|
| 25 |
</p>
|
| 26 |
|
| 27 |
---
|
| 28 |
|
| 29 |
## Overview
|
| 30 |
|
| 31 |
+
**NIM 3 - Coder - 30B** is NIM-AI's high-efficiency coding and reasoning model, packaged in optimized **GGUF format** for fast local execution. Built on a **Sparse Mixture-of-Experts (MoE)** architecture, the model routes token predictions dynamically through dedicated expert networks, activating approximately **3 billion parameters per token** out of its total 30.5-billion-parameter pool.
|
| 32 |
|
| 33 |
+
This provides the architectural reasoning and comprehension of a 30B-class model while preserving the execution speed, low latency, and memory footprint of a lightweight system.
|
| 34 |
+
|
| 35 |
+
NIM 3 - Coder is trained with an explicit **Chain-of-Thought (CoT)** objective. Prior to synthesizing code, the engine outputs deliberative `<think>...</think>` traces to systematically evaluate:
|
| 36 |
+
- Concurrency patterns, async runtimes, and thread safety
|
| 37 |
+
- Boundary conditions, resource allocation, and edge cases
|
| 38 |
+
- Algorithmic complexity and execution bottlenecks
|
| 39 |
+
- Clean, idiomatic implementation patterns across production stacks
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## Available Files
|
| 44 |
+
|
| 45 |
+
| Filename | Quantization | Size | Description |
|
| 46 |
+
| :--- | :--- | :--- | :--- |
|
| 47 |
+
| `Qwen3-30B-A3B.Q4_K_M.gguf` | Q4_K_M | ~18.6 GB | Balanced 4-bit medium quantization. Recommended balance of reasoning fidelity and speed. |
|
| 48 |
|
| 49 |
---
|
| 50 |
|
|
|
|
| 53 |
| Parameter | Specification |
|
| 54 |
| :--- | :--- |
|
| 55 |
| **Total Parameters** | 30.5 Billion |
|
| 56 |
+
| **Active Parameters / Token** | ~3.0 Billion (Sparse Dynamic Routing) |
|
| 57 |
+
| **Format** | GGUF (Ready for Ollama, llama.cpp, and LM Studio) |
|
| 58 |
+
| **Context Window** | 4,096 tokens (Native, scalable via RoPE) |
|
|
|
|
| 59 |
| **Primary Languages** | Rust, Python, Go, TypeScript/JavaScript, C++, SQL, Bash |
|
| 60 |
+
| **Specialization** | Systems Architecture, Concurrency, Algorithmic Optimization, Backend Pipelines |
|
| 61 |
|
| 62 |
---
|
| 63 |
|
| 64 |
+
## Quickstart Guide
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
+
### 1. Run Instantly with Ollama
|
| 67 |
|
| 68 |
+
You can pull and launch NIM 3 - Coder directly using Ollama without manual file downloads:
|
| 69 |
|
| 70 |
+
```bash
|
| 71 |
+
ollama run hf.co/NIM-AI/NIM-3-Coder-30B:Q4_K_M
|
| 72 |
+
|
| 73 |
+
To create a custom local alias in Ollama, create a file named Modelfile:
|
| 74 |
+
FROM ./Qwen3-30B-A3B.Q4_K_M.gguf
|
| 75 |
+
|
| 76 |
+
TEMPLATE """<|im_start|>system
|
| 77 |
+
{{ .System }}<|im_end|>
|
| 78 |
+
<|im_start|>user
|
| 79 |
+
{{ .Prompt }}<|im_end|>
|
| 80 |
+
<|im_start|>assistant
|
| 81 |
+
"""
|
| 82 |
+
|
| 83 |
+
PARAMETER stop "<|im_start|>"
|
| 84 |
+
PARAMETER stop "<|im_end|>"
|
| 85 |
+
PARAMETER temperature 0.6
|
| 86 |
+
|
| 87 |
+
Then build and launch:
|
| 88 |
+
ollama create nim-3-coder -f Modelfile
|
| 89 |
+
ollama run nim-3-coder
|
| 90 |
+
|
| 91 |
+
Run an OpenAI-compatible API server on your local machine or cloud GPU:
|
| 92 |
+
./llama-server \
|
| 93 |
+
-m Qwen3-30B-A3B.Q4_K_M.gguf \
|
| 94 |
+
--port 8000 \
|
| 95 |
+
--ctx-size 4096 \
|
| 96 |
+
--n-gpu-layers 99 \
|
| 97 |
+
--host 0.0.0.0
|
| 98 |
+
|
| 99 |
+
Desktop Inference via LM Studio
|
| 100 |
+
Open LM Studio.
|
| 101 |
+
Search for NIM-AI/NIM-3-Coder-30B in the search bar.
|
| 102 |
+
Download the Q4_K_M file and load it into the local chat interface.
|
| 103 |
+
|
| 104 |
+
Prompt Template
|
| 105 |
+
NIM 3 - Coder utilizes the standard ChatML format. Maintain the system prompt to trigger reasoning blocks:
|
| 106 |
+
<|im_start|>system
|
| 107 |
+
You are NIM 3 - Coder, a world-class software engineer. Always think step-by-step inside <think>...</think> tags before writing clean, high-performance code.<|im_end|>
|
| 108 |
+
<|im_start|>user
|
| 109 |
+
{prompt}<|im_end|>
|
| 110 |
+
<|im_start|>assistant
|
| 111 |
+
<think>
|
| 112 |
+
{reasoning}
|
| 113 |
+
</think>
|
| 114 |
+
|
| 115 |
+
{solution}
|
| 116 |
<|im_end|>
|
| 117 |
|
| 118 |
+
Usage Guidelines & Notes
|
| 119 |
+
Thinking Output: The model generates reasoning traces inside <think>...</think>. If integrating with an IDE agent or terminal pipe, ensure your interface supports streaming or extracts the content past </think>.
|
| 120 |
+
Hardware Sizing: Because the full 30.5B expert weights reside in memory, running the Q4_K_M binary requires ~19 GB of memory headroom (GPU VRAM or shared unified memory on Apple Silicon).
|
| 121 |
+
Organization & Contact
|
| 122 |
+
Engineered and maintained by NIM-AI. For enterprise configurations, updates, and ecosystem tooling, visit the NIM-AI Organization Hub.
|
|
|
|
|
|
|
|
|
|
|
|