# Hyperparameter\_search does not log params after first trial

**URL:** <https://discuss.huggingface.co/t/hyperparameter-search-does-not-log-params-after-first-trial/4154>\
**Category:** 🤗Transformers\
**Created:** [March 4, 2021, 3:52pm UTC](https://discuss.huggingface.co/t/hyperparameter-search-does-not-log-params-after-first-trial/4154 "2021-03-04T15:52:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deppen8](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/deppen8/32/516_2.png) [@deppen8](https://discuss.huggingface.co/u/deppen8)\
**Post date:** [March 4, 2021, 3:52pm UTC](https://discuss.huggingface.co/t/hyperparameter-search-does-not-log-params-after-first-trial/4154/1 "2021-03-04T15:52:46Z")

</div>

I am using `Trainer.hyperparameter_search` with the `optuna` backend in `transformers 3.5.1`. When I run a search, the model params (`./mlruns/0/<ID>/params/`) are only logged for the first trial but none of the trials after that. The model metrics are logged normally in `./mlruns/0/<ID>/metrics/` for all trials.

Is there a way to get the params to be logged? I’d like to automate some analysis and visualization and it would help to have those param values available in the `./mlruns/0/<ID>/` directory.
