Skip to content
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

is there plan for releasing code for grad accumulation? #23

Open
grovessss opened this issue Jun 26, 2024 · 4 comments
Open

is there plan for releasing code for grad accumulation? #23

grovessss opened this issue Jun 26, 2024 · 4 comments

Comments

@grovessss
Copy link

No description provided.

@tianweiy
Copy link
Owner

we don't have the code for grad accumulation. You can potentially modify https://github.com/tianweiy/DMD2/blob/main/main/train_sd.py to achieve this though

@grovessss
Copy link
Author

sure thank you! can I ask why simply setting gradient_accumulation_steps=args.gradient_accumulation_steps in accelerator definition doesn't work?

@grovessss
Copy link
Author

thank you very much!

maybe it's not so relevant with your method, but i was wondering with gradient accumulation, is there anything special that needed to be done regarding the optimization at different frequencies process in your method? or can accelerate do it all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants