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

Support for circular dependencies - eg have model as both input and ouput of train stage #4724

Closed
davesteps opened this issue Oct 14, 2020 · 6 comments
Labels
awaiting response we are waiting for your reply, please respond! :) feature request Requesting a new feature

Comments

@davesteps
Copy link

It quite common when training deep learning models not to start training from scratch every time but rather use a previous model as initial starting weights. For example you may train an basic model then make some adjustments to your training data or your loss function or adjust some other parameter and continue training.

I am currently using a solution suggested on the forum of using import to import a previous version of my model. However, it was also suggested that a better solution could be supported where the model object could be both an input and output of your train stage.

The original question for more context:
https://discuss.dvc.org/t/use-previous-version-of-model-as-initial-weights/525/2

@karajan1001
Copy link
Contributor

I have the same problem. Currently, I didn't put model into the dependency of the train stage and just maintain it manually.

@efiop
Copy link
Contributor

efiop commented Oct 19, 2020

@davesteps @karajan1001 We have an upcoming experimental feature for experiment checkpoints #4498 , maybe it would be useful in your scenario as well?

@efiop efiop added awaiting response we are waiting for your reply, please respond! :) feature request Requesting a new feature labels Oct 19, 2020
@davesteps
Copy link
Author

@efiop It sounds like the checkpoints feature is very close to what I would like to achieve. I'm certainly willing to give it a try when it is available. I also wasn't aware of the --outs-persist option which could be useful. Thanks.

@efiop
Copy link
Contributor

efiop commented Oct 22, 2020

@davesteps There is no official documentation yet and it is still an experimental feature, but we have a wiki for it https://github.com/iterative/dvc/wiki/Experiments#checkpoint-experiments . Feel free to give it a try 🙂

@efiop
Copy link
Contributor

efiop commented Apr 14, 2021

@davesteps Checkpoints have been released in 2.0, did you have a chance to try them?

@efiop efiop closed this as completed Apr 26, 2021
@efiop
Copy link
Contributor

efiop commented Apr 26, 2021

Closing as stale for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response we are waiting for your reply, please respond! :) feature request Requesting a new feature
Projects
None yet
Development

No branches or pull requests

3 participants