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

Allow manually saving checkpoints #8

Open
stohrendorf opened this issue May 27, 2023 · 4 comments
Open

Allow manually saving checkpoints #8

stohrendorf opened this issue May 27, 2023 · 4 comments

Comments

@stohrendorf
Copy link

Given that it can take quite some time to train 2500 steps, it would be convenient to create manual checkpoints so training can resume from that.

@DanRuta
Copy link
Owner

DanRuta commented May 30, 2023

checkpoints should be written to disk every 50 iterations, not 2500. Unless I'm mis-understanding something

@stohrendorf
Copy link
Author

This looks like 2500 to me (or 50*50), unless I'm misunderstanding something.

grafik

Some of the checkpoints need 1.5 hours or more (I guess it depends on the train data samples length).

@DanRuta
Copy link
Owner

DanRuta commented May 30, 2023

Ah, what is your batch size set to? 1.5 hours sounds like a lot, between checkpoints. Should be a few minutes - depends on your hardware also

@stohrendorf
Copy link
Author

I don't have top-notch hardware, it's an RTX 2060 with 12 GB of VRAM. The batch size which maximizes VRAM usage is 8. Anything above that results in an OOM at some time. I usually see the first checkpoint to be saved after 35-40 minutes, the next one after about 1h15m, and then it stays around 1h30-1h45 for each checkpoint. It's not a rig built for AI, so it's fine if you're not considering it to be an issue. I just like to fool around with AI stuff.

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