optuna: Pruning & Pytorch (Possible Bug)

Expected behavior

I accidentally posted htis in optuna/examples. I think it probably should be here, but I can’t delete it, so I’ll link to the full description of the issue here: https://github.com/optuna/optuna-examples/issues/219

The tldr is that I cannot get optuna to prune trials in the context of a model that uses the pytorch lightning trainer.

It may be I’ve misunderstood the example instructions for how to do this, but it may also be that this integration isn’t fully working in light of recent updates. If someone could look into this and provide some guidance, I would really appreciate it.

Environment

Optuna version: 3.4.0
Python version: 3.11.5
OS: Windows 10 Enterprise
gluonTS version: 0.13.7
lighning version: 2.1.0
pytorch-lightning version: 2.1.0
torch version: 2.1.0

Error messages, stack traces, or logs

None - just no trials are pruned.

Steps to reproduce

Please see: https://github.com/optuna/optuna-examples/issues/219

Additional context (optional)

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (11 by maintainers)

Most upvoted comments

Thanks, but it is not minimal and reproducible (the script defines only a part of objective func).