Trainer.hyperparameter_search
kwargs
parameter has an inexact definition if using Optuna
#34239
Labels
Trainer.hyperparameter_search
kwargs
parameter has an inexact definition if using Optuna
#34239
According to the docs, those
kwargs
will only be used in thecreate_study
method in Optuna.However that is not exactly true, as we can see in
run_hp_search_optuna
. Some parameters from thosekwargs
will end up being used in theoptimize
method (which is great because it is what I wanted to do but the docs said I could not do it).transformers/src/transformers/integrations/integration_utils.py
Line 256 in b54109c
transformers/src/transformers/integrations/integration_utils.py
Line 261 in b54109c
I didn't check ray or sigopt but I guess that something similar can be happening.
I don't really know what would be a good solution given that not every parameter in
optimize
is used and creating akwargs_optimize
would not make sense given that you support 2 other backends. Maybe a simple list of accepted paramters in the docstring?If you tell me what solution would be the best, I could send a PR.
@stevhliu
The text was updated successfully, but these errors were encountered: