Repository navigation
Description
Problem / Background
We need one reusable inference kernel with a numerical oracle before spending effort on MLX scheduling integration. Depends on #2831 and its successful target-execution gate.
Design: feasibility review, added in #2835. Reference semantics: src/lib/mlxcelverse/kernels/fused_norm.cpp and src/lib/mlxcel-core/src/fused_norm_parity_tests.rs.
Proposed Solution
Implement standalone fused residual-add + RMSNorm in the isolated oxide package. Start with f32, then f16/bf16 activations and supported weight dtypes. Keep MLX types and headers outside the package; consume the artifact/ABI contract from #2831.
Acceptance Criteria
- Return both normalized output and rounded residual sum; preserve rounding before squaring, f32 accumulation, epsilon, and weight-bias 0/1 semantics.
- Freeze per-dtype tolerances before measurement, using existing parity budgets as the starting point; compare deterministic fixtures against the existing fused CUDA and graph references.
- Exercise small/odd/tail widths and representative widths 1024/4096/8192, one and multiple rows, mixed weight dtypes, and NaN/Inf policy. Reject invalid shapes and unsupported layouts explicitly; do not silently narrow the accepted contract.
- Save machine-readable results with dtype, shape, error metrics, artifact identity, and executed case counts. Run actual GB10 tests under
gpu-lock; no-GPU skips are not acceptance. - Add a standalone warm/cold benchmark with synchronized timing boundaries and reusable fixtures; correctness is required, speedup is not required for closure.
No MLX runtime integration, attention, quantized matmul, or new inference engine. Record compiler/dtype blockers rather than substituting weaker semantics or claiming unrun coverage.
Activity
docs: add cuda-oxide feasibility and initial experiment plan
docs: align the cuda-oxide experiment plan with issue order
docs: document cuda-oxide feasibility and initial experiment plan (#2835
fix(oxide): reject incomplete oracle comparison matrices
feat(mlxcelverse): standalone cuda-oxide fused residual-add + RMSNorm…
feat(core): add an opt-in cuda-oxide route behind fused_add_rms_norm (#…
test(bench): add the cuda-oxide fused-norm benchmark harness
test(bench): benchmark cuda-oxide RMSNorm on GB10 and record the resu…
feat(cuda): make fused add+RMSNorm byte-identical to MLX rms_norm (#3512