Archived
The three containers arch/gemma4 has been served from, each with the usage header the in-tree recipes carry: - gemma4-26b-a4b-df: the routed experts' gate_up block fp8, their down bf16 (K = 704 is not whole 128-blocks), the drafter's linears block fp8. The measured container. - gemma4-26b-a4b-df-pad768: both expert projections fp8, from a checkpoint whose experts were padded 704 -> 768 before conversion (zero rows of gate and up, zero columns of down: exact). The padding is described rather than shipped: the tool that did it is Python and stays out of the tree. - gemma4-26b-a4b-df-bf16x: only the drafter quantised -- the bf16 reference for the KL mode. The rules are the ones the containers were converted with; only the headers are new. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
1.2 KiB
Plaintext
18 lines
1.2 KiB
Plaintext
# gemma4-26b-a4b-df-bf16x.recipe -- gemma-4-26B-A4B-it with z-lab's DFlash drafter and the routed
|
|
# experts left bf16, as arch/gemma4 serves it.
|
|
#
|
|
# rad-convert <gemma-4-26B-A4B-it checkpoint> --draft-model <gemma-4-26B-A4B-it-DFlash checkpoint> \
|
|
# --recipe data/recipes/gemma4-26b-a4b-df-bf16x.recipe -o gemma4-26b-a4b-df-bf16x.rad
|
|
#
|
|
# The trunk exactly as the checkpoint holds it -- the bf16 reference the fp8-expert containers are
|
|
# measured against (radiance --kld-record) -- with only the drafter quantised.
|
|
|
|
# The DFlash drafter's six linears: block fp8 (the drafter only proposes; the trunk verifies).
|
|
dflash.fc.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
|
dflash.blk.*.attn_q.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
|
dflash.blk.*.attn_k.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
|
dflash.blk.*.attn_v.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
|
dflash.blk.*.attn_output.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
|
dflash.blk.*.ffn_gate_up.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|
|
dflash.blk.*.ffn_down.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16
|