Skip to content

DO NOT SUBMIT: WIP: Try to use monarch to run torchtitan. #1286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ahmadsharif1
Copy link

@ahmadsharif1 ahmadsharif1 commented Jun 12, 2025

Repro:

clear; TORCHFT_LIGHTHOUSE=localhost:12333  WORLD_SIZE=8 python -m torchtitan.train_monarch --job.config_file ./torchtitan/models/llama3/train_configs/llama3_8b.toml

This can run torchtitan for 10 steps or so before my GPUs OOM

Repro:

GROUP_WORLD_SIZE=1 WORLD_SIZE=2 python -m torchtitan.train_monarch \
--job.config_file \
./torchtitan/models/llama3/train_configs/llama3_8b.toml

Currently there is an error:

KeyError: "Invalid mesh_dim_names ('dp_cp',) specified. Valid mesh_dim_names are ['dp_shard']."
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants