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

Resuming training #36

Open
artnoage opened this issue Sep 22, 2023 · 8 comments
Open

Resuming training #36

artnoage opened this issue Sep 22, 2023 · 8 comments

Comments

@artnoage
Copy link

I am training a 120M model from scratch because I would like to do some experiments myself. When I stop and try to resume, it requires me to drop the batch size significantly otherwise I get memory error. Any ideas why?

Also please consider making a discord server where people can discuss about the project.

@jzhang38
Copy link
Owner

jzhang38 commented Sep 23, 2023

Hi, Artnoage. If you check the training log I actually resumed the process twice and did not notice any memory error. I am not sure why that is the case on your end.

Thanks for your suggestions on opening a discord. I think I will open one soon.

@artnoage
Copy link
Author

Yes I already knew that. I was just thinking maybe it had to do with the size of the network. like some missed parameter. When you did the first run, did you check the memory usage? If it is not a bit issue please leave the question open for a while, in case someone else tries it.

@jzhang38
Copy link
Owner

When you did the first run, did you check the memory usage?

The memory usage is always 39G on my end.

@dtxwhzw
Copy link

dtxwhzw commented Oct 16, 2023

Hi! My training crashed, and I couldn't find the code to resume training from the last saved checkpoint. How can I resume my training? How do you handle this?

@ChaosCodes
Copy link
Collaborator

Hi! My training crashed, and I couldn't find the code to resume training from the last saved checkpoint. How can I resume my training? How do you handle this?

You can add --resume your_checkpoint.pth term in your pretraining command to resume training

@dtxwhzw
Copy link

dtxwhzw commented Oct 16, 2023

Hi! My training crashed, and I couldn't find the code to resume training from the last saved checkpoint. How can I resume my training? How do you handle this?

You can add --resume your_checkpoint.pth term in your pretraining command to resume training

thanks, i found that

@dustinwloring1988
Copy link

@artnoage can you please post this project I would like to try to he same with 2 4060 training at home.

@artnoage
Copy link
Author

artnoage commented May 20, 2024 via email

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

5 participants