Skip to content

Grid search with ray tune#50

Open
cdancette wants to merge 1 commit intoCadene:masterfrom
cdancette:grid-search
Open

Grid search with ray tune#50
cdancette wants to merge 1 commit intoCadene:masterfrom
cdancette:grid-search

Conversation

@cdancette
Copy link
Copy Markdown
Collaborator

@cdancette cdancette commented Jul 1, 2020

Ray tune makes it possible to run grid searches with multiple gpus, and multiple jobs per gpus.

Grid search is called like this:

python -m bootstrap.grid -o <path> --gpu 0.5 --cpu 10

This will run training on all available gpus and cpus, with 10 cpus per training and 0.5 gpus assigned for each training (2 jobs per gpu).

The option file must contain a new option: "gridsearch:" which contains a list of options to modify, and their associated values should be a list containing all the values to test.

See the example file in tests/options-grid.yaml

Note that there is no analysis at the end. This will need an api to get the best results for a given experiment. which exists only as a script for now (compare.py).
But this is not essential given that we already have the compare that does this for us

When this is ready to go, I'll add some documentation

@cdancette cdancette force-pushed the grid-search branch 2 times, most recently from f84d227 to d7071f7 Compare July 1, 2020 21:37
@cdancette cdancette changed the title Grid search Grid search with ray tune Jul 1, 2020
Grid search is called like this:
python -m bootstrap.grid -o <path> --gpu 0.5 --cpu 10

This will run training on all available gpus and cpus, with 10 cpus per
training and 0.5 gpus assigned for each training (2 jobs per gpu).

The option file must contain a new option: "gridsearch:"
which contains a list of options to modify, and their
associated values should be a list containing all the values
to test.

See the example file in tests/options-grid.yaml

TODO: analysis at the end. This will need an api to get the best results
for a given run, which exists only as a script for now (compare.py)
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

Successfully merging this pull request may close these issues.

1 participant