Download flux-umi/docs/embodiments.md from Crobotia/iUMI_Inference: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/Crobotia/iUMI_Inference/resolve/main/flux-umi/docs/embodiments.md
- Command line
-
hf download hf://Crobotia/iUMI_Inference/flux-umi/docs/embodiments.md
-
curl -L -o embodiments.md https://huggingface.co/Crobotia/iUMI_Inference/resolve/main/flux-umi/docs/embodiments.md
Custom tasks and embodiments
Complete setup, including the base and encoder download. The gaming example trains one policy on two browser games.
flux-action train reads a DROID or LeRobot index. To train on other data, provide the windows yourself
and configure the dataset, schedule and action dimensions below. The UMI section of the README
describes the shared training, resume and export workflow.
The window
Each sample is one dict: images.<camera> (frames, 3, H, W) uint8 with frames = chunk_size + 1 (one
observed frame, then the frames the actions lead to), state (D,) float32, action (chunk_size, D) float32,
task (the caption, a string), window_seed (int), and optionally action_mask (D,).
The config
dataset = "pkg.module:callable". The callable receives the TrainConfig and seed, epoch, rank, world_size, num_workers, windows_per_rank, skip_batches, grad_accumulation, and returns an iterable dataset with a batches_per_rank attribute that yields the windows above. Derive the sampling from (seed, epoch, rank, position) and skip the first skip_batches; resume is exact when you do. index_dir is ignored. A 60-line reference: tests/training/test_embodiment_plug.py.
frozen_steps, trunk_warmup_steps, heads_warmup_steps. The defaults (1000 / 2000 / 1000) fit a 30k-step
run. For 3000 steps use 200 / 600 / 200; with the defaults the trunk never unfreezes.
action_mask, only if embodiments with different action widths share one head. Zero-pad the narrower action
to D and set the mask per window; the loss averages over unmasked dims. The caption tells them apart.
export-checkpoint --dtype bfloat16. Export bf16 weights for inference; the default export keeps
the fp32 master weights. For a policy that conditions on one frame, PolicyConfig.single_frame_encode
encodes that frame alone instead of padding it to the VAE’s 45-frame chunk. This changes the encoded
latents and is off by default; retain the setting used by your checkpoint.
examples/games does all of the above on two browser games.