Terathox-Coder commited on
Commit
7f41215
·
verified ·
1 Parent(s): 6276ea4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +186 -111
README.md CHANGED
@@ -1,207 +1,282 @@
1
  ---
2
  license: apache-2.0
3
  language:
4
- - en
5
- - es
6
- base_model:
7
- - Qwen/Qwen3.8-27B
8
  pipeline_tag: text-generation
9
  tags:
10
- - >-
11
- gguf, qwen, qwen3.8, 27b, q4_k_m, mtp, nextn, llama.cpp, ollama, quantized,
12
- conversational
 
 
 
 
 
 
 
 
13
  ---
14
- # Model Card for Model ID
15
 
16
- <!-- Provide a quick summary of what the model is/does. -->
17
 
18
- This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
19
-
20
- ## Model Details
21
-
22
- ### Model Description
23
-
24
- <!-- Provide a longer summary of what this model is. -->
25
 
 
26
 
 
27
 
28
- - **Developed by:** [More Information Needed]
29
- - **Funded by [optional]:** [More Information Needed]
30
- - **Shared by [optional]:** [More Information Needed]
31
- - **Model type:** [More Information Needed]
32
- - **Language(s) (NLP):** [More Information Needed]
33
- - **License:** [More Information Needed]
34
- - **Finetuned from model [optional]:** [More Information Needed]
35
 
36
- ### Model Sources [optional]
 
 
 
 
 
 
 
 
 
37
 
38
- <!-- Provide the basic links for the model. -->
39
 
40
- - **Repository:** [More Information Needed]
41
- - **Paper [optional]:** [More Information Needed]
42
- - **Demo [optional]:** [More Information Needed]
43
 
44
- ## Uses
45
 
46
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
47
 
48
- ### Direct Use
49
 
50
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
 
 
 
 
51
 
52
- [More Information Needed]
53
 
54
- ### Downstream Use [optional]
55
 
56
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
57
 
58
- [More Information Needed]
59
 
60
- ### Out-of-Scope Use
 
 
 
 
61
 
62
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
63
 
64
- [More Information Needed]
 
 
 
 
 
65
 
66
- ## Bias, Risks, and Limitations
67
 
68
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
69
 
70
- [More Information Needed]
71
 
72
- ### Recommendations
 
 
73
 
74
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
75
 
76
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
 
 
77
 
78
- ## How to Get Started with the Model
79
 
80
- Use the code below to get started with the model.
 
 
81
 
82
- [More Information Needed]
83
 
84
- ## Training Details
85
 
86
- ### Training Data
 
 
87
 
88
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
89
 
90
- [More Information Needed]
91
 
92
- ### Training Procedure
93
 
94
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
95
 
96
- #### Preprocessing [optional]
 
 
97
 
98
- [More Information Needed]
99
 
 
 
 
 
 
100
 
101
- #### Training Hyperparameters
102
 
103
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
104
 
105
- #### Speeds, Sizes, Times [optional]
 
 
 
 
 
 
 
 
 
 
 
106
 
107
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
108
 
109
- [More Information Needed]
 
 
 
110
 
111
- ## Evaluation
112
 
113
- <!-- This section describes the evaluation protocols and provides the results. -->
114
 
115
- ### Testing Data, Factors & Metrics
 
 
 
 
 
116
 
117
- #### Testing Data
118
 
119
- <!-- This should link to a Dataset Card if possible. -->
 
 
120
 
121
- [More Information Needed]
122
 
123
- #### Factors
 
 
124
 
125
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
126
 
127
- [More Information Needed]
128
 
129
- #### Metrics
130
 
131
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
132
 
133
- [More Information Needed]
 
 
 
 
 
 
134
 
135
- ### Results
136
 
137
- [More Information Needed]
138
 
139
- #### Summary
140
 
 
141
 
 
142
 
143
- ## Model Examination [optional]
144
 
145
- <!-- Relevant interpretability work for the model goes here -->
146
 
147
- [More Information Needed]
148
 
149
- ## Environmental Impact
150
 
151
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
152
 
153
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
154
 
155
- - **Hardware Type:** [More Information Needed]
156
- - **Hours used:** [More Information Needed]
157
- - **Cloud Provider:** [More Information Needed]
158
- - **Compute Region:** [More Information Needed]
159
- - **Carbon Emitted:** [More Information Needed]
160
 
161
- ## Technical Specifications [optional]
 
 
162
 
163
- ### Model Architecture and Objective
164
 
165
- [More Information Needed]
 
 
 
 
 
 
 
 
166
 
167
- ### Compute Infrastructure
168
 
169
- [More Information Needed]
170
 
171
- #### Hardware
172
 
173
- [More Information Needed]
174
 
175
- #### Software
176
 
177
- [More Information Needed]
178
 
179
- ## Citation [optional]
180
 
181
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
182
 
183
- **BibTeX:**
184
 
185
- [More Information Needed]
186
 
187
- **APA:**
 
 
188
 
189
- [More Information Needed]
190
 
191
- ## Glossary [optional]
 
 
192
 
193
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
194
 
195
- [More Information Needed]
196
 
197
- ## More Information [optional]
198
 
199
- [More Information Needed]
200
 
201
- ## Model Card Authors [optional]
202
 
203
- [More Information Needed]
204
 
205
- ## Model Card Contact
206
 
207
- [More Information Needed]
 
1
  ---
2
  license: apache-2.0
3
  language:
4
+ - en
5
+ - es
6
+ - zh
7
+ base_model: Qwen/Qwen3.8-27B
8
  pipeline_tag: text-generation
9
  tags:
10
+ - gguf
11
+ - qwen
12
+ - qwen3.8
13
+ - 27b
14
+ - q4_k_m
15
+ - mtp
16
+ - nextn
17
+ - llama.cpp
18
+ - ollama
19
+ - quantized
20
+ - conversational
21
  ---
 
22
 
23
+ # Qwen3.8-27B MTP GGUF Q4_K_M
24
 
25
+ Community **GGUF Q4_K_M quantization of `Qwen/Qwen3.8-27B` with the original MTP / NextN tensors preserved**.
 
 
 
 
 
 
26
 
27
+ This repository contains a format conversion and quantization of the original Qwen3.8-27B checkpoint.
28
 
29
+ **No fine-tuning or additional training has been performed.**
30
 
31
+ ## Model Details
 
 
 
 
 
 
32
 
33
+ | Property | Value |
34
+ | ------------ | ------------------ |
35
+ | Base model | `Qwen/Qwen3.8-27B` |
36
+ | Parameters | 27B |
37
+ | Quantization | `Q4_K_M` |
38
+ | Format | GGUF |
39
+ | MTP / NextN | Preserved |
40
+ | File size | ~16.8 GB |
41
+ | Conversion | `llama.cpp` |
42
+ | License | Apache-2.0 |
43
 
44
+ ### Available File
45
 
46
+ ```text
47
+ Qwen3.8-27B-Q4_K_M-MTP.gguf
48
+ ```
49
 
50
+ ## MTP / NextN
51
 
52
+ The original Qwen3.8-27B checkpoint contains Multi-Token Prediction / NextN tensors.
53
 
54
+ During conversion:
55
 
56
+ ```text
57
+ MTP enabled: 866 tensors
58
+ NextN disabled: 851 tensors
59
+ Difference: 15 MTP tensors
60
+ ```
61
 
62
+ The 15 additional `mtp.*` tensors were intentionally preserved in this GGUF.
63
 
64
+ The current `llama.cpp` converter recognized the MTP export path and correctly mapped the NextN tensors into the additional model block.
65
 
66
+ ## llama.cpp Validation
67
 
68
+ The resulting Q4_K_M GGUF was successfully loaded and executed with `llama.cpp` using:
69
 
70
+ ```bash
71
+ llama-cli \
72
+ -m Qwen3.8-27B-Q4_K_M-MTP.gguf \
73
+ --spec-type draft-mtp
74
+ ```
75
 
76
+ The runtime successfully:
77
 
78
+ * loaded the GGUF;
79
+ * recognized the model architecture;
80
+ * recognized the embedded MTP / NextN tensors;
81
+ * constructed the main and MTP graphs;
82
+ * processed the prompt;
83
+ * generated output through the MTP-compatible runtime path.
84
 
85
+ ## Ollama
86
 
87
+ The GGUF has also been successfully imported and executed with **Ollama 0.32.9**.
88
 
89
+ Minimal `Modelfile`:
90
 
91
+ ```text
92
+ FROM ./Qwen3.8-27B-Q4_K_M-MTP.gguf
93
+ ```
94
 
95
+ Create:
96
 
97
+ ```bash
98
+ ollama create qwen3.8:27b-mtp-q4_K_M -f Modelfile
99
+ ```
100
 
101
+ Run:
102
 
103
+ ```bash
104
+ ollama run qwen3.8:27b-mtp-q4_K_M
105
+ ```
106
 
107
+ ### MTP Configuration
108
 
109
+ For runtimes that expose MTP speculative decoding, the local TERATHOX configuration uses:
110
 
111
+ ```text
112
+ draft_num_predict = 4
113
+ ```
114
 
115
+ Note that **loading a GGUF containing MTP tensors does not by itself guarantee that a runtime is actively using speculative MTP decoding**.
116
 
117
+ Users should verify MTP support and configuration for their specific runtime version.
118
 
119
+ ## Local TERATHOX Deployment
120
 
121
+ This quantization has been tested locally under the alias:
122
 
123
+ ```text
124
+ Terathox-Coder:Nova
125
+ ```
126
 
127
+ ### Hardware
128
 
129
+ ```text
130
+ NVIDIA GeForce RTX 5080 16 GB
131
+ NVIDIA GeForce RTX 4070 12 GB
132
+ NVIDIA GeForce RTX 4070 12 GB
133
+ ```
134
 
135
+ Three GPUs were used for the local validation.
136
 
137
+ ### Ollama Runtime Configuration
138
 
139
+ ```text
140
+ Context: 204800
141
+ OLLAMA_FLASH_ATTENTION: 1
142
+ OLLAMA_VULKAN: false
143
+ OLLAMA_KV_CACHE_TYPE: q4_0
144
+ OLLAMA_SCHED_SPREAD: false
145
+ OLLAMA_GPU_OVERHEAD: 0
146
+ OLLAMA_NUM_PARALLEL: 1
147
+ OLLAMA_MAX_LOADED_MODELS: 1
148
+ OLLAMA_KEEP_ALIVE: -1
149
+ draft_num_predict: 4
150
+ ```
151
 
152
+ Observed status:
153
 
154
+ ```text
155
+ NAME SIZE PROCESSOR CONTEXT
156
+ Terathox-Coder:Nova 24 GB 100% GPU 204800
157
+ ```
158
 
159
+ ## Local Performance
160
 
161
+ Observed interactive generation performance:
162
 
163
+ | Run | Eval rate |
164
+ | --- | ----------: |
165
+ | 1 | 49.90 tok/s |
166
+ | 2 | 49.52 tok/s |
167
+ | 3 | 54.18 tok/s |
168
+ | 4 | 49.32 tok/s |
169
 
170
+ Typical observed generation range:
171
 
172
+ ```text
173
+ ~49–54 tokens/s
174
+ ```
175
 
176
+ Prompt evaluation varied depending on conversation state and cached context, reaching values from approximately:
177
 
178
+ ```text
179
+ 51 tok/s → 263 tok/s
180
+ ```
181
 
182
+ These are **local hardware measurements and not standardized model benchmarks**.
183
 
184
+ Performance depends on hardware, context size, GPU offload, KV-cache configuration, runtime version and MTP implementation.
185
 
186
+ ## Intended Use
187
 
188
+ This GGUF is intended for:
189
 
190
+ * local text generation;
191
+ * coding and software engineering;
192
+ * agentic coding workflows;
193
+ * technical reasoning;
194
+ * long-context workloads;
195
+ * experimentation with MTP / NextN speculative decoding;
196
+ * local inference with `llama.cpp` or compatible GGUF runtimes.
197
 
198
+ ## Limitations
199
 
200
+ This is a quantized derivative of the original model.
201
 
202
+ `Q4_K_M` significantly reduces memory requirements but may introduce some quality degradation compared with the original BF16 checkpoint.
203
 
204
+ The base model may also produce inaccurate, biased or hallucinated information. Outputs should be independently verified for high-impact or safety-critical use cases.
205
 
206
+ ## Vision / Multimodal Support
207
 
208
+ The original Qwen3.8-27B model includes multimodal capabilities.
209
 
210
+ **This repository currently provides the GGUF language-model artifact only.**
211
 
212
+ No independently validated multimodal projector (`mmproj`) is currently included in this repository.
213
 
214
+ Therefore this release should currently be considered **text-oriented unless an appropriate multimodal projector is added and validated**.
215
 
216
+ ## Training
217
 
218
+ No training or fine-tuning was performed for this repository.
219
 
220
+ The original weights come from:
 
 
 
 
221
 
222
+ ```text
223
+ Qwen/Qwen3.8-27B
224
+ ```
225
 
226
+ This repository only performs:
227
 
228
+ ```text
229
+ Original checkpoint
230
+
231
+ GGUF BF16 with MTP preserved
232
+
233
+ Q4_K_M quantization
234
+
235
+ Qwen3.8-27B-Q4_K_M-MTP.gguf
236
+ ```
237
 
238
+ ## Datasets
239
 
240
+ No additional dataset was used.
241
 
242
+ This repository does not contain a fine-tuned model.
243
 
244
+ ## Evaluation
245
 
246
+ No standardized quality benchmark was performed specifically on this quantization at the time of publication.
247
 
248
+ The performance results above measure **local inference throughput only** and should not be interpreted as accuracy or capability benchmarks.
249
 
250
+ For official capability benchmarks, refer to the original `Qwen/Qwen3.8-27B` model card.
251
 
252
+ ## Attribution
253
 
254
+ Original foundation model developed by the **Qwen Team**.
255
 
256
+ Base model:
257
 
258
+ ```text
259
+ Qwen/Qwen3.8-27B
260
+ ```
261
 
262
+ GGUF conversion and Q4_K_M quantization:
263
 
264
+ ```text
265
+ Terathox-Coder
266
+ ```
267
 
268
+ The original MTP / NextN tensors were preserved during conversion.
269
 
270
+ **TERATHOX does not claim authorship or training of the original Qwen foundation model.**
271
 
272
+ ## License
273
 
274
+ This repository follows the **Apache License 2.0** of the base model.
275
 
276
+ Please review the original Qwen3.8-27B repository and license for additional information.
277
 
278
+ ## Disclaimer
279
 
280
+ This is a **community conversion** and is not an official Qwen release.
281
 
282
+ Compatibility, performance and MTP behavior may vary between versions of `llama.cpp`, Ollama and other GGUF runtimes.