facebookresearch / dora

Dora is an experiment management framework. It expresses grid searches as pure python files as part of your repo. It identifies experiments with a unique hash signature. Scale up to hundreds of experiments without losing your sanity.
MIT License
269 stars 24 forks source link

Run a grid experiment for the first time #49

Closed alexisthual closed 1 year ago

alexisthual commented 1 year ago

❓ Questions

When debugging an implementation, I don't want to launch a full grid but a single experiment of this grid instead.

Therefore, I list all experiments of my grid with dora grid mygrid --dry_run, select an experiment id mysig from this grid and launch it with dora run -f mysig. Unfortunately, this raises FATAL: Could not find an existing run with sig mysig. I get the same error with dora launch -f mysig.

In order to circumvent this, what I do is I launch all experiments of my grid with dora grid mygrid and cancel them right after with dora grid mygrid --cancel.

Is there a more direct way to launch an experiment for the first time?

adefossez commented 1 year ago

You just need to add --init after --dry_run, otherwise the grid command writes nothing to disk!