Back to projects

Oct 22, 2026

Dino Runner World Model

Another world-model implementation: an agent that learns to play Chrome's dinosaur game from a learned latent model.

PyTorchWorld modelsVAEMDN-RNNCMA-ES

A World Models (Ha and Schmidhuber) agent for Chrome's offline dinosaur game. A convolutional VAE compresses frames to a 32-dimensional latent, an MDN-RNN predicts the next latent given the action, and a small linear controller over the latent and hidden state is trained with CMA-ES.

The repo includes the game environment, data collection scripts, training scripts, and the scripts for the blog diagrams and training plots.