Download README.md from Capicua25x/Ornith-1.0-9B-MXFP4-Vision-MTP: direct link, hf CLI and curl.
- Browser
- Download file 5.86 kB
-
https://huggingface.co/Capicua25x/Ornith-1.0-9B-MXFP4-Vision-MTP/resolve/main/README.md
- Command line
-
hf download hf://Capicua25x/Ornith-1.0-9B-MXFP4-Vision-MTP/README.md
-
curl -L -o README.md https://huggingface.co/Capicua25x/Ornith-1.0-9B-MXFP4-Vision-MTP/resolve/main/README.md
license: mit
base_model: deepreinforce-ai/Ornith-1.0-9B
base_model_relation: quantized
pipeline_tag: image-text-to-text
library_name: vllm
language:
- en
tags:
- mxfp4
- compressed-tensors
- speculative-decoding
- mtp
- multi-token-prediction
- qwen3.5
- vllm
- rocm
- rdna4
- gfx1201
- radeon-ai-pro-r9700
- amd
- vision
Ornith-1.0-9B β MXFP4 + MTP (vision), for AMD RDNA4 / vLLM
deepreinforce-ai/Ornith-1.0-9B quantized to
MXFP4 with a grafted MTP (Multi-Token-Prediction) draft head, packaged to run out of the box on
AMD Radeon RDNA4 (gfx1201) under vLLM with lossless self-speculative decoding. Vision retained.
- Trunk β Ornith-1.0-9B quantized to MXFP4 (
compressed-tensors, group size 32, symmetric).lm_head,embed_tokens, norms, and the vision tower are kept BF16. - Draft head β the KL-distilled MTP head from
protoLabsAI/Ornith-1.0-9B-MTP(BF16), grafted into a separatemodel-mtp.safetensorsshard and marked unquantized in the quant config so the mixed-precision model loads cleanly. - Speculative decoding β vLLM native
mtpmethod,num_speculative_tokens=3. Lossless: the target verifies every drafted token, so the output distribution is unchanged β the head only buys speed.
Measured on AMD RDNA4
2Γ Radeon AI PRO R9700 (gfx1201), tensor-parallel 2, vLLM 0.19.1 (image below).
- MTP draft acceptance (n=3): β66% average across a mixed code + 6k-context run β per-position 0.82 / 0.65 / 0.53, mean acceptance length ~3.0 (max 4) β rising to ~85% (length ~3.6) on cache-warm short context. Lossless throughout.
- Tool-calling (
qwen3_xml) and vision confirmed working. - Throughput (TP2, 256 output tokens, per-user / aggregate tok/s):
| concurrent | short prompt | ~6k prompt |
|---|---|---|
| 1 | 84.6 / 85 | 103.8 / 104 |
| 16 | 51.8 / 803 | 50.1 / 767 |
| 32 | 40.8 / 1260 | 33.0 / 1010 |
| 64 | 30.7 / 1902 | 21.1 / 1268 |
| 96 | 22.5 / 2075 | 15.0 / 1293 |
| 128 | 20.2 / 1893 | 12.6 / 1284 |
Usable concurrency ceiling (per-user β₯ 20 tok/s): ~128 at short context, ~64 at 6k context. Single-stream decode is bound by the dense 9B's active-parameter count; a single GPU (TP1) is also supported.
Run it on AMD RDNA4
Uses the prebuilt RDNA4 vLLM image
capicua25x/vllm-rocm-rdna4 (tag 0.19.1):
docker run --rm --network=host \
--device=/dev/kfd --device=/dev/dri \
--group-add=video --group-add=render --ipc=host --ulimit memlock=-1 \
capicua25x/vllm-rocm-rdna4:0.19.1 \
--model Capicua25x/Ornith-1.0-9B-MXFP4-Vision-MTP \
--served-model-name ornith --trust-remote-code \
--tensor-parallel-size 2 \
--gpu-memory-utilization 0.90 \
--max-model-len 16384 \
--attention-backend TRITON_ATTN \
--enable-prefix-caching \
--enable-auto-tool-choice --tool-call-parser qwen3_xml --reasoning-parser qwen3 \
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
The settings that actually matter on RDNA4
--attention-backend TRITON_ATTNβ required on gfx1201.--speculative-config '{"method":"mtp","num_speculative_tokens":3}'β enables the grafted MTP head. n=3 maximizes throughput; n=1β2 maximize per-token acceptance. Tune per workload.--tool-call-parser qwen3_xml --reasoning-parser qwen3β Qwen3.5-family tool-calling + reasoning split.--trust-remote-codeβ theqwen3_5vision architecture.- Single GPU works too:
--tensor-parallel-size 1and pass one render node (e.g.--device=/dev/dri/renderD128).
How it was built (reproducible)
- MXFP4 quantize Ornith-1.0-9B with
compressed-tensors(4-bit float, group 32, symmetric;lm_head/embed_tokens/ norms / vision tower left BF16). - Graft the 15
mtp.*head tensors fromprotoLabsAI/Ornith-1.0-9B-MTPinto a newmodel-mtp.safetensorsshard and patchmodel.safetensors.index.json. - Mark the head unquantized β add its Linear modules (
mtp.fc,mtp.layers.0.self_attn.*,mtp.layers.0.mlp.*) toquantization_config.ignore, so vLLM's compressed-tensors loader keeps the BF16 head as-is instead of expecting MXFP4 weight-scales. This is the one mixed-precision gotcha.
Step 1 (the MXFP4 quantize) is scripted in quantize_mxfp4.py (weight-only MXFP4A16, group 32, data-free β deterministic/byte-reproducible). Steps 2β3 are scripted in recipe_graft_mxfp4.py (run against an MXFP4
compressed-tensors trunk + the protoLabs head). The head's distillation recipe lives upstream at
protoLabsAI/Ornith-1.0-9B-MTP.
Credits
- DeepReinforce β
Ornith-1.0-9B, the base model (MIT). - protoLabs β
Ornith-1.0-9B-MTP, the KL-distilled MTP draft head and its recipe (MIT). - Qwen / Alibaba β the Qwen3.5 architecture the MTP head derives from (the head was initialized from
Qwen/Qwen3.5-9B'smtp.*tensors). - vLLM and compressed-tensors β serving stack and quantization format.
- Rob Smith (
tcclaviger) β the RDNA4 vLLM base image that made gfx1201 serving possible. Thecapicua25x/vllm-rocm-rdna4image this model runs on is a forward-port of his work β without it, none of this runs.
License
MIT. This is a derivative of Ornith-1.0-9B (MIT); merging the MTP head (MIT) produces a derivative whose MIT terms carry.