Download leaf/code/v1.5/v1.4/export_verified.sh from COCOMatrix/LEAF-Bench: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/datasets/COCOMatrix/LEAF-Bench/resolve/main/leaf/code/v1.5/v1.4/export_verified.sh
- Command line
-
hf download hf://datasets/COCOMatrix/LEAF-Bench/leaf/code/v1.5/v1.4/export_verified.sh
-
curl -L -o export_verified.sh https://huggingface.co/datasets/COCOMatrix/LEAF-Bench/resolve/main/leaf/code/v1.5/v1.4/export_verified.sh
1.26 kB
| set -euo pipefail | |
| BASE=/mnt/cpfs/shared/outputs/peter/lffbench/20261025-0615-v1.4-backfill | |
| J=$BASE/job | |
| L=$J/source | |
| EPY=/mnt/cpfs/workspace/env/zeva-cosmos-cu128/bin/python | |
| export OMP_NUM_THREADS=1 LP_NUM_THREADS=1 MKL_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 PYTHONUNBUFFERED=1 | |
| export PYTHONPATH=$L:/mnt/cpfs/workspace/RSS/LIBERO-Recovery/LIBERO | |
| cd "$L" | |
| "$EPY" "$J/prepare_verified.py" | |
| for prefix in delta legacy; do | |
| if [ "$prefix" = delta ]; then RAW=$BASE/verified_raw; else RAW=$BASE/legacy_verified_raw; fi | |
| "$EPY" "$L/scripts/lerobot_export.py" plan --work "$BASE/${prefix}_work" \ | |
| --raw "$RAW" --runs-root "$J/runs_index" --paper "$J/paper" \ | |
| --task-set "$L/sets/main_v2_1inst.txt" --repo-id "lffbench/${prefix}-backfill" | |
| seq 0 23 | xargs -P 24 -I{} bash -c '"$1" "$2/scripts/lerobot_export.py" shard --work "$3/${5}_work" --shard "$4" --nshards 24 --threads 2 > "$3/job/logs/${5}_shard_$4.log" 2>&1' _ "$EPY" "$L" "$BASE" {} "$prefix" | |
| "$EPY" "$L/scripts/lerobot_export.py" merge --work "$BASE/${prefix}_work" --nshards 24 --out "$BASE/${prefix}_dataset" > "$J/logs/merge_${prefix}.log" 2>&1 | |
| done | |
| "$EPY" "$J/merge_cumulative.py" > "$J/logs/merge_cumulative.log" 2>&1 | |
| echo 'EXPORT COMPLETE; validation and publication pending' | |