Description
The MBPO (Model-Based Policy Optimization) GitHub repository serves as the official code release for the research paper titled "When to Trust Your Model: Model-Based Policy Optimization." This project offers a comprehensive implementation of model-based reinforcement learning algorithms, specifically focusing on optimizing policies by leveraging learned models of the environment. Researchers and practitioners can utilize this codebase to replicate the experimental results presented in the paper, fostering transparency and reproducibility in the field of artificial intelligence and machine learning.
Read More
The repository includes detailed instructions for installation, which involves setting up MuJoCo, cloning the repository, and creating a dedicated conda environment with necessary dependencies. Users can then run experiments using provided configuration files, with support for local execution and GPU acceleration. The codebase is structured to facilitate easy modification and extension, allowing users to adapt it for new environments or algorithmic variations.
Key functionalities include the ability to define and train environment models, use these models for policy optimization, and log experimental runs using the integrated Viskit visualization tool. The project also details how to configure hyperparameters, such as the rollout length schedule, and offers options to adjust training frequency and model training timeouts for performance tuning. The authors acknowledge the contributions from the softlearning and PETS codebases, highlighting the collaborative nature of AI research.
This resource is particularly valuable for researchers in reinforcement learning, machine learning engineers, and graduate students seeking to deepen their understanding of model-based approaches. By providing direct access to the implementation, the MBPO repository empowers the community to experiment with advanced RL techniques, explore new research directions, and contribute to the advancement of intelligent systems.
- CategoryAI Models & LLMs
- Pricing ModelOpen source
- DeploymentCloud, Self-hosted
- PlatformsWeb
Model-Based Policy Optimization's Core Features
Code for "When to Trust Your Model: Model-Based Policy Optimization" paper
Implementation of Model-Based Policy Optimization (MBPO) algorithms
Environment model learning and policy optimization capabilities
Reproducibility of research experiments
Support for MuJoCo environments
Integration with Viskit for logging and visualization
Configurable rollout length schedules
Options for model training frequency and timeouts
Extensible codebase for new environments and modifications
Dependencies managed via conda environment file
Example configuration files for running experiments
Clear installation and usage instructions
Getting Started with Model-Based Policy Optimization
Install MuJoCo: Set up MuJoCo 1.50 at ~/.mujoco/mjpro150 and place your license key at ~/.mujoco/mjkey.txt.
Clone Repository: Obtain the code by running 'git clone --recursive https://github.com/jannerm/mbpo.git'.
Create Environment: Set up a conda environment using 'environment/gpu-env.yml' and activate it.
Install Dependencies: Install the project and its dependencies using 'pip install -e viskit' and 'pip install -e .'.
Configure Experiments: Modify or select configuration files from 'examples/config/' for desired settings.
Run Experiments: Execute experiments locally using commands like 'mbpo run_local examples.development --config=examples.config.halfcheetah.0 --gpus=1 --trial-gpus=1'.
Visualize Results: View saved runs using Viskit by running 'viskit ~/ray_mbpo --port 6008' (adjust log_dir if needed).
Model-Based Policy Optimization's Use Cases
- Reinforcement Learning Research
- Algorithm Development
- Robotics Simulation
- Autonomous Systems
- Hyperparameter Tuning
- Environment Modeling









