-
Notifications
You must be signed in to change notification settings - Fork 6k
During multi-gpus training, each card will execute the cache text embedding operation once? #4089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry, I'm not sure which training script this code is in? @pixeli99 |
hi, @williamberman
My question is whether this code can be selectively executed. If I have to cache these embeddings, it will consume approximately 1TB of my hard drive space, and my dataset size is 500K. Whether this consumption is normal, and I find that it seems that every GPU will execute this cache, which is very strange. Of course, it may be that I understand it incorrectly |
Ah yes understood, unfortunately I as well am not really familiar with the semantics here of what datasets and accelerate are actually doing. See some of my questions here #4038 (comment) @sayakpaul probably understands better |
There's an answer here by @lhoestq: #4038 (comment) Also ccing @muellerzr for additional insights in case. |
Ah yes, super helpful @pixeli99 ! So @sayakpaul I believe if you follow up on my comment here #4038 (comment) it should fix this. It looks like it's re doing the same computation on all processes and re-caching the results. Manually telling datasets a hash key will fix this :) |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Each card will execute the above code during training, which will occupy too much disk space. Is this unreasonable? Or is it possible that I have misunderstood because currently, a fill50k training requires 15*8GB of storage space when using 8 cards.
The text was updated successfully, but these errors were encountered: