Skip to content

feat: f16-resident weights on the OpenXLA path (fusion-free bandwidth win) #572

Closed

Description

@inureyes

Part of #570

Summary

Using the per-dtype weight ABI landed in #568, upload the resident (non-quantized) weights as f16 rather than f32-then-demote-in-graph, so the per-step weight DRAM read halves with no dequant and no fusion required. This is the low-hanging bandwidth win the #568 ABI already enables, independent of the fusion gate that blocks the packed int8 path.

Scope

  • Declare the affected resident weight args as f16 in the emitter (instead of f32) and have the dot consume them directly: f16 in, f32 accumulate.
  • Upload resident weights as f16 through the per-dtype weight ABI from feat: int8/int4 packed weight quantization on the OpenXLA path (#516) #568 (iree.rs + csrc/xla_iree.c), removing the f32-materialize-then-demote-in-graph step.
  • Add selection plumbing: per device (GPU) default, overridable via MLXCEL_XLA_PRECISION.

Integration / acceptance

  • Wired into the normal load / serve path, not a standalone emitter helper: f16-resident weights are selected per device (GPU) or via MLXCEL_XLA_PRECISION, and defaulted where safe.
  • Gated by the test: precision accuracy gate and per-device default precision for the OpenXLA backend (#449) #515 accuracy harness: token-exact or within-gate.
  • On GB10, measured tok/s >= current f16 and resident weight memory ~halved versus f32-resident, captured through the normal generation path (not iree-benchmark-module in isolation).
  • No dequant and no target fusion is required for this win (that is the point): it is orthogonal to the packed int8 fusion gate.

Dependencies

Depends on #571 (reproducible IREE toolchain) for the GB10 measurement.

Activity

  1. added
    status:ready
    type:performance
    priority:high
    area:inference
    status:in-progress
    and removed
    status:ready
    on Jul 1, 2026
  2. added
    status:done
    and removed
    status:in-progress
    on Jul 1, 2026
  3. added 2 commits that reference this issue on Jul 1, 2026
  4. self-assigned this
    on Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:inferencepriority:highstatus:donetype:performance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions