Skip to content

Add tech-report reference scripts to src/examples/olmo_ddp - #899

Merged
AkshitaB merged 3 commits into
mainfrom
tianhua/tech-report-scripts
Oct 1, 2026
Merged

AkshitaB merged 3 commits into
mainfrom
tianhua/tech-report-scripts

Conversation

@TianhuaTao

@TianhuaTao TianhuaTao commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the remaining training entry points behind the Olmo-core MoE tech report, Supercharging Olmo-core for Efficient and Scalable MoE Training, so that every reported configuration has a reference script in src/examples/olmo_ddp/. #844 already added the eight production scripts; this PR adds the rest. There are no library code changes.

Per-row variants of the headline throughput results (each a copy of its base script with only the named constants changed). The headline rates use random expert routing, whereas the existing Tiny/Small scripts default to learned routing:

  • OLMoE3-dev-t001-random.py, OLMoE3-dev-s001-random.py, OLMoE3-dev-s001-random-16mi.py
  • OLMoE3-dev-m001-64e-16mi.py (Medium-64E)
  • OLMoE3-dev-l001-pp8-24mi.py

Ported from the pre-merge moe-v2-core API (experiment settings unchanged; only the API surface changed):

  • Eight-layer DDP vs. FSDP/HSDP benchmark: moe_8l_fsdp.py, dense_8l_ddp.py
  • EP transport profiles: moe_8l_ep8_{sync,rowwise,deepep_v2}_profile.py, their *_no_shared variants, moe_8l_ep1_no_shared_profile.py, and moe_6l_ep8_{rowwise,deepep_v2}_mxfp8_no_shared_profile.py
  • Load-balancing-loss weight runs (Token Gerrymandering): moe_8l_ddp_lbl_0p{02,20}.py, moe_10l_ddp_lbl_0p{05,50}.py, moe_10l_ddp_lbl_0p50_shared.py

Also included

  • src/examples/olmo_ddp/README.md: maps each reported result to its script, with launch requirements and porting notes.
  • src/test/examples/olmo_ddp_tech_report_test.py: CPU-only config-build checks. They build model, train-module, and trainer configs without instantiating models or touching GPUs, data, or the network, and they pin the reported parameter counts, batch sizes, parallel degrees, and routing.

Notes

  • These are reference scripts released alongside the report.
  • The branch is up to date with current main (merged 2026-09-30, no conflicts); it still only adds the 23 files above. The CPU config-build test runs in CI against current main.
  • Two-batch overlap (the tbo schedule) is not supported on main, so the report's TBO result cannot be reproduced from these scripts.

Collect every training entry point used by the OLMo-core MoE tech report
("Supercharging OLMo-core for Efficient and Scalable MoE Training") next to the
production scripts already merged in #844.

Ported from the pre-merge moe-v2-core API (experiment settings unchanged):
- eight-layer DDP vs FSDP/HSDP benchmark: moe_8l_fsdp.py, dense_8l_ddp.py
- EP transport profiles: moe_8l_ep8_{sync,rowwise,deepep_v2}_profile.py,
  their *_no_shared variants, moe_8l_ep1_no_shared_profile.py, and
  moe_6l_ep8_{rowwise,deepep_v2}_mxfp8_no_shared_profile.py
- load-balancing-loss weight runs: moe_8l_ddp_lbl_0p{02,20}.py,
  moe_10l_ddp_lbl_0p{05,50}.py, moe_10l_ddp_lbl_0p50_shared.py

The port only changes API surface (sequence_mixer/layer_norm block fields,
head_dim instead of d_attn, explicit CliContext/build_config/train entry point).
Each ported script builds a config identical to its pre-merge version: active
and total parameters, layers, dense blocks, EP path and schedule, router,
global batch, rank microbatch, EP/PP degrees, optimizer, duration, callbacks.

New entry points for reported operating points that had no script of their own
(each a copy of its base script with only the named constants changed):
OLMoE3-dev-t001-random.py, OLMoE3-dev-s001-random.py,
OLMoE3-dev-s001-random-16mi.py, OLMoE3-dev-m001-64e-16mi.py,
OLMoE3-dev-l001-pp8-24mi.py.

README.md maps every reported operating point and experiment to its script.
src/test/examples/olmo_ddp_tech_report_test.py builds every entry point on CPU
and pins the reported parameter counts, batch sizes, parallel degrees, and
routing for the production operating points.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b665c278e6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

src/examples/olmo_ddp/<script>.py RUN_NAME [OVERRIDES...]
```

or, on Beaker, `python -m olmo_core.launch.beaker ... -- <script>.py RUN_NAME`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Specify GPU and node counts in Beaker command

The documented Beaker invocation leaves out the required resource flags, so following it with no extra options submits the generic launcher defaults of 0 GPUs and 1 node. These CUDA training scripts will not run in that allocation, and production recipes also require the per-script REF_NUM_NODES; provide a concrete command with at least --gpus 8 --nodes N (and the intended cluster) before the -- separator.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: deb0811028

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

src/examples/olmo_ddp/<script>.py RUN_NAME [OVERRIDES...]
```

or, on Beaker, `python -m olmo_core.launch.beaker ... -- <script>.py RUN_NAME`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include the example path in the Beaker command

The generic launcher preserves the command path and only prepends python for a .py target (src/olmo_core/launch/beaker.py:629-632), so this invocation attempts python <script>.py RUN_NAME rather than the file under src/examples/olmo_ddp. The repository’s own generic-launcher example supplies the repository-relative path (docs/source/guides/all_in_one_for_researchers.md:169-174); following this README command will therefore fail to open every example script. Use src/examples/olmo_ddp/<script>.py after --.

Useful? React with 👍 / 👎.

@AkshitaB
AkshitaB merged commit 56c04b8 into main Oct 1, 2026
24 checks passed
@AkshitaB
AkshitaB deleted the tianhua/tech-report-scripts branch October 1, 2026 06:04
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

This PR has been released in v3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants