profile.yaml 711 B

12345678910111213141516171819202122232425262728293031
  1. # @package _global_
  2. # Run the Pytorch profiler
  3. trainer:
  4. profiler:
  5. _target_: pytorch_lightning.profilers.PyTorchProfiler
  6. dirpath: ${hydra.run.dir}
  7. schedule:
  8. _target_: torch.profiler.schedule
  9. wait: 5
  10. warmup: 5
  11. active: 5
  12. use_cuda: True
  13. max_steps: 20
  14. logger:
  15. wandb:
  16. mode: disabled
  17. callbacks:
  18. model_checkpoint: null
  19. model_checkpoint_progress: null
  20. early_stopping: null
  21. hydra:
  22. # sets output paths for all file logs to 'logs/profile/'
  23. run:
  24. dir: ${oc.env:RESULT_DIR,${work_dir}/logs}/profile/${now:%Y-%m-%d}/${now:%H-%M-%S}
  25. sweep:
  26. dir: ${oc.env:RESULT_DIR,${work_dir}/logs}/profile/multirun_${now:%Y-%m-%d_%H-%M-%S}
  27. subdir: ${hydra.job.num}