Repository navigation
Replies: 1 comment
|
Your snippet is correct, and the one detail that matters most it already gets right: the Two things I would change, and then some numbers on whether it is actually accurate. Use
Does it actually give the right values? I checked this recently on 2×H100 because I wanted So all three agree on CUDA, and your approach is sound. Two caveats from doing it:
If what you want is a file rather than an in-memory dict, |
Uh oh!
There was an error while loading. Please reload this page.
I am using ZeRO3 to train a model. What should I do to obtain all the parameters of the model at a certain stage of training? Is the following code acceptable?
All reactions