Skip to content

bench: add NVIDIA baselines for L2 forward and training backwards - #158

Open
lukatao wants to merge 2 commits into
flagos-ai:mainfrom
lukatao:feat/flagtrain-training-baseline-coverage
Open

lukatao wants to merge 2 commits into
flagos-ai:mainfrom
lukatao:feat/flagtrain-training-baseline-coverage

Conversation

@lukatao

@lukatao lukatao commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add the Transformer Engine output-only L2 normalization forward baseline.
  • Add Megatron backward baselines and separately selectable FlagTrain benchmarks for MLA RoPE, Router Gating Linear, and Weighted SwiGLU.
  • Reuse the existing workloads and dtypes. Keep forward graph setup and input preparation outside backward timing. Let the collector restore MLA's gradient input outside each timing sample.
  • Check MLA RoPE input gradients against Torch for all 24 backward benchmark workload/dtype pairs.

Validation

  • Optest discovers all four collection modules.
  • All 114 workload and dtype pairs match their corresponding benchmark through the FlagTrain baseline lookup.
  • CPU smoke checks exercised the Torch reference graphs and the pinned upstream adapters with GPU calls mocked.
  • All 24 MLA RoPE gradient cases passed with a CPU mock candidate. Injected incorrect packed FP16 and BF16 gradients were rejected.
  • NVIDIA collection and published baseline JSON updates are pending.

@github-actions github-actions Bot added the tests label Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant