Skip to content

Use torch.multiprocessing instead of multiprocessing module - #970

Merged
fegin merged 2 commits into
gh/fegin/3/basefrom
gh/fegin/3/head
Mar 17, 2025
Merged

fegin merged 2 commits into
gh/fegin/3/basefrom
gh/fegin/3/head

Conversation

@fegin

@fegin fegin commented Mar 17, 2025 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

This is the correct way to do multiprocessing with PyTorch. Otherwise, there may be copy involved during the Queue operations.

[ghstack-poisoned]
[ghstack-poisoned]
@fegin
fegin merged commit 77fca4c into gh/fegin/3/base Mar 17, 2025
fegin added a commit that referenced this pull request Mar 17, 2025
MaxiBoether pushed a commit to eth-easl/torchtitan-mixtera that referenced this pull request Apr 17, 2025
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
@fegin
fegin deleted the gh/fegin/3/head branch June 30, 2026 17:41
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