HomeNews

TinyWorldformer Runs Transformer World Model on $7 Pico 2 W

Anupam
Anupam
•
Oct 30, 2026 5:38 PM
•
0
 min read
Select Emergent as your Preferred news source
TinyWorldformer Runs Transformer World Model on $7 Pico 2 W

💡 TL;DR

  • TinyWorldformer pairs a 26K-131K parameter looped transformer world model with a 9K-16K parameter actor policy, both running on a $7 Raspberry Pi Pico 2 W.
  • Five games ship with exact-frame accuracy ranging from 83.6% on Doom-lite to 100% on Flappy Bird, using int8 quantization and 2-8M multiply-adds per frame.
  • The entire system fits in 361-600KB flash and 227-460KB SRAM, trained with quantization-aware methods and Stream AC(λ) reinforcement learning.

Solo developer SheepSeb has released TinyWorldformer, an open-source project that runs a looped transformer world model and an actor policy simultaneously on a Raspberry Pi Pico 2 W microcontroller. Officially launched on October 30, 2026, the system predicts the next game frame and selects actions in real time, all within the constraints of a $7 chip with 512 KiB of SRAM and 4 MB of flash storage.

The project demonstrates that sophisticated neural architectures can execute on bare-metal hardware when paired with aggressive quantization and efficient design choices.

Dual-Network Architecture on a Single Microcontroller

TinyWorldformer combines two distinct neural networks. The first is a looped transformer with 26,000 to 131,000 parameters, depending on game complexity. Instead of stacking multiple transformer blocks, SheepSeb applies a single block iteratively with shared weights, reducing memory footprint while maintaining predictive accuracy. This model-based reinforcement learning approach takes the current frame and action as input and outputs the predicted next frame plus reward signal.

The second network is a multilayer perceptron actor with 9,000 to 16,000 parameters. It reads the predicted frames from the world model and selects the next action. Both networks run in sequence each frame, with the world model generating predictions that the actor immediately consumes to make decisions.

Five Games, 361 to 600 KB Flash Footprint

The release includes five playable games: Breakout, Doom-lite, Flappy Bird, Pong, and Pac-Man lite. Each game is fully self-contained, with flash requirements ranging from 361 KB for Breakout up to roughly 600 KB for the most complex variants. SRAM usage spans 227 KB to 460 KB. Per-frame compute sits between 2.0 million and 8.2 million multiply-accumulate operations.

  • Breakout: 26K world model parameters, 361 KB flash, 2.0M multiply-adds per frame
  • Flappy Bird: 29K world model parameters, 100% exact-frame match at two loops
  • Doom-lite: 57K world model parameters, 83.6% exact-frame accuracy, 768-cell 3D view
  • Pac-Man lite: 131K world model parameters, 600 KB flash, 8.2M multiply-adds per frame

At two loop iterations, exact-frame prediction accuracy reaches 100% on Flappy Bird, 99.99% on Breakout, 99.45% on Pong, 86.4% on Pac-Man lite, and 83.6% on Doom-lite. SheepSeb notes that Doom-lite's lower score reflects the difficulty of matching every shaded pixel in a 3D viewport, not gameplay quality: the underlying game state remains correct nearly all the time.

Quantization-Aware Training and int8 Inference

Both networks use int8 weights with one scale factor per output row. SheepSeb trained the models with quantization-aware training (QAT) and a straight-through estimator, ensuring the quantized model matches the full-precision specification exactly. Softmax operations rely on a precomputed 1,024-entry exponential lookup table that produces uint8 probabilities, eliminating floating-point arithmetic at inference time.

The actor is trained with Stream AC(λ), an advantage actor-critic variant that skips replay buffers and target networks. This training pipeline produces compact policies that fit the microcontroller's memory budget without sacrificing performance. The approach aligns with recent work in edge AI, including projects like Doomformer that compile integer neural networks into playable game maps.

Release Details and Availability

TinyWorldformer is available now as open-source software. The repository includes trained weights for all five games, inference code optimized for the Pico 2 W's dual Cortex-M33 cores, and training scripts for replicating or extending the work. The developer emphasizes that the looped transformer design is central to the project's efficiency: reusing a single block multiple times drastically cuts model parameters and memory compared to stacked architectures.

The project joins a growing ecosystem of integer neural network deployments on resource-constrained hardware, proving that actor-critic methods and autoregressive models can run locally without cloud inference or high-end accelerators.

What This Means

TinyWorldformer shows that transformer-based world models and reinforcement learning policies can execute together on microcontrollers costing less than $10. By combining looped transformer blocks, int8 quantization, and efficient training, the project achieves real-time game prediction and control within severe memory and compute constraints. This work opens pathways for on-device AI in robotics, IoT sensors, and embedded systems where cloud connectivity or power budgets make server-side inference impractical. The release demonstrates that sophisticated neural architectures are no longer exclusive to datacenter hardware.

About the writer

Anupam Kichloo is a Growth Marketing leader at Emergent with over 14 years of experience, having previously driven growth and performance marketing at Amazon, Myntra, and Wildcraft.

Start Building
on Emergent today
Try Emergent