Archived
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).
10 lines
590 B
Plaintext
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
|