Closed Rane90 closed 2 years ago
I've managed to find some "workaround" by setting - TUNE_DISABLE_AUTO_CALLBACK_LOGGERS to 1:
import os
os.environ["TUNE_DISABLE_AUTO_CALLBACK_LOGGERS"] = "1"
Hope this helps others
You can also use a custom function that creates a directory name that is shorter. By setting the trial_dirname_creator
of the tune.run
call. Not sure if you can specify that via the Tuner class though
Hey @jbedorf, thanks for opening an issue!
As you mentioned, I suspect the issue has to do with Window's 260 character path limit.
By setting the trial_dirname_creator of the tune.run call. Not sure if you can specify that via the Tuner class though
You can set trial_dirname_creator
with the _tuner_kwargs
parameter. That said, this is an implementation detail -- it might be removed without warning.
tuner = tune.Tuner(
objective,
...
_tuner_kwargs={
"trial_dirname_creator": trial_dirname_creator
}
)
Closing this issue because you've found a workaround. Feel free to re-open it to continue the discussion!
What happened + What you expected to happen
While running a simple lightgbm cv hpo script taken from your code repo, ray crashed giving the following error:
I assume that this happens because the directory name is too long, and therefore it cannot be created.
Is there any "elegant" way to solve this? lightgbm cannot take other parameter names.
Versions / Dependencies
These are my dependencies:
Reproduction script
This is the script, the only thing I've changed is the parameters for the optimization:
Issue Severity
High: It blocks me from completing my task.