# The example pendulum-mbmpo.yaml gives an error when I run it

**URL:** <https://discuss.ray.io/t/the-example-pendulum-mbmpo-yaml-gives-an-error-when-i-run-it/11940>\
**Category:** Debugging and performance tuning\
**Created:** [August 25, 2023, 6:59am UTC](https://discuss.ray.io/t/the-example-pendulum-mbmpo-yaml-gives-an-error-when-i-run-it/11940 "2023-08-25T06:59:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Filimonov](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sergey_filimonov/32/4708_2.png) [@Sergey\_Filimonov](https://discuss.ray.io/u/Sergey_Filimonov)\
**Post date:** [August 25, 2023, 6:59am UTC](https://discuss.ray.io/t/the-example-pendulum-mbmpo-yaml-gives-an-error-when-i-run-it/11940/1 "2023-08-25T06:59:31Z")

</div>

At first, when I run tuned exampl example pendulum-mbmpo.yaml, it always returns the error message:  
(MBMPO pid=3356237) RuntimeError: split\_with\_sizes expects split\_sizes to sum exactly to 32 (input tensor’s size at dimension 0), but got split\_sizes=[30]

I’ve found that this is easily fixed by changing the num\_workers to 1 or 2.  
But right now my task never runs:  
╭──────────────────────────────────────────────────────────╮  
│ Trial name status │  
├──────────────────────────────────────────────────────────┤  
│ MBMPO\_ray.rllib.examples.env.mbmpo\_env.PendulumWrapper\_ed61e\_00000 PENDING │  
╰──────────────────────────────────────────────────────────╯

I used command to run: rllib train --local-mode file tuned\_examples/mbmpo/pendulum-mbmpo.yaml

Even when I follow Installation guide commands and run simple example:  
$ conda create -n rllib python=3.8  
$ conda activate rllib  
$ pip install “ray[rllib]” torch “gym[atari]” “gym[accept-rom-license]” atari\_py  
$ # Run a test job:  
$ rllib train --run APPO --env CartPole-v0 --torch

I get error:  
No such option: --torch (Possible options: --restore, --stop, --trace)

This happens on both Ubuntu 22.04 and WSL2. I use ray, version 2.6.3

What should I do to use this ray example with MBMPO？
