sujayanimneth commited on
Commit
6f8616c
·
verified ·
1 Parent(s): d61d232

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +78 -34
README.md CHANGED
@@ -6,7 +6,9 @@ license: apache-2.0
6
  tags:
7
  - code
8
  - reasoning
9
- - moe
 
 
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 Model Built for Advanced Software Engineering</i>
23
  </p>
24
 
25
  ---
26
 
27
  ## Overview
28
 
29
- **NIM 3 - Coder - 30B** is NIM-AI's flagship 30-billion-parameter coding model. Built around a high-efficiency **Sparse Mixture-of-Experts (MoE)** architecture, the model dynamically routes token predictions through specialized expert pathways—activating only **~3 billion parameters per token**. This design provides the knowledge capacity, architectural comprehension, and multi-file reasoning of a 30B-scale system while delivering the token generation speeds and hardware efficiency of a compact model.
30
 
31
- NIM 3 - Coder is trained with an explicit **Chain-of-Thought (CoT)** reasoning objective. Before synthesizing code, the model outputs structured `<think>...</think>` traces to systematically evaluate:
32
- - Edge cases, boundary conditions, and race conditions
33
- - Time and space complexity trade-offs
34
- - Concurrency patterns (async IO, locks, channels, thread-pool safety)
35
- - Architectural integrity and clean idiomatic idioms across systems and web stacks
 
 
 
 
 
 
 
 
 
 
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 per Token** | ~3.0 Billion (Sparse Dynamic Routing) |
45
- | **Architecture** | Causal Language Model with Fine-Grained MoE Routing |
46
- | **Context Window** | 4,096 tokens (Expandable via RoPE scaling to 32k) |
47
- | **Primary Focus** | Systems Programming, High-Concurrency Architectures, Full-Stack Optimization |
48
  | **Primary Languages** | Rust, Python, Go, TypeScript/JavaScript, C++, SQL, Bash |
49
- | **Quantization Formats** | BF16, FP8, Q4_K_M GGUF |
50
 
51
  ---
52
 
53
- ## Training & Alignment Methodology
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
- ## Prompt Template
63
 
64
- NIM 3 - Coder utilizes the **ChatML** prompt format. To elicit deliberate reasoning, maintain the system instruction instructing the model to use thinking tags:
65
 
66
- <|im_start|>system You are NIM 3 - Coder, a world-class software engineer. Always think step-by-step inside ... tags before writing clean, high-performance code.<|im_end|> <|im_start|>user {instruction}<|im_end|> <|im_start|>assistant {reasoning}
67
- {code}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  <|im_end|>
69
 
70
- ---
71
-
72
- ## Quickstart & Deployment
73
-
74
- ### 1. Run Locally via Ollama (Recommended)
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.