Skip to main content
Keep your existing inference code. Wrap it in a ReactorApp to receive client inputs and stream output. Start with a model that already runs, its dependencies and weights, and an account with Serve and remote-build access.

Create a workspace

Install the CLI, then sign in and create a starter workspace:
Terminal
Copy your inference code into this folder and add its dependencies to requirements.txt.

Connect your inference code

Replace the starter’s rendering code in model.py with your model’s loading and inference calls: For a video model, return each chunk to the runtime instead of keeping a streaming loop inside generate(). Set fps to the intended playback rate. Your inference code still controls how long each chunk takes to compute. Model anatomy shows these interfaces together in a working model. For camera or microphone input, see video and audio tracks.

Configure the model

Set the project name and Python class in reactor.yaml:
reactor.yaml (selected settings)
Replace your-org with your account or team slug and MyModel with your class name. Remove the starter’s runtime.config entry if your model doesn’t use its configuration file. Keep the generated runtime pin. Add the CUDA version and dependencies your inference code needs through the build settings. Selecting a GPU at deployment doesn’t add CUDA to the image. Keep checkpoints outside the image; Load your weights covers local folders and hosted sources.

Deploy and test

From the workspace, deploy with hardware your model supports. For a model tested on one B200 with checkpoints in weights/:
Terminal
The CLI uploads the weights, builds remotely, and waits for rollout. No local Docker build is needed. Your account needs an allocation for the chosen GPU; see GPUs & Capacity. Once ready, connect a test client to your-org/ported-model. Update the client’s controls to match your input fields and commands. Check that output arrives, changes when you update inputs, and starts with fresh state in a new session. A ready instance alone doesn’t verify inference. When finished, stop the instance:
Terminal
For a complete video implementation, see Deploy JoyAI video editing.