Model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: qwen-community-1.0
|
| 4 |
+
license_link: LICENSE
|
| 5 |
+
base_model:
|
| 6 |
+
- Qwen/Qwen3.8-Flash-Next
|
| 7 |
+
pipeline_tag: image-text-to-text
|
| 8 |
+
tags:
|
| 9 |
+
- radiance
|
| 10 |
+
- rocm
|
| 11 |
+
- amd
|
| 12 |
+
- rdna4
|
| 13 |
+
- moe
|
| 14 |
+
- 4-bit
|
| 15 |
+
- int8
|
| 16 |
+
- gptq
|
| 17 |
+
- speculative-decoding
|
| 18 |
+
- mtp
|
| 19 |
+
- vision
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# Qwen3.8-Flash-Next, 4-bit codebook experts + int8 trunk — radiance container
|
| 23 |
+
|
| 24 |
+
[Qwen/Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) quantised from its bf16
|
| 25 |
+
checkpoint into a single `.rad` container for the **radiance** inference engine (AMD RDNA4, ROCm),
|
| 26 |
+
with the model's MTP head for speculative decoding and its vision tower.
|
| 27 |
+
|
| 28 |
+
| | |
|
| 29 |
+
|---|---|
|
| 30 |
+
| File | `qwen3.8-next-flash-fp8-iq4r-moe.rad` — 113.6 GiB |
|
| 31 |
+
| Routed experts | 4-bit codes into a 16-level non-uniform codebook after a 128-point Walsh–Hadamard rotation, one E4M3 scale per 64 weights; codes chosen by GPTQ (10M-token calibration, per-expert down-projection Hessians) and refined by three sweeps of coordinate descent |
|
| 32 |
+
| Protected experts | ten experts that carry most of their layer's down-projection energy, kept bf16 |
|
| 33 |
+
| Trunk | attention and shared-expert linears and the lm_head int8 (W8A8), a scale per 128 columns searched for least error; hyper-connection mixing matrices E4M3 |
|
| 34 |
+
| Speculator | the model's MTP head (depth 3 by default) |
|
| 35 |
+
| Vision | the vision tower, bf16: images and video in chat requests |
|
| 36 |
+
| Context | 262,144 tokens trained; served at 200K |
|
| 37 |
+
|
| 38 |
+
## Quality
|
| 39 |
+
|
| 40 |
+
Full-vocabulary KL divergence against the bf16 model, teacher-forced over ~75K positions of chat,
|
| 41 |
+
tool-use and code transcripts:
|
| 42 |
+
|
| 43 |
+
| | mean KL | median | p99 | p99.9 | top-1 agreement |
|
| 44 |
+
|---|---|---|---|---|---|
|
| 45 |
+
| all tokens | 0.0789 | 0.0037 | 1.65 | 5.33 | 92.85% |
|
| 46 |
+
| text and assistant turns | 0.0239 | 0.0029 | 0.32 | 1.03 | 94.57% |
|
| 47 |
+
| reference: a second bf16 implementation, all tokens | 0.0399 | 0.0013 | 0.82 | 3.43 | 95.13% |
|
| 48 |
+
|
| 49 |
+
## Serve
|
| 50 |
+
|
| 51 |
+
The routed experts do not fit two 32 GB cards; the engine keeps the hottest in VRAM and streams the
|
| 52 |
+
rest from a pinned host pool, so the host needs about 32 GB of free RAM.
|
| 53 |
+
|
| 54 |
+
```sh
|
| 55 |
+
radiance --model qwen3.8-next-flash-fp8-iq4r-moe.rad --tp 2 --tp-wire wht6 \
|
| 56 |
+
--max-model-len 200000 --max-num-seqs 8 --kv-cache-dtype fp8 \
|
| 57 |
+
--placement expert_tiered --host-pool-mib 12288 --gpu-headroom-mib 96 \
|
| 58 |
+
--expert-vs-cache-ratio 0.82 --num-speculative-tokens 3 --max-num-batched-tokens 2048 \
|
| 59 |
+
--host 0.0.0.0 --port 8000
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
On 2× Radeon AI PRO R9700 (gfx1201), one stream: about 15 ms per decode step at ~2.4 accepted
|
| 63 |
+
tokens per step, and ~6,400 tokens/s prefill on a 26K-token prompt.
|
| 64 |
+
|
| 65 |
+
The server speaks the OpenAI API (`/v1/chat/completions`, `/v1/completions`), with tool calls,
|
| 66 |
+
structured output, and `image_url` / video parts in chat messages.
|
| 67 |
+
|
| 68 |
+
## License
|
| 69 |
+
|
| 70 |
+
The Qwen community license of the base model; see `LICENSE`.
|