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

[Feature] Continue fine-tuning after the training has been interrupted #1237

Open
hschaeufler opened this issue Feb 1, 2025 · 0 comments
Open

Comments

@hschaeufler
Copy link
Contributor

Feature request as discussed with @awni in discussion 997.

I often had the problem that I had to interrupt the training and then had to start the training all over again. With --resume-adapter-file the training for an existing adapter can be continued. The problem is that the training is not continued where it stopped before. You can reduce the steps accordingly and shuffle the data set. The problem is that I use cosine_decay as learning-rate scheduler with certain values for warmup (309 steps), warmup-init (0) etc. This means that the training starts again at the initial values and do not follow the intended curve. It would be a cool feature if it were possible to take the number of steps already performed from the name of the adapter file or pass it along. MLX could then calculate the continuation point and continue the training with the appropriate learning rate and record from the training set.

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

1 participant