This repository has been archived on 2026-11-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
radiance-sycl/data/recipes/q38-27b-fp8-df2.recipe
T
Deadcode 05af4db458 radiance 1.2.3
- DFlash2: the drafter's linears can be MXFP4 (slydlake), and its draft candidates are
  rescored against the target's own lm_head, so a 2-bit draft head ranks them exactly
- the Qwen3.8-27B recipes (Quark MXFP4 and FP8) use both: MXFP4 drafter linears and a
  clip-searched 2-bit head. One stream at TP2: 182 -> 204 tok/s (MXFP4), 124 -> 139 tok/s
  (uncensored FP8); 0.75 GiB less weight. Containers made with the older recipes still load.
2026-10-07 14:43:31 +02:00

30 lines
1.8 KiB
Plaintext

# q38-27b-fp8-df2.recipe -- Qwen3.8-27B-FP8 with the DFlash2 drafter, as the q38-27b-fp8-df2.rad
# container serves it.
#
# rad-convert <Qwen3.8-27B-FP8 checkpoint> --draft-model <DFlash2 checkpoint> \
# --recipe data/recipes/q38-27b-fp8-df2.recipe -o q38-27b-fp8-df2.rad
#
# The trunk's linears are block-scaled fp8 in the checkpoint and kept as they are; the norms, the
# embedding, the delta net's a/b projection and the vision tower are bf16 and kept as they are.
# What the recipe adds:
#
# - the lm_head, block fp8: the widest GEMM in the model at half the bytes
# - the drafter's linears, OCP-MXFP4 from its bf16 release: it is read whole on every decode
# step, and a draft is verified, so its precision can move acceptance and never an emitted token
# - the drafter's 2-bit copy of the target's head (u2 codes, an f16 scale and a u8 zero a group
# of 128, least-squares clip search), read by its draft rounds only; the engine rescores its
# top 32 against the target's fp8 head
#
# The drafter's selector projection, codebooks and convolution weights stay bf16.
output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
dflash.draft_head.weight rtn codes=u2 zero=u8 group=128 scale=f16 rule=search
dflash.fc.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
dflash.blk.*.attn_q.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
dflash.blk.*.attn_k.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
dflash.blk.*.attn_v.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
dflash.blk.*.attn_output.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
dflash.blk.*.ffn_gate_up.weight rtn codes=fp4_e2m1 group=32 scale=e8m0
dflash.blk.*.ffn_down.weight rtn codes=fp4_e2m1 group=32 scale=e8m0