Text Generation
GGUF
English
Spanish
Chinese
qwen
qwen3.8
27b
q4_k_m
mtp
nextn
llama.cpp
ollama
quantized
conversational
Instructions to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF 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 Terathox-Coder/Qwen3.8-27B-MTP-GGUF 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 Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF: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 Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF: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 Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Terathox-Coder/Qwen3.8-27B-MTP-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Terathox-Coder/Qwen3.8-27B-MTP-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
- Ollama
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with Ollama:
ollama run hf.co/Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
- Unsloth Studio
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Terathox-Coder/Qwen3.8-27B-MTP-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Terathox-Coder/Qwen3.8-27B-MTP-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Terathox-Coder/Qwen3.8-27B-MTP-GGUF to start chatting
- Pi
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF: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": "Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with Docker Model Runner:
docker model run hf.co/Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
- Lemonade
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen3.8-27B-MTP-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF: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 Terathox-Coder/Qwen3.8-27B-MTP-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Terathox-Coder/Qwen3.8-27B-MTP-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Terathox-Coder/Qwen3.8-27B-MTP-GGUF: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 "Terathox-Coder/Qwen3.8-27B-MTP-GGUF: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"
File size: 6,570 Bytes
6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 6276ea4 7f41215 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | ---
license: apache-2.0
language:
- en
- es
- zh
base_model: Qwen/Qwen3.8-27B
pipeline_tag: text-generation
tags:
- gguf
- qwen
- qwen3.8
- 27b
- q4_k_m
- mtp
- nextn
- llama.cpp
- ollama
- quantized
- conversational
---
# Qwen3.8-27B MTP GGUF — Q4_K_M
Community **GGUF Q4_K_M quantization of `Qwen/Qwen3.8-27B` with the original MTP / NextN tensors preserved**.
This repository contains a format conversion and quantization of the original Qwen3.8-27B checkpoint.
**No fine-tuning or additional training has been performed.**
## Model Details
| Property | Value |
| ------------ | ------------------ |
| Base model | `Qwen/Qwen3.8-27B` |
| Parameters | 27B |
| Quantization | `Q4_K_M` |
| Format | GGUF |
| MTP / NextN | Preserved |
| File size | ~16.8 GB |
| Conversion | `llama.cpp` |
| License | Apache-2.0 |
### Available File
```text
Qwen3.8-27B-Q4_K_M-MTP.gguf
```
## MTP / NextN
The original Qwen3.8-27B checkpoint contains Multi-Token Prediction / NextN tensors.
During conversion:
```text
MTP enabled: 866 tensors
NextN disabled: 851 tensors
Difference: 15 MTP tensors
```
The 15 additional `mtp.*` tensors were intentionally preserved in this GGUF.
The current `llama.cpp` converter recognized the MTP export path and correctly mapped the NextN tensors into the additional model block.
## llama.cpp Validation
The resulting Q4_K_M GGUF was successfully loaded and executed with `llama.cpp` using:
```bash
llama-cli \
-m Qwen3.8-27B-Q4_K_M-MTP.gguf \
--spec-type draft-mtp
```
The runtime successfully:
* loaded the GGUF;
* recognized the model architecture;
* recognized the embedded MTP / NextN tensors;
* constructed the main and MTP graphs;
* processed the prompt;
* generated output through the MTP-compatible runtime path.
## Ollama
The GGUF has also been successfully imported and executed with **Ollama 0.32.9**.
Minimal `Modelfile`:
```text
FROM ./Qwen3.8-27B-Q4_K_M-MTP.gguf
```
Create:
```bash
ollama create qwen3.8:27b-mtp-q4_K_M -f Modelfile
```
Run:
```bash
ollama run qwen3.8:27b-mtp-q4_K_M
```
### MTP Configuration
For runtimes that expose MTP speculative decoding, the local TERATHOX configuration uses:
```text
draft_num_predict = 4
```
Note that **loading a GGUF containing MTP tensors does not by itself guarantee that a runtime is actively using speculative MTP decoding**.
Users should verify MTP support and configuration for their specific runtime version.
## Local TERATHOX Deployment
This quantization has been tested locally under the alias:
```text
Terathox-Coder:Nova
```
### Hardware
```text
NVIDIA GeForce RTX 5080 16 GB
NVIDIA GeForce RTX 4070 12 GB
NVIDIA GeForce RTX 4070 12 GB
```
Three GPUs were used for the local validation.
### Ollama Runtime Configuration
```text
Context: 204800
OLLAMA_FLASH_ATTENTION: 1
OLLAMA_VULKAN: false
OLLAMA_KV_CACHE_TYPE: q4_0
OLLAMA_SCHED_SPREAD: false
OLLAMA_GPU_OVERHEAD: 0
OLLAMA_NUM_PARALLEL: 1
OLLAMA_MAX_LOADED_MODELS: 1
OLLAMA_KEEP_ALIVE: -1
draft_num_predict: 4
```
Observed status:
```text
NAME SIZE PROCESSOR CONTEXT
Terathox-Coder:Nova 24 GB 100% GPU 204800
```
## Local Performance
Observed interactive generation performance:
| Run | Eval rate |
| --- | ----------: |
| 1 | 49.90 tok/s |
| 2 | 49.52 tok/s |
| 3 | 54.18 tok/s |
| 4 | 49.32 tok/s |
Typical observed generation range:
```text
~49–54 tokens/s
```
Prompt evaluation varied depending on conversation state and cached context, reaching values from approximately:
```text
51 tok/s → 263 tok/s
```
These are **local hardware measurements and not standardized model benchmarks**.
Performance depends on hardware, context size, GPU offload, KV-cache configuration, runtime version and MTP implementation.
## Intended Use
This GGUF is intended for:
* local text generation;
* coding and software engineering;
* agentic coding workflows;
* technical reasoning;
* long-context workloads;
* experimentation with MTP / NextN speculative decoding;
* local inference with `llama.cpp` or compatible GGUF runtimes.
## Limitations
This is a quantized derivative of the original model.
`Q4_K_M` significantly reduces memory requirements but may introduce some quality degradation compared with the original BF16 checkpoint.
The base model may also produce inaccurate, biased or hallucinated information. Outputs should be independently verified for high-impact or safety-critical use cases.
## Vision / Multimodal Support
The original Qwen3.8-27B model includes multimodal capabilities.
**This repository currently provides the GGUF language-model artifact only.**
No independently validated multimodal projector (`mmproj`) is currently included in this repository.
Therefore this release should currently be considered **text-oriented unless an appropriate multimodal projector is added and validated**.
## Training
No training or fine-tuning was performed for this repository.
The original weights come from:
```text
Qwen/Qwen3.8-27B
```
This repository only performs:
```text
Original checkpoint
↓
GGUF BF16 with MTP preserved
↓
Q4_K_M quantization
↓
Qwen3.8-27B-Q4_K_M-MTP.gguf
```
## Datasets
No additional dataset was used.
This repository does not contain a fine-tuned model.
## Evaluation
No standardized quality benchmark was performed specifically on this quantization at the time of publication.
The performance results above measure **local inference throughput only** and should not be interpreted as accuracy or capability benchmarks.
For official capability benchmarks, refer to the original `Qwen/Qwen3.8-27B` model card.
## Attribution
Original foundation model developed by the **Qwen Team**.
Base model:
```text
Qwen/Qwen3.8-27B
```
GGUF conversion and Q4_K_M quantization:
```text
Terathox-Coder
```
The original MTP / NextN tensors were preserved during conversion.
**TERATHOX does not claim authorship or training of the original Qwen foundation model.**
## License
This repository follows the **Apache License 2.0** of the base model.
Please review the original Qwen3.8-27B repository and license for additional information.
## Disclaimer
This is a **community conversion** and is not an official Qwen release.
Compatibility, performance and MTP behavior may vary between versions of `llama.cpp`, Ollama and other GGUF runtimes.
|