Framework
Remote
Running environments on other machines instead of your local one.
If you're running everything on one machine, you can ignore this page.
This part of Gym Anything is for the case where environments run on other machines and your code talks to them over the network.
When You Need This
Use the remote setup when:
- you have multiple machines for experiments
- environments are too heavy to run on your laptop
- you want one machine to manage work across several workers
The Basic Idea
The remote setup has three pieces:
- a master server that routes requests
- one or more worker servers that actually run environments
- a remote client called
RemoteGymEnv
The Main Commands
The main server commands are:
gym-anything-mastergym-anything-workergym-anything-dashboard
Python Usage
From Python, the remote client looks like this:
from gym_anything import RemoteGymEnv
env = RemoteGymEnv.from_config(
remote_url="http://localhost:5800",
env_dir="benchmarks/cua_world/environments/moodle_env",
task_id="enroll_student",
)After that, the flow is similar to a local environment:
reset()step(...)close()