Skip to main content

Module rl_bundle

Module rl_bundle 

Source
Expand description

RL project bundle download (LAB-2769)

mecha10 run rl --download-bundle-only (on the trainer host) downloads and unpacks a robot-scoped RL project bundle - a tar.gz of a project’s configs/rl/ (job/task definitions) and configs/simulation/{models,environments} (the assets those jobs reference) - before training starts. See “RL: Vision and Phased Roadmap” doc.

This bundle is deliberately separate from mecha10 config push (mecha10_robot_config’s per-key config sync): that one syncs configs/ file-by-file to the robot-config KV service for the robot/launcher to consume at runtime, while this one is a purpose-built blob (Minio-backed via LAB-2767, not the KV store) for exactly what a remote/Kestra-dispatched training run needs.

Functions§

download_rl_bundle
Download the RL project bundle previously uploaded for robot_id - LAB-2769’s download side of LAB-2767’s endpoint, called by mecha10 run rl --download-bundle-only on the trainer host. Authenticated identically to upload_rl_bundle (Authorization: Bearer <api_key> + X-User-ID); returns the raw tar.gz bytes for unpack_rl_bundle_archive to unpack.
unpack_rl_bundle_archive
Unpack an RL project bundle archive (as built by [build_rl_bundle_archive] and returned by download_rl_bundle) into dest_root - entries land at dest_root/configs/rl/... and/or dest_root/configs/simulation/{models,environments}/..., mirroring the project-relative layout the archive was built from. Overwrites files already present at the destination; does not delete anything at the destination that’s absent from the archive.