This repository contains a quantized Q4NX port of the model, compiled for the FastFlowLM (FLM) runtime. It is not a GGUF file.
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.
What is Q4NX?
Q4NX is FastFlowLM's native packed-quantization format - a rearranged Q4_1
layout tuned for the NPU matrix engine's tile sizes and memory access
patterns. It is not a GGUF file and it does not run on llama.cpp or
Ollama; it is meant exclusively for the FastFlowLM
engine on AMD Ryzen AI NPUs.
Requirements
FastFlowLM >= 0.9.45 (flm CLI)
AMD Ryzen AI processor with XDNA2 (NPU2) - Strix Point / Ryzen AI 300
series or later
Linux with the XRT NPU stack installed
~16 GB of unified system memory (Q4NX weights + activations + KV cache)
FLM Bench
Tested on an AMD Ryzen AI 340 Framework 13 laptop.
Context Length
TTFT (s) (mean ± std)
Prefill Speed (tok/s) (mean ± std)
Decoding Speed (tok/s) (mean ± std)
1k
2.973 ± 0.077
355.72 ± 9.25
12.31 ± 0.25
2k
4.337 ± 0.050
466.84 ± 12.27
12.15 ± 0.26
4k
8.283 ± 0.014
478.02 ± 4.65
11.01 ± 0.12
8k
17.243 ± 0.065
454.02 ± 0.02
9.38 ± 0.01
16k
41.308 ± 0.071
376.84 ± 0.00
7.27 ± 0.07
32k
116.909 ± 0.294
265.53 ± 0.06
5.06 ± 0.00
Files
File
Purpose
model.q4nx
Quantized Q4NX weights
config.json
FastFlowLM model configuration
tokenizer.json
Tokenizer
tokenizer_config.json
Special tokens and chat template
chat_template.jinja
Chat template (optional)
Install and run
This repository works with flm-add, a small installer that copies the model
into the FastFlowLM user directory and registers the tag. It never
modifies the system FastFlowLM install.
FastFlowLM's NPU kernels (xclbins) are closed source and are not shipped in
this repository. flm-add links the kernels of the official qwen3-tk:4b
model (Qwen3-4B-Thinking-2507-NPU2), because this model shares the same engine family
(qwen3) and architecture.
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 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 Q4NX file is a quantized versions of that 4B distilled model.
The model is not expected to reproduce the full capabilities of Qwen3.8-Max.
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[FLM] Model RAW Output:
2<think>
3The user is asking a straightforward factual question: "What is the capital of France?"
45Since no specific tools or functions are available for answering such questions, I'll simply provide the answer directly.
6</think>
78The capital of France is **Paris**.
Some applications may hide the thinking section, place it in a collapsible panel, or display it separately from the final answer.