Generate a scene
Set up the environment and checkpoints, then run this command from the PhyAI repository root. Use a new or empty output directory.--robot-arm-type to set the robot name in the prompt. It defaults to AgiBot G1. Describe the workspace, object positions, lighting, and background in --prompt.
This example uses one CUDA GPU, a 1 GiB FlashInfer workspace, and disables CUDA Graph. Scene Gen defaults to 8192 generated tokens. Larger grids may need a higher --max-new-tokens value and more GPU memory.
Read the output
Openoutputs/u0-scene/image.png to view the scene. Check generation.json for stop_reason=image_end, the visual token grid in image_grid_shape (height, width), and the decoded image_size (width, height).
The example also saves generated_ids.npy, input_ids.npy, unconditional_ids.npy, and tokenizer_mapping.json. To inspect the input tokens without loading the models, add --prepare-only and use a separate empty output directory.
Thor example
On NVIDIA Jetson Thor, the prompt above reachedimage_end with FlashInfer and produced a 2048 × 512 RGB PNG using seed 42.


