Overworld's Waypoint 1.5 demo: a world explored with keyboard and mouse controls.
What the model does
The model is a world model. It starts a world from a seed image: the image that becomes the first frame of the world. On each step, it reads the current controls and makes the next 4 frames of that world.Inputs and outputs
- The seed image, with
set_image. The model fits the image to 1280x720 and starts a new world from it. - The keys, with
set_actionandset_buttons.set_actiontakes a direction, such asforwardorback_left.set_buttonsadds other keycodes.
idle.
The step loop
The runtime runs the model in a loop of steps. Each step calls 3 methods in order:process_input()reads the controls from the session state and returns aWaypointInput. While the session is paused, or before a seed image arrives, it skips the step. The runtime then calls it again on the next step.generate()passes theWaypointInputto the model. The model makes 4 frames and returns aWaypointResult.process_output()sends the 4 frames onmain_video. Every 50 steps, it also sendswaypoint_status.
Requirements
- A Reactor account with Serve access, remote builds, and capacity for 1 RTX PRO 6000 instance.
- The latest Reactor CLI.
- An API key for the account that owns the project.
Project structure
examples/waypoint/
reactor.yaml
tells Reactor which class to serve and how to build its image. These are its main settings:
reactor.yaml (main settings)
1. Prepare the project
The steps use the Reactor CLI. If it is not on your machine yet, install it first. Sign in, clone Reactor Runtime 3.11.9, and open the model workspace:Terminal
reactor.yaml, set model.name to your account-qualified project name. Replace your-org with your account slug:
reactor.yaml (model name only)
2. Deploy the model
One command builds the image and deploys it to theproduction environment of your project. Run it from the model
workspace, in a region where your account has an RTX PRO 6000 allocation. For example, if your allocation is in
us-west:
Terminal
--weights names the same checkpoint as runtime.weights_path in reactor.yaml. Reactor copies it from Hugging Face
into your project and syncs it to each instance, so nothing is uploaded from your machine. The model reads it from
get_weights_path().
Replace us-west with your allocated region. Selecting a region does not grant capacity.
If deployment reports that your account has no NVIDIA_RTX6000_PRO allocation, check your
account capacity or contact Reactor.
reactor deploy returns when the deployment reports ready. While it runs, follow each stage here:
- Build and Publish: the deploy terminal prints the build output. It can stay quiet for several minutes after the build ends, while the image is published.
- Start:
reactor status productionshows the phase of the instance.reactor logs production --followshows the model load and the warmup. - Ready:
reactor status productionreportsready.
Terminal
deploying and the phase of the instance:
pending, pulling_image, syncing_weights, and loading. syncing_weights copies the
weights to the instance. loading covers the model load and the warmup. The deployment is ready for clients when
Status is ready and the region reports 1 ready. Weights shows the short digest of the weights the deploy
pinned.
Once an instance exists, follow its startup logs:
Terminal
3. Test the deployment
The Reactor Sandbox connects to a deployed model and creates a control for each of its commands. You need an API key:reactor auth login signs in the CLI only.
1
Connect
Open the Reactor Sandbox and choose Production as the endpoint. Paste an
API key from the account that owns the project, choose
your-org/waypoint, and start a session.2
Start a world
Upload a PNG or JPEG image with
set_image. The first frames appear on main_video on the next step.3
Move
Set
set_action to forward and set_mouse_x to a small value, such as 0.2, to walk and turn. Set them back to
idle and 0 to stop.Commands and messages
The model accepts these commands. Each generatedset_<field> command takes its field name as the payload key:
The model sends:
For a client of your own, start from Test Your Model and the
Python SDK reference. Upload the seed image with
upload_file(), then pass the result
to set_image.
4. Stop the deployment
Closing the client leaves the GPU instance running. Stop it from the model workspace:Terminal
Terminal
Troubleshooting
To find the cause of a startup or session error, follow the logs from the model workspace:Terminal
Next
Model walkthrough
Read how the model loads, runs each step, and handles its commands.
Scaling
Run more instances, or limit them to the regions you select.