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-12b-bf16.recipe
T
keptn42 81be3cb63d gemma4_bf16: the 12B's image and audio embedders
rad_block_gemma4_unified.h: LayerNorm, the dense with its bias,
LayerNorm, the column's and the row's position rows, LayerNorm (eps
1e-5), the weightless RMS norm and the projection; for audio the norm
and the projection. The position table is read as its two taps of
dimension 1, which a recipe stores (gemma4-12b-bf16, -i8g).
2026-11-04 07:20:29 +01:00

10 lines
590 B
Plaintext

# gemma4-12b-bf16.recipe -- Gemma 4 12B ("unified": text, images, audio, Google's assistant head) at bf16.
# Every weight stays as the release holds it. The image embedder's position table, [npos, 2, width], is read
# as its two taps of dimension 1 (the column's rows and the row's), computed at convert and stored bf16 here.
#
# rad-convert <gemma-4-12B-it> --draft-model <gemma-4-12B-it-assistant> \
# --recipe data/recipes/gemma4-12b-bf16.recipe \
# --set quantization_config.quant_method=compressed-tensors -o gemma4-12b-bf16.rad
v.pos_*.weight cast dtype=bf16