Skip to content

Benchmark cuda-oxide RMSNorm and record the adoption decision #2834

Done

Description

@inureyes

Problem / Background

The experiment must distinguish kernel quality from MLX integration cost before expanding scope. Depends on #2833; reuse artifacts and numerical fixtures from #2832.

Design: feasibility review, added in #2835 and docs/benchmarks.md.

Proposed Solution

Produce a reproducible comparison and a go/no-go report for the default-off fused-normalization path. Freeze checkpoint revision, prompts, tolerances, timing method, and acceptance thresholds before collecting results.

Acceptance Criteria

  • Compare the same oxide artifact standalone and through MLX, plus the existing fused CUDA baseline; use matching dtype/shape/geometry and separate module load, cold compilation, warm kernel latency, and end-to-end time.
  • Select one supported real text checkpoint that reaches this operation; verify route markers and capture intermediate/logit error and greedy output behavior with the existing path as oracle.
  • Measure B=1 and a small batch, prefill/decode, short/long prompts, peak memory, and repeated-run variance on GB10 under gpu-lock; commit raw results, commands, versions, and artifact hashes.
  • Profile launch/synchronization costs, registers/spills, and memory traffic sufficiently to support any claimed bottleneck; do not infer MLX overhead from unmatched timings.
  • Apply the review's proposed criteria: correctness passes, no unexplained end-to-end regression above 2% outside noise, and either useful >=10% kernel improvement, cold-start reduction, or a justified maintenance benefit. Document any threshold adjustment before measurement.
  • Record one disposition: expand within MLX, investigate a demonstrated execution constraint, resolve toolchain limitations, or stop. A measured negative result can close this investigation; absent hardware evidence cannot.

Do not enable by default or implement an independent engine. A normalization result is not evidence for attention, quantized GEMM, or whole-engine performance.

Activity

  1. added
    status:blocked
    type:test
    priority:medium
    area:benchmark
    platform:linux
    on Nov 2, 2026
  2. added
    status:ready
    status:in-progress
    and removed
    status:blocked
    status:ready
    on Nov 27, 2026
  3. 6 remaining items

  4. added
    status:review
    and removed
    status:in-progress
    on Nov 27, 2026
  5. added 2 commits that reference this issue on Nov 27, 2026
  6. added
    status:done
    and removed
    status:review
    on Nov 27, 2026
  7. added 3 commits that reference this issue on Nov 27, 2026
  8. added this to the 0.9 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:benchmarkplatform:linuxpriority:mediumstatus:donetype:test

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions