# How to use Tune (ray) with Guild

**URL:** <https://guildai.org/t/how-to-use-tune-ray-with-guild/448>\
**Category:** General\
**Created:** [November 11, 2020, 11:54pm UTC](https://guildai.org/t/how-to-use-tune-ray-with-guild/448 "2020-11-11T23:54:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![garrett](https://yyz1.discourse-cdn.com/flex031/user_avatar/guildai.org/garrett/32/224_2.png) [@garrett](https://guildai.org/u/garrett)\
**Post date:** [November 12, 2020, 12:22am UTC](https://guildai.org/t/how-to-use-tune-ray-with-guild/448/2 "2020-11-12T00:22:27Z")

</div>

There’s been a bit of needle moving on this front. There’s an example that uses Hyperopt TPE for sequential optimization:

> [@Hyperopt Example](https://guildai.org/t/hyperopt-example/225):
>
> Overview This [example](https://github.com/guildai/guildai/tree/master/examples/hyperopt) illustrate how to create a custom optimizer using Hyperopt. Follow the patterns outlined below to use other sequential tuning algorithms with your project. Project files: [guild.yml](https://github.com/guildai/guildai/blob/master/examples/hyperopt/guild.yml) Project Guild file [train.py](https://github.com/guildai/guildai/blob/master/examples/hyperopt/train.py) Sample training script [tpe.py](https://github.com/guildai/guildai/blob/master/examples/hyperopt/tpe.py) Optimizer support using Tree of Parzen Estimators with Hyperopt [requirements.txt](https://github.com/guildai/guildai/blob/master/examples/hyperopt/requirements.txt) List of required libraries An [optimizer](https://guildai.org/docs/optimization) is a Guild operation that specializes in running multiple trials based on a batch prototype. I…

Using Tune or another library (e.g. the excellent [Optuna](https://optuna.org/) lib) should be a matter of following the pattern used by this example.

---

_[View the full topic](https://guildai.org/t/how-to-use-tune-ray-with-guild/448)._
