Views
No views yet
prism-ml/bonsai-image-ternary-4B-unpacked),
quantized to Q2_K so it runs on-device with
stable-diffusion.cpp (and the
llmedge Android library).tq1_0/tq2_0) load and run, but their per-256-weight scale is too
coarse for Bonsai's per-128 trained scales and produce degraded output. Q2_K's finer per-16
sub-block scales preserve the QAT quality at a comparable size.1sd --diffusion-model bonsai-flux2-klein-ternary-q2_k.gguf \
2 --vae flux2-vae.safetensors \
3 --llm qwen_3_4b.gguf \
4 -p "a red fox in snow, detailed, 8k" \
5 --cfg-scale 1.0 --steps 4 --offload-to-cpu --diffusion-fa --vae-tilingscripts/convert_bonsai_flux2_to_bfl.py (in llmedge): Bonsai diffusers transformer → BFL naming
(renames + fuses the double-block to_q/k/v into *_attn.qkv).sd -M convert -m bonsai-flux2-bfl.safetensors --type q2_K -o <this file>.