NANI-Nithin commited on
Commit
404ecb6
·
verified ·
1 Parent(s): 2eb4ac0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +231 -189
README.md CHANGED
@@ -1,303 +1,345 @@
1
  ---
2
- license: apache-2.0
3
  language:
4
- - en
 
5
  tags:
6
- - gguf
7
- - llama-cpp
8
- - text-generation
9
- - reasoning
10
- - mixture-of-experts
11
- - moe
12
- - instella
 
 
13
  pipeline_tag: text-generation
14
- library_name: gguf
15
- base_model: NANI-Nithin/Instella-MoE-16B-A3B-Think
16
  ---
17
 
18
- # Instella-MoE-16B-A3B-Think-GGUF
 
 
 
 
 
 
19
 
20
- <p align="center">
21
- <img src="https://huggingface.co/front/assets/huggingface_logo
22
- <h1 align="center">🚀 Instella-MoE-16B-A3B-Think-GGUF</h1>
23
 
24
- <p align="center">
25
- High-performance GGUF quantizations of <b>Instella-MoE-16B-A3B-Think</b>, optimized for efficient local inference across CPUs, consumer GPUs, edge devices, and production deployments.
26
- </p>
27
 
28
- <p align="center">
29
- 🤖 Mixture-of-Experts 🧠 Reasoning Focused • ⚡ Fast Inference • 💾 Multiple Quantizations
30
- </p>
 
 
 
31
 
32
  ---
33
 
34
- ## Overview
35
 
36
- This repository provides **GGUF conversions and quantizations** of **Instella-MoE-16B-A3B-Think**, enabling efficient deployment with:
37
 
38
- - **llama.cpp**
39
- - **LM Studio**
40
- - **Ollama (GGUF import)**
41
- - **Jan**
42
- - **KoboldCpp**
43
- - **Text Generation WebUI**
44
- - **Open WebUI**
45
- - Any GGUF-compatible inference engine
46
 
47
- The collection includes a comprehensive range of **K-Quants** and **Importance-Aware Quantizations (IQ)**, allowing users to choose the optimal balance between:
 
48
 
49
- Memory usage
50
- ✅ Inference speed
51
- ✅ Reasoning quality
52
- ✅ Hardware compatibility
53
 
54
- ---
55
 
56
- # Model Highlights
57
 
58
- ### 🧠 Strong Reasoning Capabilities
59
- Instella-MoE-16B-A3B-Think is designed for advanced reasoning workloads, including:
 
60
 
61
- - Mathematical problem solving
62
- - Coding assistance
63
- - Multi-step logical reasoning
64
- - Technical analysis
65
- - Knowledge-intensive tasks
66
- - Instruction following
67
 
68
- ### ⚡ Efficient MoE Architecture
 
 
 
69
 
70
- The Mixture-of-Experts architecture activates only a subset of experts during inference, offering:
71
 
72
- - Better compute efficiency
73
- - Lower inference cost
74
- - Improved scaling characteristics
75
- - Strong performance-to-parameter ratio
76
 
77
- ### 💻 Local AI Ready
78
 
79
- The available GGUF variants support a wide range of hardware:
80
 
81
- - Modern laptops
82
- - Desktop CPUs
83
- - Consumer GPUs
84
- - Workstations
85
- - Home AI servers
 
 
 
 
 
 
 
 
 
86
 
87
  ---
88
 
89
  # Available Quantizations
90
 
91
- ## Standard K-Quants
92
-
93
- These quantizations are recommended for most users.
94
-
95
- | Quant | Quality | Speed | RAM Usage | Recommended For |
96
- |---------|----------|--------|------------|----------------|
97
- | Q2_K | Lowest | Fastest | Lowest | Maximum memory savings |
98
- | Q3_K_S | Low | Very Fast | Very Low | Entry-level systems |
99
- | Q3_K_M | Good | Fast | Low | Balanced performance |
100
- | Q3_K_L | Better | Fast | Low | Improved quality |
101
- | Q4_0 | Good | Fast | Moderate | Legacy favorite |
102
- | Q4_1 | Better | Fast | Moderate | General usage |
103
- | Q4_K_S | Very Good | Fast | Moderate | Daily inference |
104
- | Q4_K_M | Excellent | Fast | Moderate | Recommended baseline |
105
- | Q5_K_S | Excellent | Moderate | Higher | Quality-focused users |
106
- | Q5_K_M | Very High | Moderate | Higher | Strong reasoning tasks |
107
- | Q6_K | Near-lossless | Moderate | High | High-quality inference |
108
- | Q8_0 | Maximum | Slower | Highest | Closest to original model |
109
 
110
- ---
111
 
112
- ## Importance-Aware (IQ) Quants
113
 
114
- IQ quants use advanced quantization techniques that often preserve quality better at similar file sizes.
115
 
116
- | Quant | Quality Retention | Memory Efficiency |
117
- |---------|------------------|------------------|
118
- | IQ2_M | Excellent for size | Extremely High |
119
- | IQ3_XXS | Very High | Very High |
120
- | IQ3_XS | Very High | High |
121
- | IQ3_M | Excellent | High |
122
- | IQ4_XS | Near Q4 quality with lower memory |
123
- | IQ4_NL | Premium IQ quant with strong quality preservation |
124
 
125
- ---
 
 
 
 
 
 
 
126
 
127
- # Choosing the Right Quant
 
 
 
 
 
 
 
 
128
 
129
- ### Low Memory Systems
130
 
131
- Recommended:
132
 
133
  - IQ2_M
134
- - Q2_K
135
- - Q3_K_S
 
 
 
136
 
137
- ### Balanced Setup
138
 
139
- Recommended:
140
 
141
- - Q4_K_M
142
- - IQ4_XS ⭐
143
- - Q5_K_S
144
 
145
- ### Best Quality
146
 
147
- Recommended:
 
 
 
148
 
149
- - Q5_K_M
150
- - Q6_K
151
- - Q8_0
152
- - IQ4_NL ⭐
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
153
 
154
  ---
155
 
156
- # Usage with llama.cpp
157
 
158
- ### Download
159
 
160
  ```bash
161
- huggingface-cli download NANI-Nithin/Instella-MoE-16B-A3B-Think-GGUF \
162
- --include "Instella-MoE-16B-A3B-Think-Q4_K_M.gguf" \
163
- --local-dir .
164
  ```
165
 
166
- ### Run
 
 
167
 
168
  ```bash
169
- ./llama-cli \
170
  -m Instella-MoE-16B-A3B-Think-Q4_K_M.gguf \
171
- -p "Explain the theory of relativity in simple terms."
172
  ```
173
 
174
  ---
175
 
176
- # Usage with LM Studio
177
 
178
- 1. Open **LM Studio**
179
- 2. Navigate to **Models**
180
- 3. Search for:
181
 
182
  ```text
183
- NANI-Nithin/Instella-MoE-16B-A3B-Think-GGUF
 
 
 
 
 
 
 
 
 
 
184
  ```
185
 
186
- 4. Download your preferred quantization.
187
- 5. Load and chat.
188
 
189
- ---
190
 
191
- # Recommended Prompt Format
192
 
193
- For best results, use clear and structured instructions.
194
-
195
- ### Example
196
 
197
  ```text
198
- You are a helpful AI assistant.
 
 
199
 
200
- Question:
201
- Explain how Mixture-of-Experts models work.
202
 
203
- Provide:
204
- 1. Simple explanation
205
- 2. Technical explanation
206
- 3. Practical advantages
207
- ```
208
 
209
  ---
210
 
211
- # Hardware Recommendations
212
 
213
- | Quant Family | Recommended RAM |
214
- |-------------|----------------|
215
- | Q2 / IQ2 | 8GB+ |
216
- | Q3 / IQ3 | 12GB+ |
217
- | Q4 / IQ4 | 16GB+ |
218
- | Q5 | 24GB+ |
219
- | Q6 | 32GB+ |
220
- | Q8 | 48GB+ |
221
 
222
- Actual memory requirements may vary depending on context length, runtime, and offloading configuration.
223
 
224
- ---
 
 
 
225
 
226
- # Benchmark Expectations
227
 
228
- Performance depends on:
 
 
229
 
230
- - CPU architecture
231
- - GPU acceleration
232
- - Context length
233
- - Inference backend
234
- - Quantization selection
 
 
235
 
236
- Generally:
 
 
 
 
237
 
238
- - Smaller quants faster generation and lower memory usage
239
- - Larger quants → better reasoning fidelity and response quality
240
 
241
  ---
242
 
243
- # Compatibility
244
 
245
- llama.cpp
246
 
247
- LM Studio
248
 
249
- ✅ Ollama
 
250
 
251
- ✅ Jan
 
252
 
253
- KoboldCpp
254
 
255
- Open WebUI
 
 
 
 
256
 
257
- ✅ Text Generation WebUI
 
 
 
 
258
 
259
- GGUF-compatible runtimes
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
 
261
  ---
262
 
263
  # Acknowledgements
264
 
265
- Special thanks to:
266
 
267
- - The Instella model creators
268
- - GGUF and llama.cpp contributors
269
- - The open-source AI community
270
- - Hugging Face for model hosting
271
 
272
  ---
273
 
274
  # Disclaimer
275
 
276
- This repository contains quantized GGUF versions of the original model.
277
 
278
- Quantization can introduce minor differences in output quality compared to the original checkpoint. Users should select the quantization level that best matches their hardware constraints and quality requirements.
279
 
280
- ---
281
 
282
- # Support
283
 
284
- If you find this repository helpful:
285
 
286
- Like the model
287
- 🤗 Follow **NANI-Nithin** on Hugging Face
288
- 🔄 Share feedback and benchmarks
289
- 🚀 Contribute to the open-source AI ecosystem
290
 
291
- ---
292
 
293
- ## Citation
294
-
295
- ```bibtex
296
- @misc{instella_moe_16b_a3b_think_gguf,
297
- title={Instella-MoE-16B-A3B-Think-GGUF},
298
- author={NANI-Nithin},
299
- year={2026},
300
- publisher={Hugging Face},
301
- url={https://huggingface.co/NANI-Nithin/Instella-MoE-16B-A3B-Think-GGUF}
302
- }
303
- ```
 
1
  ---
 
2
  language:
3
+ - en
4
+ license: apache-2.0
5
  tags:
6
+ - gguf
7
+ - llama.cpp
8
+ - instella-moe
9
+ - mixture-of-experts
10
+ - amd
11
+ - quantized
12
+ - reasoning
13
+ - think
14
+ - text-generation
15
  pipeline_tag: text-generation
16
+ base_model: amd/Instella-MoE-16B-A3B-Think
17
+ library_name: llama.cpp
18
  ---
19
 
20
+ # Instella-MoE-16B-A3B-Think GGUF
21
+
22
+ > GGUF quantizations of **AMD's Instella-MoE-16B-A3B-Think**, converted and optimized for local inference with llama.cpp-compatible runtimes that support the Instella-MoE architecture.
23
+
24
+ ## Overview
25
+
26
+ This repository provides a full collection of GGUF quantizations for **[amd/Instella-MoE-16B-A3B-Think](la-MoE-16B-A3B-Think**.
27
 
28
+ Instella-MoE-16B-A3B-Think is a Mixture-of-Experts reasoning model featuring approximately **16B total parameters with ~3B active parameters per token**, designed for efficient high-quality inference while maintaining strong reasoning, coding, and instruction-following capabilities.
 
 
29
 
30
+ These GGUF files were generated to enable:
 
 
31
 
32
+ - Local inference
33
+ - CPU deployment
34
+ - GPU-accelerated llama.cpp inference
35
+ - Edge and workstation deployments
36
+ - Quantized execution with reduced memory requirements
37
+ - Reasoning-focused workloads
38
 
39
  ---
40
 
41
+ # ⚠️ Important Compatibility Notice
42
 
43
+ Instella-MoE is **not currently supported by upstream llama.cpp** at the time these GGUFs were produced.
44
 
45
+ The model introduces architecture components beyond standard DeepSeek-V3 implementations, including:
 
 
 
 
 
 
 
46
 
47
+ - Gated Attention
48
+ - FarSkip dual-residual connections
49
 
50
+ These quantizations were generated using the community fork:
 
 
 
51
 
52
+ **https://github.com/csabakecskemeti/llama.cpp**
53
 
54
+ Branch:
55
 
56
+ ```text
57
+ instella-moe
58
+ ```
59
 
60
+ This fork implements:
 
 
 
 
 
61
 
62
+ - `InstellaMoEForCausalLM`
63
+ - Gated attention runtime support
64
+ - FarSkip support
65
+ - GGUF export support for Instella-MoE
66
 
67
+ As a result, these files currently require:
68
 
69
+ ```text
70
+ llama.cpp (instella-moe branch)
71
+ ```
 
72
 
73
+ or any future upstream release that merges full Instella-MoE support.
74
 
75
+ ---
76
 
77
+ # Model Details
78
+
79
+ | Property | Value |
80
+ |-----------|----------|
81
+ | Model | Instella-MoE-16B-A3B-Think |
82
+ | Organization | AMD |
83
+ | Architecture | Instella-MoE |
84
+ | Family | DeepSeek-V3 Derived |
85
+ | Total Parameters | ~16B |
86
+ | Active Parameters | ~3B |
87
+ | Format | GGUF |
88
+ | Purpose | Reasoning, Coding, General Assistant Tasks |
89
+ | Quantization | Multiple GGUF Variants |
90
+ | Base Model | amd/Instella-MoE-16B-A3B-Think |
91
 
92
  ---
93
 
94
  # Available Quantizations
95
 
96
+ ## Standard Quants
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
 
98
+ ### Smallest
99
 
100
+ - Q2_K
101
 
102
+ ### Q3 Family
103
 
104
+ - Q3_K_S
105
+ - Q3_K_M
106
+ - Q3_K_L
 
 
 
 
 
107
 
108
+ ### Q4 Family
109
+
110
+ - Q4_0
111
+ - Q4_1
112
+ - Q4_K_S
113
+ - Q4_K_M
114
+
115
+ ### Q5 Family
116
 
117
+ - Q5_K_S
118
+ - Q5_K_M
119
+
120
+ ### High Quality
121
+
122
+ - Q6_K
123
+ - Q8_0
124
+
125
+ ---
126
 
127
+ ## IQ Quants
128
 
129
+ Importance Matrix (Imatrix) optimized quantizations:
130
 
131
  - IQ2_M
132
+ - IQ3_XXS
133
+ - IQ3_XS
134
+ - IQ3_M
135
+ - IQ4_XS
136
+ - IQ4_NL
137
 
138
+ These quantizations generally achieve superior quality-to-size ratios compared to traditional quant methods.
139
 
140
+ ---
141
 
142
+ # Recommended Quant
 
 
143
 
144
+ ### For Low RAM Systems
145
 
146
+ ```text
147
+ Q2_K
148
+ IQ2_M
149
+ ```
150
 
151
+ ### Best Balance
152
+
153
+ ```text
154
+ Q4_K_M
155
+ IQ4_XS
156
+ ```
157
+
158
+ ### High Quality
159
+
160
+ ```text
161
+ Q5_K_M
162
+ Q6_K
163
+ IQ4_NL
164
+ ```
165
+
166
+ ### Maximum Quality
167
+
168
+ ```text
169
+ Q8_0
170
+ BF16
171
+ ```
172
 
173
  ---
174
 
175
+ # Example Usage
176
 
177
+ ## llama.cpp
178
 
179
  ```bash
180
+ ./llama-cli \
181
+ -m Instella-MoE-16B-A3B-Think-Q4_K_M.gguf \
182
+ -p "Explain mixture-of-experts architectures."
183
  ```
184
 
185
+ ---
186
+
187
+ ## Server Mode
188
 
189
  ```bash
190
+ ./llama-server \
191
  -m Instella-MoE-16B-A3B-Think-Q4_K_M.gguf \
192
+ -c 32768
193
  ```
194
 
195
  ---
196
 
197
+ # Quantization Methodology
198
 
199
+ The conversion pipeline follows:
 
 
200
 
201
  ```text
202
+ Hugging Face Model
203
+
204
+ Convert to BF16 GGUF
205
+
206
+ Generate Imatrix
207
+
208
+ Create Standard Quants
209
+
210
+ Create IQ Quants
211
+
212
+ Upload to Hugging Face
213
  ```
214
 
215
+ ### BF16 Conversion
 
216
 
217
+ The original model weights were converted directly into GGUF BF16 format using the Instella-MoE-enabled llama.cpp conversion tools.
218
 
219
+ ### Importance Matrix Generation
220
 
221
+ Importance matrix calibration was generated using:
 
 
222
 
223
  ```text
224
+ Salesforce/wikitext
225
+ wikitext-2-raw-v1
226
+ ```
227
 
228
+ A lightweight calibration dataset was used to optimize IQ quantization quality while remaining practical on constrained hardware.
 
229
 
230
+ ### IQ Quantization
231
+
232
+ IQ quant variants were produced using llama.cpp's importance-matrix-aware quantization pipeline.
 
 
233
 
234
  ---
235
 
236
+ # Build Environment
237
 
238
+ These GGUFs were generated on a resource-constrained environment designed to maximize reproducibility.
 
 
 
 
 
 
 
239
 
240
+ ### System Constraints
241
 
242
+ - ~15 GB RAM
243
+ - No swap
244
+ - ~109 GB temporary storage
245
+ - 4 CPU cores
246
 
247
+ Because the BF16 GGUF is approximately:
248
 
249
+ ```text
250
+ ~32 GB
251
+ ```
252
 
253
+ the importance matrix was computed from a smaller intermediate quantization to avoid memory exhaustion while still producing high-quality IQ variants.
254
+
255
+ ---
256
+
257
+ # Repository Notes
258
+
259
+ Generation workflow includes:
260
 
261
+ - Automatic resume support
262
+ - Upload tracking
263
+ - Incremental quant generation
264
+ - Disk-space-aware cleanup
265
+ - Fault-tolerant upload recovery
266
 
267
+ Each quant is generated, uploaded, and safely removed locally before proceeding to the next file.
 
268
 
269
  ---
270
 
271
+ # Prompt Format
272
 
273
+ Instella-MoE-16B-A3B-Think is an instruction-tuned reasoning model.
274
 
275
+ Typical usage:
276
 
277
+ ```text
278
+ User: Explain the difference between MoE and dense transformers.
279
 
280
+ Assistant:
281
+ ```
282
 
283
+ For best results:
284
 
285
+ - Use clear instructions
286
+ - Allow sufficient context length
287
+ - Enable model reasoning when your frontend supports it
288
+ - Use lower temperatures for factual tasks
289
+ - Use higher temperatures for creative tasks
290
 
291
+ ---
292
+
293
+ # Performance Expectations
294
+
295
+ General guidance:
296
 
297
+ | Quant | Quality | Memory Usage |
298
+ |---------|----------|----------|
299
+ | Q2_K | Lowest | Minimal |
300
+ | Q3_K_M | Good | Low |
301
+ | Q4_K_M | Very Good | Moderate |
302
+ | IQ4_XS | Excellent | Moderate |
303
+ | Q5_K_M | Excellent | Higher |
304
+ | Q6_K | Near BF16 | High |
305
+ | Q8_0 | Maximum | Very High |
306
+ | BF16 | Reference | Highest |
307
+
308
+ Actual results depend on:
309
+
310
+ - Prompt complexity
311
+ - Context length
312
+ - Hardware
313
+ - Backend implementation
314
+ - Future Instella-MoE runtime optimizations
315
 
316
  ---
317
 
318
  # Acknowledgements
319
 
320
+ Thanks to:
321
 
322
+ - AMD for releasing Instella-MoE-16B-A3B-Think
323
+ - The llama.cpp community
324
+ - @csabakecskemeti for the Instella-MoE llama.cpp implementation
325
+ - The GGUF ecosystem and local AI community
326
 
327
  ---
328
 
329
  # Disclaimer
330
 
331
+ This repository only provides GGUF conversions and quantizations.
332
 
333
+ Model behavior, weights, training methodology, benchmark performance, and intended use remain the responsibility of the original model authors.
334
 
335
+ Please refer to the upstream model card for official documentation:
336
 
337
+ 👉 https://huggingface.co/amd/Instella-MoE-16B-A3B-Think
338
 
339
+ ---
340
 
341
+ # Download Stats Welcome ⭐
 
 
 
342
 
343
+ If these quantizations help your projects, research, benchmarking, or local AI deployments, consider liking the repository and sharing feedback.
344
 
345
+ Happy inferencing 🚀