Closed Yullj closed 9 months ago
How to set the tune.yaml, to find the best lr at 4 nvidia gpu devices?
`defaults:
trainer: gpus: 1 # tuning with DDP is not yet supported.
tune: num_samples: 10 gpus_per_trial: 1 lr: min: 1e-4 max: 2e-3 resume_dir: null
hydra: run: dir: rayresults/${model.name}/${now:%Y-%m-%d}${now:%H-%M-%S}`
Set CUDA_VISIBLE_DEVICES=0,1,2,3 when you run tune.py. It would run four trials in parallel.
CUDA_VISIBLE_DEVICES=0,1,2,3
tune.py
How to set the tune.yaml, to find the best lr at 4 nvidia gpu devices?
`defaults:
trainer: gpus: 1 # tuning with DDP is not yet supported.
tune: num_samples: 10 gpus_per_trial: 1 lr: min: 1e-4 max: 2e-3 resume_dir: null
hydra: run: dir: rayresults/${model.name}/${now:%Y-%m-%d}${now:%H-%M-%S}`