Every training saves checkpoints as it goes, and the last one is marked Final. A checkpoint is a LeRobot policy you load in your own code, or serve to a robot with LeRobot, below; EmbodiFlow doesn't run the policy on your robot.
Open the Weights tab
A succeeded training has Download weights at the top of its page: it downloads the final checkpoint. For another checkpoint, open the training from Training (or from the version) and choose Weights. Each checkpoint shows its step, for example "Step 1,000", its file name, its size, for example "206.8 MB", when it was saved, and its SHA-256. While a training runs, each checkpoint is listed once training saves it; until the first one, the tab says "Weights are listed once training saves them."
Download
Choose Download weights, or the download button on a checkpoint row. The browser saves the file in its usual download folder, under the name the row shows, while the page shows the progress. When every byte has arrived and its size and SHA-256 match, the page says "Saved weights.tar (206.8 MB)". If the download does not start, the page says so and offers Copy link (it works for about an hour) and Use the CLI, which copies the terminal command. Large checkpoints are safer from the terminal, which checks the size and SHA-256 and names the file <training id>-<checkpoint>.tar:
ef trainings download-weights <training id> --dir ./weights--checkpoint picks another checkpoint than the latest, by the step the Weights tab shows (1000) or its key (001000), and --attempt an earlier attempt. The CLI signs in with a personal token, from ef login or EMBODIFLOW_API_KEY (CLI reference); a Read only token can download weights.
Unpack and load
The panel Use these weights at the side of the training page has Python and CLI. Python states the format: a LeRobot pretrained_model directory that "holds config.json, model.safetensors and the normalization stats", and the LeRobot version it was trained with. Install that LeRobot version, unpack the file and load it. For an ACT training:
tar -xf <downloaded file>.tarfrom lerobot.policies.act.modeling_act import ACTPolicy
from lerobot.policies.factory import make_pre_post_processors
policy = ACTPolicy.from_pretrained("pretrained_model")
device = {"device_processor": {"device": str(policy.config.device)}}
preprocess, postprocess = make_pre_post_processors(policy.config, "pretrained_model", preprocessor_overrides=device)The panel shows the same lines for your policy with a Copy button. preprocess and postprocess normalize the observations and un-normalize the actions with the statistics of your version.
Run it on a robot
EmbodiFlow doesn't run your policy on a robot, and it doesn't test these commands on one. The path from weights to a moving robot is LeRobot's own async inference, which you run yourself: a policy server on a machine with a GPU, and a robot client beside the robot that sends observations and carries out the action chunks the server returns. It is the lerobot-grpc wire: the unmodified lerobot.async_inference.robot_client talks to a transport.AsyncInference gRPC service. It fits the policies that load with LeRobot, which for EmbodiFlow trainings means ACT and SmolVLA. The flags are those of LeRobot 0.6.1, the version EmbodiFlow trains with.
The Robot way of the panel Use these weights copies the two commands for your policy. On the machine with the GPU, in the folder where you unpacked the file:
python -m lerobot.async_inference.policy_server --host=0.0.0.0 --port=8080Then, on the machine that drives the robot, fill in the values in angle brackets (this is an ACT training; the panel writes your policy type):
python -m lerobot.async_inference.robot_client \
--server_address=<server host>:8080 \
--robot.type=<your robot type> \
--robot.port=<your robot port> \
--robot.cameras='<your cameras>' \
--task="<task text>" \
--policy_type=act \
--pretrained_name_or_path=./pretrained_model \
--policy_device=cuda \
--actions_per_chunk=50 \
--chunk_size_threshold=0.5π0 and π0.5
The openpi family is served by openpi's own policy server over the openpi-ws wire: a WebSocket server that the openpi_client package talks to. A π0 or π0.5 training saves its full parameters, so the weights can be served. The checkpoint is large, several GB, and only the last one of a training is kept; its size is shown in the Weights tab before you download it.
A stock openpi serve_policy.py cannot load it: the training's configuration (your dataset's camera, state and action keys) is built when the training runs and is not in openpi's list of configurations. The trainer writes it to embodiflow_serve.json inside the checkpoint, and the training image carries a small server that rebuilds it and starts openpi's server. On the machine with the GPU (Docker with the NVIDIA container toolkit; replace <release tag> with your platform's release, such as v0.2.1; the image is private on GHCR, so first docker login ghcr.io with a token that can read EmbodiFlow's packages, on-prem the one your platform was installed with), in the folder with weights.tar:
mkdir checkpoint && tar -xf weights.tar -C checkpoint
docker run --rm --gpus all -p 8000:8000 \
-v "$PWD/checkpoint:/checkpoint:ro" \
--entrypoint python \
ghcr.io/embodiflow/models/openpi0-train:<release tag>-cuda \
-m embodiflow_train_runner.backends.openpi.serve \
--checkpoint-dir /checkpoint --port 8000Beside the robot, install the openpi client at the commit the training image pins, then ask for an action chunk. The keys are the ones in meta/info.json of the training's version; the images are uint8 and resized to 224 x 224, and the state is not normalized (the server normalizes it and un-normalizes the actions):
pip install "openpi-client @ git+https://github.com/Physical-Intelligence/openpi.git@215abfb217dbac7d5f1273282331b9b1866c0479#subdirectory=packages/openpi-client"from openpi_client import websocket_client_policy
client = websocket_client_policy.WebsocketClientPolicy(host="<server host>", port=8000)
observation = {
"<image key from meta/info.json>": image, # uint8, height x width x 3, resized to 224 x 224
"<state key from meta/info.json>": state, # float32, not normalized
"prompt": "<task text>",
}
actions = client.infer(observation)["actions"] # float32, chunk x action_dimClean up
Delete in a checkpoint's row menu marks its weights deleted; it doesn't change the training's history.