You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: precision accuracy gate and per-device default precision for the OpenXLA backend (#449) #515
Add a precision accuracy gate that compares low-precision OpenXLA output against the f32 / HF temp-0 reference across several prompts (token-exactness, and a divergence / perplexity margin where exactness is too strict), then use it to make f16 the default precision on GPU targets (Metal, CUDA) while keeping f32 where it does not help (CPU).
Scope
A gate harness (test or bench) that runs the OpenXLA path at f32 vs f16 over a small prompt set and asserts the accuracy criterion. Wire it into the test suite so precision changes are guarded.
Device-aware default precision: f16 on GPU HAL devices, f32 on local-task, overridable. Applied in the device / precision selection path (alongside default_device).
Integration (required for done)
The default precision is actually applied in the generation path per device (not just a helper), and the gate runs as part of cargo test. After this issue, MLXCEL_BACKEND=xla MLXCEL_XLA_DEVICE=metal runs f16 by default and the gate guards it.
Validation
Gate passes for f16 on the prompt set; a deliberately bad precision setting fails it.
tok/s improvement confirmed as the new default on Metal.
Activity
docs: OpenXLA performance table and the transferable-precision decisi…
docs: OpenXLA performance table and the transferable-precision decisi…
docs: OpenXLA performance table and the transferable-precision decisi…
docs(xla): validate #575 low-precision on Metal + oracle dumper (#611)
docs: OpenXLA performance table and the transferable-precision decisi…
docs(xla): validate lablup#575 low-precision on Metal + oracle dumper (…
feat(xla): accept bf16 scales and biases on the packed quant path (#3310