Troubleshooting
Start with the stage that failed. Compilation uses RDL and checkpoints; execution uses the compiled directory; processing converts application data to and from tensors.
Checkpoint binding is missing
Look at the RDL’s Model("name") declarations and supply the required name=/path bindings. Names are case-sensitive and must match the weight references and processing assets.
Check that the checkpoint variant contains the tensor names expected by this architecture.
Output directory already exists
Choose a new --output path. Redwood refuses to overwrite a compiled directory. Keep the working bundle until the replacement has compiled successfully.
No compatible kernel
Check the target backend, required dtypes and operation shapes. Build or install that backend’s kernels first. A kernel may also be unavailable because its CPU instruction or software-library requirement is missing.
More search cannot invent a kernel. If the computation is expressible but uncovered, add a compatible kernel or change the model’s explicit implementation deliberately.
Input exceeds a bound
Check the RDL input’s maximum_shape, scalar bounds and cache capacities. --max-input-size supplies missing variable-dimension bounds. Set fixed limits in the RDL.
Shorten the request or change the relevant RDL limits and recompile. A live session’s cache cannot grow beyond its declared capacity.
Model needs processors
Both preprocessing and postprocessing must be available. Declare supported defaults through the RDL’s processing mapping, or supply callback functions to Model.
If your application already handles numerical tensors, use Runtime directly. See custom processing.
Tokenizer or feature assets are missing
Bind the checkpoint directory containing the required assets. Whisper needs both tokenizer and feature-extractor assets.
Standard processing loads assets from the compiled directory.
CPU worker is missing
For a wheel install, run redwood version to initialize the bundled components. If they were already moved and then removed, force-reinstall the package.
From a source checkout, build it with uv run task build-cpu. Check that REDWOOD_HOME was the same during building and execution.
Execution requires the native worker as well as the Python package.
Conversation context disappears
Keep the same Model open and send the complete message history on each turn. The application stores messages; the RDL handles cache reuse. A new instance starts a new session.
Use separate instances for conversations that need independent caches.
Output is truncated
The standard text and audio postprocessors reject a true truncated output. Shorten the request or increase the RDL’s generation capacity and recompile. Raising only the input dimension bound is insufficient.
A run was cancelled or failed
Close the instance and create a new session. Native failure and cancellation can leave partially updated state, so retry on a fresh instance. See sessions and cancellation.
Shipped native files were removed
If you installed a wheel and remove its shipped worker or kernels from REDWOOD_HOME, restore them with uv pip install --reinstall redwood-trillim or pip install --force-reinstall --no-deps redwood-trillim.