Skip to content

What is the best practice to share a massive CPU tensor over multiple processes in pytorch-lightning DDP mode (read-only + single machine)? #8611

Discussion options

You must be logged in to vote

I found that torch.Storage.from_file suits my needs and it can reduce the memory usage in my Lightning DDP program.
For the way to create a storage file, see here.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@siahuat0727
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by siahuat0727
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants