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

Integration with Hydra #550

Open
felixkreuk opened this issue Mar 7, 2021 · 2 comments
Open

Integration with Hydra #550

felixkreuk opened this issue Mar 7, 2021 · 2 comments

Comments

@felixkreuk
Copy link

felixkreuk commented Mar 7, 2021

Hi,

I'm trying to use Keepsake along with Hydra (www.hydra.cc). Hydra changes the working directory of each experiment to a new path (e.g., /runs/exp_lr=0.1_dropout=0.2). So when trying to call keepsake.init I get an error that there's not keepsake.yaml file in the working directory (because it is changed by Hydra). It's not possible to call keepsake.init with an absolute path according to the docs. Did someone got keepsake to play along with hydra?

Thanks

Edit: OK, I was able to use the Project class to specify the paths manually, and then use the CLI with the -D flag to specify the path. I think that allowing the absolute path in keepsake.init will be much easier. Am I missing something here?

@lkhphuc
Copy link

lkhphuc commented Mar 17, 2021

In the latest version, I was able to run keepsake with hydra by simply add repository: file://.keepsake in the keepsake.yaml in the root directory, not the one created for each run by hydra.

However I was wondering about the best practice for intergrating these two.
Hydra manage different run by creating a directory for each run and by default all the output (logs, checkpoints, hparams) are dumped into that folder.
Keepsake did a similar thing, by compressing the entire root directory and stored it in repository: ....
As far as I understand, in keepsake you're supposed to overwrite the run's output at every experiment and every checkpoints, so when zipped into .keepsake there will be no duplication of artifacts from other runs.
This seems to be in contradiction with hydra-managed output directory, right?

@zeke
Copy link
Member

zeke commented Mar 15, 2022

Hi @felixkreuk and @lkhphuc

The Keepsake project is no longer actively maintained. If you're interested in helping maintain it, please let us know.

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

3 participants