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/gemma4-e4b-bf16-df.recipe
T
keptn42 eeeeea3c88 recipes: Gemma 4 E4B (bf16 with DFlash, w8a8 with DFlash, w4a8 with and without)
Wikitext-2 KL against the HF bf16 reference: bf16 0.0015, w8a8 0.076, w4a8 0.242 (attention and
layers 19-23 int8, feed-forward int4; all int4 is 0.612).
2026-10-24 11:13:16 +02:00

19 lines
1.3 KiB
Plaintext

# gemma4-e4b-bf16-df.recipe -- Gemma 4 E4B (NVIDIA-Nemotron-3.5-Bolt-E4B-BF16) as the checkpoint holds it,
# text and vision, with NVIDIA's DFlash drafter on block FP8. Wikitext-2 KL against the HF bf16 reference
# 0.0015 (bf16 against fp32 0.0012).
#
# rad-convert <checkpoint> --recipe data/recipes/gemma4-e4b-bf16-df.recipe --draft-model <dflash-bf16> \
# --set quantization_config.quant_method=compressed-tensors -o nemotron-3.5-bolt-e4b-bf16.rad
#
# The drafter ships as a GGUF only (nvidia/NVIDIA-Nemotron-3.5-Bolt-E4B-4GB-DFlash); --draft-model reads
# it as safetensors in the z-lab layout. DFlash1 declares its linears block FP8, so bf16 codes are refused.
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
dflash.draft_head.weight rtn codes=fp8_e4m3 block=128x128 scale=bf16