Files
Strata/tools/vision
Niko1221 29045f3522 vision: Pascal cards also take F16 inputs for the GPU tower's BF16 matrices
The GPU picture tower kept the BF16-rounded kind (weights as F16, inputs
rounded to BF16 first) as its default on Pascal (compute capability 6.x).
Pascal now takes the same kind as every other CUDA card: BF16 weights held
as F16 and the product inputs written as F16.

Measured on a Tesla P100 (sm_60) with the Qwen3.8 BF16 reader file,
16 pictures, 12,308 picture tokens, against the float32 reference:
- F16 inputs: no token under cosine 0.99 (smallest 0.9970, global
  min 0.999978); the BF16-rounded kind: 44 tokens under 0.99, 5 under
  0.95, 3 under 0.9 (smallest 0.866).
- Encode time, sum of the per-picture medians of 3: 13,227 ms against
  13,240 ms.
- Tower load: 0.6 s against 1.5-1.6 s (the BF16-rounded kind converts
  every weight on the host).

The way back is STRATA_VIT_BF16_AS_F16=1 (the BF16-rounded kind); 0 is
still BF16 as stored. AMD gfx1151 (Strix Halo) keeps the BF16-rounded
kind: it has not been measured with F16 inputs. Other Pascal chips (6.1,
6.2) were not measured; their products take the same F16 cuBLAS path as
before, only the input rounding changes.
2026-11-14 07:06:08 +01:00
..