# qwen-image-2.1-iq8r.recipe -- Qwen-Image 2.1 or 2.1-Turbo with IQ8R linears. # # rad-convert --recipe data/recipes/qwen-image-2.1-iq8r.recipe \ # -o qwen-image-2.1-iq8r.rad # # Every linear of the text encoder's language model and of the DiT's 32 blocks becomes rotated # int8: codes in -127..127 in the 128-wide Hadamard domain with a u8 scale per [1 x 256] of K # under a bf16 scale a row, read at i8a8h against int8 activations quantised under the same # rotation with one scale per (token, 256). Round to nearest with a scale search; no calibration # data is read. What stays bf16 is read once a pass or less: the embedding table, the vision tower, # txt_in, img_in, the timestep MLP, the shared modulation, norm_out, proj_out and the VAE (cast # from the base model's f32). te.blk.*.attn_qkv.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search te.blk.*.attn_output.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search te.blk.*.ffn_gate_up.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search te.blk.*.ffn_down.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search dit.blk.*.attn_qkv.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search dit.blk.*.attn_output.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search dit.blk.*.ffn_gate_up.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search dit.blk.*.ffn_down.weight rtn codes=i8 group=256 scale=u8 scale2=bf16 block2=1x* transform=fwht128 clamp=sym rule=search vae.* cast dtype=bf16