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
bug(xla): packed int8 (MLXCEL_XLA_QUANT=packed) prefill invoke faults on metal-spirv #613
The packed int8 weight path (MLXCEL_XLA_QUANT=packed, issue #568: resident ui32 weight + f16 scales/biases, dequantized in the StableHLO graph) compiles for the metal-spirv target but faults at runtime: on an M1 Ultra the prefill invoke returns IREE status 13 (IREE_STATUS_INTERNAL) from iree_runtime_call_invoke (xla_llama_prefill failed (status 13)). The graph lowers (no iree-compile error), so the fault is in the executed kernel, not codegen rejection. This path has only ever executed on the GB10 CUDA runtime; the Metal runtime failure is separate from the dequant-to-matmul fusion gate tracked by #574. Discovered in #575.
Ask
Root-cause the runtime fault (most likely the in-graph ui32 bit-unpack + affine dequant lowering to a metal-spirv kernel). Determine whether it is fixable in-tree (an emitter/representation change) or is upstream IREE metal-spirv behavior.
Acceptance
A documented root cause (which op / dispatch faults, and why) for the IREE_STATUS_INTERNAL at prefill on metal-spirv.
EITHER an in-tree fix that makes the packed path run token-exact on Metal (matching the CUDA token-exactness), OR a clear characterization as upstream IREE work plus a fail-fast guard so MLXCEL_XLA_QUANT=packed on Metal errors early with an actionable message instead of an opaque INTERNAL status.
Note: the packed/int8 bandwidth win is un-demonstrable on the compute-bound Metal decode regardless (per ADR 0004 and the feat: extend the fused low-precision path to the Metal target #575 f16 result), so the goal here is correctness/robustness on Metal, not throughput.
Activity
fix(xla): fail fast on MLXCEL_XLA_QUANT=packed for Metal targets (lab…
fix(xla): fail fast on MLXCEL_XLA_QUANT=packed for Metal targets (lab…
feat(xla): keep the quantized MoE expert bank packed on device (#3588)