Skip to content

GEMM parity residuals: lm_head fwd at ~0.895, FEED bandwidth term (low priority) #87

Open

Description

@feitreim

Follow-up to #80, closed at mean 0.939 / 12-of-14 rows ≥0.90 after #86. Parked here for a future revisit; nothing below is urgent.

What remains

  • lm_head fwd 24576×3072×50432 (bf16 store) at 0.895 session-mean — half a point under the bar, and the noisiest row in the table (0.863–0.933 across sessions; absolute throughput beat main in every session). First step on any revisit: more sessions to establish whether the true mean is already ≥0.90.
  • The remaining exposed term is FEED, ~12% of a K=3072 item (phase probe, post-One CTA an SM, six K stages and two accumulators: the configuration cuBLASLt runs (#80) #86: FILL 118 ticks, ACC 100, feed the rest). Six stages costs 196 608 B of the 232 448 B opt-in — there is no room for a seventh, so further progress is a bandwidth/staging question (smaller stages? different B staging discipline?), not scheduling.
  • Second borderline bf16 row (bwd lm_head dx) shares the same session noise; same first step.

Instruments and controls (all preserved)

  • 80-pingpong-probe — clock64 phase probe with ping-pong behind a const (one-binary before/after)
  • 80-forensics — depth-sweep fixed-vs-slope fit (bin/budget.rs), cuBLASLt config describe
  • report_residency in the gemm bin (merged, Residency is measured, and cuBLASLt's configuration is read (#80) #85) — note cuOccupancyMaxActiveClusters returns floor(SMs/cluster-CTAs) for required-cluster kernels, NOT residency
  • Controls: 80-deep-ring (deep ring alone), 80-ping-pong (increment 1 alone), 80-column-halves, 80-narrow-tile, 80-split-chain-fixed, 80-stagger-probe, 80-mcast-cluster, ferro ws shallow arm
  • The Training-step GEMMs vs cuBLASLt: ~35 ms/step gap, one epilogue mechanism #80 thread holds the full route history: what was tried, what each cost, and why each closed — read it before opening any new route here.

Measurement discipline that must survive

  • model_shapes with --features cublas, two sessions minimum, report means
  • compare_profile emits four profiles; only the === baseline ===/=== candidate === pair is the measurement; cross-check step delta against the GEMM-row sum
  • MoE overfit assert is nondeterministic through scatter atomics; rerun once before diagnosing

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions