Skip to content

[docs] Replace the removed torchtitan_train command - #5013

Merged
tianyu-l merged 3 commits into
pytorch:mainfrom
YeonwooSung:pr/docs-train-entrypoint
Oct 2, 2026
Merged

tianyu-l merged 3 commits into
pytorch:mainfrom
YeonwooSung:pr/docs-train-entrypoint

Conversation

@YeonwooSung

@YeonwooSung YeonwooSung commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Override examples still tell users to run torchtitan_train. That Tyro-era command is gone after the config loader: it is not a script, entry point, or module, so copy-pasting those examples fails today. The real entry is python -m torchtitan.train, with the same --module, --config, and --override flags, including the quoted JSON override form.

Test plan

  • Read torchtitan/config/OVERRIDE.md and torchtitan_recipes/overrides/helion_rope.py. The examples invoke python -m torchtitan.train.

@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Oct 2, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 2, 2026
@pytorch-bot

pytorch-bot Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

# This file names the removed command so it can reject it. Once the test is
# tracked, git grep reports that name here; any other path is still a failure.
_THIS_TEST = "tests/unit_tests/cpu/test_train_entrypoint_docs.py"
_REMOVED_COMMAND = "torchtitan_train"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could you remove this test? sounds useless to include history

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed tests/unit_tests/cpu/test_train_entrypoint_docs.py in 32dc57a. That test only recorded the removed torchtitan_train name. OVERRIDE.md and torchtitan_recipes/overrides/helion_rope.py still invoke python -m torchtitan.train.

@tianyu-l
tianyu-l merged commit cc87697 into pytorch:main Oct 2, 2026
@YeonwooSung
YeonwooSung deleted the pr/docs-train-entrypoint branch October 2, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/fake-pg Run 1-GPU Fake PG integration tests 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