Skip to content

[TorchTitan] Remove checkpoint folder at the end in test_runner.py - #225

Merged
wz337 merged 8 commits into
pytorch:mainfrom
wz337:remove_checkpoint_folder_test_runner
Apr 12, 2024
Merged

wz337 merged 8 commits into
pytorch:mainfrom
wz337:remove_checkpoint_folder_test_runner

Conversation

@wz337

@wz337 wz337 commented Apr 12, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@wz337
wz337 requested a review from gnadathur April 12, 2024 21:21
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 12, 2024
@wz337
wz337 marked this pull request as ready for review April 12, 2024 21:21
Comment thread test_runner.py Outdated
for test_flavor in test_flavors:
run_test(test_flavor, full_path)

dir_list = glob.iglob(f"{test_checkpoint_dir}_*")

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.

Should we run this logic right after the checkpoint test ? On the scenario where we add more tests that that use checkpoint option, they will not run if the checkpoint exists.

@wz337
wz337 merged commit 95fb97c into pytorch:main Apr 12, 2024
songhappy added a commit to songhappy/torchtitan that referenced this pull request Oct 15, 2026
oneCCL 2022 hangs when a process that hosts a TorchStore storage volume also runs FSDP collectives (oneCCL pytorch#222), and concurrent first weight pulls deadlock in communicator creation (pytorch#225). On XPU the storage volumes therefore run in their own procs, a twin of the trainer mesh on the same devices, and the first pull after setup runs one generator at a time. Both are config fields defaulting to device_type == "xpu", so CUDA is unchanged.
songhappy added a commit to songhappy/torchtitan that referenced this pull request Oct 28, 2026
oneCCL 2022 hangs when a process that hosts a TorchStore storage volume also runs FSDP collectives (oneCCL pytorch#222), and concurrent first weight pulls deadlock in communicator creation (pytorch#225). On XPU, MonarchActorSystem therefore runs the storage volumes in their own procs, a twin of the trainer mesh on the same devices (MonarchActorSystem.Config.storage_volumes_in_own_procs), and the router runs the first pull after setup one generator at a time (InterGeneratorRouter.Config.sequential_initial_pull). Both default to device_type == "xpu", so CUDA is unchanged.
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.

3 participants