mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
Trainer hyperparameter search kwargs docs update (#34459)
* doc: Trainer.hyperparameter_search docstring discrepancy solved * Apply suggestions from code review Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> --------- Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
This commit is contained in:
parent
dadb286f06
commit
d8a5d31d9c
1 changed files with 11 additions and 6 deletions
|
|
@ -3479,13 +3479,18 @@ class Trainer:
|
|||
hp_name (`Callable[["optuna.Trial"], str]]`, *optional*):
|
||||
A function that defines the trial/run name. Will default to None.
|
||||
kwargs (`Dict[str, Any]`, *optional*):
|
||||
Additional keyword arguments passed along to `optuna.create_study` or `ray.tune.run`. For more
|
||||
information see:
|
||||
Additional keyword arguments for each backend:
|
||||
|
||||
- the documentation of
|
||||
[optuna.create_study](https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.create_study.html)
|
||||
- the documentation of [tune.run](https://docs.ray.io/en/latest/tune/api_docs/execution.html#tune-run)
|
||||
- the documentation of [sigopt](https://app.sigopt.com/docs/endpoints/experiments/create)
|
||||
- `optuna`: parameters from
|
||||
[optuna.study.create_study](https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.create_study.html)
|
||||
and also the parameters `timeout`, `n_jobs` and `gc_after_trial` from
|
||||
[optuna.study.Study.optimize](https://optuna.readthedocs.io/en/stable/reference/generated/optuna.study.Study.html#optuna.study.Study.optimize)
|
||||
- `ray`: parameters from [tune.run](https://docs.ray.io/en/latest/tune/api_docs/execution.html#tune-run).
|
||||
If `resources_per_trial` is not set in the `kwargs`, it defaults to 1 CPU core and 1 GPU (if available).
|
||||
If `progress_reporter` is not set in the `kwargs`,
|
||||
[ray.tune.CLIReporter](https://docs.ray.io/en/latest/tune/api/doc/ray.tune.CLIReporter.html) is used.
|
||||
- `sigopt`: the parameter `proxies` from
|
||||
[sigopt.Connection.set_proxies](https://docs.sigopt.com/support/faq#how-do-i-use-sigopt-with-a-proxy).
|
||||
|
||||
Returns:
|
||||
[`trainer_utils.BestRun` or `List[trainer_utils.BestRun]`]: All the information about the best run or best
|
||||
|
|
|
|||
Loading…
Reference in a new issue