GGUF quantizations of Ma7ee7/Qwen3.8_4B_Distilled for use with llama.cpp, LM Studio, Ollama, Jan, and other GGUF-compatible applications.
Qwen3.8 4B Distilled is a 4-billion-parameter reasoning model created by distilling outputs from Qwen3.8-Max into the smaller Qwen3-4B-Thinking-2507 student model.
The full model was fine-tuned on r0b0tlab/qwen3.8-max-distillation-50k, a dataset of responses and reasoning traces generated by qwen3.8-max-preview.
Model Lineage and Naming
The name Qwen3.8 4B Distilled describes the model's distillation lineage:
This is a Qwen3-architecture student model distilled from Qwen3.8-Max-generated outputs.
The repository does not claim that the underlying architecture or original weights are from Qwen3.8-Max. Qwen3.8-Max is the teacher whose generated responses and reasoning traces were used as training targets for the 4B student.
This repository contains quantized conversions of that independently fine-tuned student model. It is not an official Qwen or Alibaba release.
This repository includes the following quantization levels:
Quantization
Description
Q4_K_M
Recommended starting point with a strong balance of size, speed, and quality
Q5_K_M
Higher fidelity with moderately greater RAM and storage usage
Q8_0
Highest-fidelity option in this repository, with the largest memory footprint
For most local users, Q4_K_M is the recommended starting point.
Use Q5_K_M when you have additional memory and want to retain more quality. Use Q8_0 when fidelity matters more than storage or RAM usage.
What “Distilled” Means Here
This model uses sequence-level knowledge distillation.
The smaller student was trained on complete responses produced by the larger teacher. This transfers parts of the teacher's behavior, reasoning patterns, solution structure, and response style without copying the teacher's architecture or weights.
Therefore:
The architecture and original student weights come from Qwen3-4B-Thinking-2507.
The distillation targets come from Qwen3.8-Max-generated outputs.
The resulting checkpoint remains a 4B Qwen3 model.
These GGUF files are quantized versions of that 4B distilled model.
The model is not expected to reproduce the full capabilities of Qwen3.8-Max.
Quick Start with llama.cpp
A recent llama.cpp build can download and run a quantization directly from Hugging Face.
Run the Q4_K_M quantization directly from Hugging Face:
ollama run hf.co/Ma7ee7/Qwen3.8_4B_Distilled_GGUF:Q4_K_M
Other available options:
bash
1ollama run hf.co/Ma7ee7/Qwen3.8_4B_Distilled_GGUF:Q5_K_M
2ollama run hf.co/Ma7ee7/Qwen3.8_4B_Distilled_GGUF:Q8_0
Local Ollama Modelfile
After downloading a GGUF file, create a file named Modelfile:
text
1FROM ./qwen3-4b-thinking-2507.Q4_K_M.gguf
23PARAMETER temperature 0.6
4PARAMETER top_p 0.95
5PARAMETER top_k 20
6PARAMETER repeat_penalty 1.05
7PARAMETER num_ctx 32768
89SYSTEM You are a helpful reasoning assistant. Think carefully and provide a clear final answer.
Create and run the model:
bash
1ollama create qwen3.8-4b-distilled -f Modelfile
2ollama run qwen3.8-4b-distilled
If your downloaded GGUF has a different filename, replace the path after FROM with the actual local filename.
LM Studio
Open LM Studio.
Search for Ma7ee7/Qwen3.8_4B_Distilled_GGUF.
Select and download a quantization.
Load the model.
Confirm that the Qwen chat template is active.
Start with a context length of 16,384 or 32,768 tokens.
Increase the context length only when sufficient memory is available.
Suggested sampling settings:
Setting
Value
Temperature
0.6
Top-p
0.95
Top-k
20
Repetition penalty
1.05
Maximum output tokens
4096 or higher
Context Length
The model inherits its context configuration from Qwen3-4B-Thinking-2507. Actual usable context in a GGUF application depends on:
Available system RAM
Available VRAM
Quantization level
KV-cache precision
GPU offloading configuration
The llama.cpp or application build
A context length of 16K or 32K is a practical starting point for local use. Longer contexts can require substantially more memory because of KV-cache growth.
For CPU-only inference, omit -ngl 99 or set a smaller number of GPU-offloaded layers.
Recommended Generation Settings
Setting
Recommended value
Temperature
0.6
Top-p
0.95
Top-k
20
Repetition penalty
1.0–1.1
Maximum output tokens
4096 or higher
For difficult mathematics, programming, or long-form reasoning, allow enough output tokens for the model to complete both its reasoning and final answer.
Thinking Output
The model inherits a thinking-oriented chat format from Qwen3-4B-Thinking-2507. Depending on the inference application and reasoning parser, visible reasoning may be displayed in a form similar to:
text
1<think>
2Reasoning process
3</think>
45Final answer
Some applications may hide the thinking section, place it in a collapsible panel, or display it separately from the final answer.