# museglimmer-30b-iq8r.recipe -- Meta Muse Glimmer 30B from the bf16 release with an IQ8R trunk and # an int8 head, served by arch/museglimmer_ct. # # rad-convert --recipe data/recipes/museglimmer-30b-iq8r.recipe \ # --set quantization_config.quant_method=compressed-tensors -o muse-glimmer-30b-iq8r.rad # # The --set selects the plugin registered at ("museglimmer", "compressed-tensors"), which reads the # trunk's form from layer 0's q projection; no other descriptor key is read. # # - IQ8R: every trunk linear (attention q, gate, k, v and output; the feed-forward's gate/up and # down) as int8 codes in -127..127 with one u8 scale per (row, 256 of K) under one bf16 scale a # row, each 128 of K rotated by the unnormalised Hadamard before rounding and the 1/128 kept in # the row scale (`transform=fwht128`). Round to nearest with a scale search; no calibration # data is read. The plugin serves them at gemm_nt_q i8a8h against int8 activations under the # same rotation, written by the two pre-norms (q, gate, k, v and gate/up), the gated product # (down) and the out projection's own quantiser (o). An IQ8R container is IQ8R in all seven. # The rules are the ones the other IQ8R recipes give their trunks (arch/qwen35_w8a8, # arch/llama_dense_fp8, arch/flint). # - The lm_head as int8 unrotated with a bf16 scale per (row, 128) (logits_gemm_i8), which the # DFlash drafter, when the container carries one, reads as its head too. # - The norms, the embedding, the vision tower and its adapter match no rule and stay bf16, and # so do a merged drafter's own matrices (`dspark.*`; the trunk patterns do not reach them). # # About 30.8 GiB by the tensor shapes: 23.5 GiB of IQ8R trunk, 1.3 GiB of int8 head, 2.5 GiB of # bf16 embedding, 3.4 GiB of bf16 vision tower. blk.*.attn_q.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search blk.*.attn_gate.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search blk.*.attn_k.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search blk.*.attn_v.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search blk.*.attn_output.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search blk.*.ffn_gate_up.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search blk.*.ffn_down.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search output.weight rtn codes=i8 group=128 scale=bf16 clamp=sym rule=search