mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-20 11:09:59 +00:00
fix(ci): write eval output to /tmp inside container
user_lerobot cannot create /artifacts at the container root. Use /tmp/eval-artifacts (always writable) then docker cp it out. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -106,7 +106,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Libero smoke eval (1 episode)
|
- name: Run Libero smoke eval (1 episode)
|
||||||
run: |
|
run: |
|
||||||
# Use a named container (no --rm) so we can docker cp artifacts out.
|
# Named container (no --rm) so we can docker cp artifacts out.
|
||||||
|
# Output to /tmp inside the container — /artifacts doesn't exist
|
||||||
|
# and user_lerobot cannot create root-level dirs.
|
||||||
docker run --name libero-eval --gpus all \
|
docker run --name libero-eval --gpus all \
|
||||||
--shm-size=4g \
|
--shm-size=4g \
|
||||||
-e HF_HOME=/tmp/hf \
|
-e HF_HOME=/tmp/hf \
|
||||||
@@ -125,14 +127,14 @@ jobs:
|
|||||||
--policy.device=cuda \
|
--policy.device=cuda \
|
||||||
'--env.camera_name_mapping={\"agentview_image\": \"camera1\", \"robot0_eye_in_hand_image\": \"camera2\"}' \
|
'--env.camera_name_mapping={\"agentview_image\": \"camera1\", \"robot0_eye_in_hand_image\": \"camera2\"}' \
|
||||||
--policy.empty_cameras=1 \
|
--policy.empty_cameras=1 \
|
||||||
--output_dir=/artifacts
|
--output_dir=/tmp/eval-artifacts
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Copy Libero artifacts from container
|
- name: Copy Libero artifacts from container
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/libero-artifacts
|
mkdir -p /tmp/libero-artifacts
|
||||||
docker cp libero-eval:/artifacts/. /tmp/libero-artifacts/ 2>/dev/null || true
|
docker cp libero-eval:/tmp/eval-artifacts/. /tmp/libero-artifacts/ 2>/dev/null || true
|
||||||
docker rm -f libero-eval || true
|
docker rm -f libero-eval || true
|
||||||
|
|
||||||
- name: Upload Libero rollout video
|
- name: Upload Libero rollout video
|
||||||
@@ -194,14 +196,14 @@ jobs:
|
|||||||
--policy.device=cuda \
|
--policy.device=cuda \
|
||||||
'--rename_map={\"observation.image\": \"observation.images.camera1\"}' \
|
'--rename_map={\"observation.image\": \"observation.images.camera1\"}' \
|
||||||
--policy.empty_cameras=2 \
|
--policy.empty_cameras=2 \
|
||||||
--output_dir=/artifacts
|
--output_dir=/tmp/eval-artifacts
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Copy MetaWorld artifacts from container
|
- name: Copy MetaWorld artifacts from container
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/metaworld-artifacts
|
mkdir -p /tmp/metaworld-artifacts
|
||||||
docker cp metaworld-eval:/artifacts/. /tmp/metaworld-artifacts/ 2>/dev/null || true
|
docker cp metaworld-eval:/tmp/eval-artifacts/. /tmp/metaworld-artifacts/ 2>/dev/null || true
|
||||||
docker rm -f metaworld-eval || true
|
docker rm -f metaworld-eval || true
|
||||||
|
|
||||||
- name: Upload MetaWorld rollout video
|
- name: Upload MetaWorld rollout video
|
||||||
|
|||||||
Reference in New Issue
Block a user