# How to run tuned example

**URL:** <https://discuss.ray.io/t/how-to-run-tuned-example/7910>\
**Category:** Configure Algorithm, Training, Evaluation, Scaling\
**Created:** [October 15, 2022, 6:44pm UTC](https://discuss.ray.io/t/how-to-run-tuned-example/7910 "2022-10-15T18:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@daniel](https://discuss.ray.io/u/daniel)\
**Post date:** [October 15, 2022, 6:44pm UTC](https://discuss.ray.io/t/how-to-run-tuned-example/7910/1 "2022-10-15T18:44:47Z")

</div>

Is there any way to run the tuned example from Ray? I did not find any instructions or documents regarding this.

> **[ray/rllib/tuned\_examples/ppo at master · ray-project/ray](https://github.com/ray-project/ray/tree/master/rllib/tuned_examples/ppo)**
>
> master/rllib/tuned\_examples/ppo

---

<div class="post-metadata">

**Author:** ![arturn](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/arturn/32/2096_2.png) [@arturn](https://discuss.ray.io/u/arturn)\
**Post date:** [November 30, 2022, 7:33pm UTC](https://discuss.ray.io/t/how-to-run-tuned-example/7910/2 "2022-11-30T19:33:51Z")

</div>

These files have a special syntax.

Today, you can do something like. `python rllib/tests/run_regression_tests.py --dir tuned_examples/ppo/cartpole-ppo.yaml`. This is mainly for our CI.

But you can copy these files and modify them a little to get just the AlgorithmConfig itself. Then use `rllib.utils.from_config.from_file` to generate a config from it.

Be aware that our configs are currently changing and we will soon provide these examples as actual Python config files that hold define AlgorithmConfig objects, rather than yamls.

---

<div class="post-metadata">

**Author:** ![arturn](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/arturn/32/2096_2.png) [@arturn](https://discuss.ray.io/u/arturn)\
**Post date:** [December 1, 2022, 7:52pm UTC](https://discuss.ray.io/t/how-to-run-tuned-example/7910/3 "2022-12-01T19:52:39Z")

</div>

Adding to this: Our new CLI makes the following possible:

`rllib train file tuned_examples/ppo/cartpole-ppo.yaml`

You can also pass a URI.
