Files
Strata/tools/vision
Niko1221 21d15ebf71 vision: gfx1151 (Strix Halo) takes F16 inputs for BF16 matrices too
Since 11-14 every CUDA and HIP card held a BF16 reader file's matrices as F16 with F16
inputs (K_HF), except gfx1151, which kept the BF16-rounded inputs (K_BH). On Strix that
left the Qwen3.8 reader at cosine 0.998547 against the float32 reference on
code4217.png, under rule 1. gfx1151 now takes K_HF like every other card; its 16-bit
results (HPA16) and the fused attention are unchanged. STRATA_VIT_BF16_AS_F16=1 gives
K_BH back.

18-picture gate on Strix (gfx1151, Windows HIP), --max-tokens 1024, against float32 and
mtmd-HIP (job strix-20261116-1346-f1a0; no new GPU timeout, Kernel-Power or WATCHDOG
event):
- Qwen3.8 BF16: min 0.999940, mean 0.999987 (was 0.998547 / 0.999757); rule 2 on all
  18 (mtmd-HIP: min 0.990090); time 0.45-0.91 of mtmd-HIP (median 0.63; was 0.62); 969
  MiB of GPU memory, as before; load 0.6 s instead of 1.7 s (the weights are turned into
  F16 on the GPU, K_BH converted them on the host); repeatable over 6 encodes.
- Qwen3.6 F16: byte-identical to the previous reader on 18 of 18.
- STRATA_VIT_BF16_AS_F16=1: byte-identical to the previous reader on 18 of 18.
2026-11-16 13:56:43 +01:00
..