Skip to content

WIP: Try to use monarch to run torchtitan. #1288

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 5 commits into
base: main
Choose a base branch
from

Conversation

ahmadsharif1
Copy link

@ahmadsharif1 ahmadsharif1 commented Jun 12, 2025

Repro:

source dev/xl_conda.sh activate xlformers_llama4_flagship_conda:latest_conveyor_build
git clone https://github.com/pytorch/torchtitan.git
cd torchtitan
pip install -r dependencies.txt

python scripts/download_tokenizer.py --repo_id meta-llama/Meta-Llama-3.1-8B --tokenizer_path "original" --hf_token=$HF_TOKEN

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']."

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