# Converstion to Ray 2.0

**URL:** <https://discuss.ray.io/t/converstion-to-ray-2-0/8002>\
**Category:** RLlib\
**Created:** [October 24, 2022, 1:05pm UTC](https://discuss.ray.io/t/converstion-to-ray-2-0/8002 "2022-10-24T13:05:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Username1](https://avatars.discourse-cdn.com/v4/letter/u/ee59a6/32.png) [@Username1](https://discuss.ray.io/u/Username1)\
**Post date:** [October 24, 2022, 1:05pm UTC](https://discuss.ray.io/t/converstion-to-ray-2-0/8002/1 "2022-10-24T13:05:10Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- Low: It annoys or frustrates me for a moment.

**QUESTION 1:**

My question is on how to run RLLIB now. I want to train my MARL agents using PPO and I have seen two ways on the examples:

What is the difference between:  
tuner = tune.Tuner( args.run, param\_space=config, run\_config=air.RunConfig(stop=stop) )  
results = tuner.fit()

and

tune.run(\*\*exp\_dict)

**QUESTION 2:**  
Where should I set these ones now in Ray 2.0? (before I believe they were just params of the config\_dict:

framework=‘tf2’  
eager\_tracing=True  
‘log\_level’: ‘INFO’

Thanks!

---

<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:** [October 25, 2022, 11:25pm UTC](https://discuss.ray.io/t/converstion-to-ray-2-0/8002/2 "2022-10-25T23:25:15Z")

</div>

Hi @Username1 ,

**Question 1:** From RLlib’s perspective, there is no difference. We (the Ray libraries) are consolidating top level APIs and, in the long run, would like to match the common “.fit()” syntax you see in many ML tools.

**Question 2:** They have not changed their place in the config\_dict. But the way you construct a config\_dict is now with the config objects. This is still being updated in our examples and many other places. Have a look at the **current** [RLlib in 60 seconds example](https://docs.ray.io/en/master/rllib/index.html) -

 ![Screenshot 2022-10-25 at 16.24.30](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/2/20108bb2157370f9ad7351536ea448ba3308e6ee.jpeg)  
Just make sure you are look at the **“master”** version (in the bottom right corner) and not “latest”

Cheers
