Run this model with HF Jobs

Run khanhnd61/pop-so101 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/khanhnd61/pop-so101. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/khanhnd61/pop-so101 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
pop-so101 / code /run_all.sh
khanhnd61's picture
Claude Opus 5.5
Roll-out on an SO-101 with LeRobot: code/ and model card section
5a3fcf5 verified
Raw History Blame Contribute Delete
939 Bytes
#!/bin/bash
# Submit the four steps as one dependency chain. Run from this directory after setup_env.sh.
# bash run_all.sh # download on a compute node
# SKIP_DOWNLOAD=1 bash run_all.sh # after running "bash slurm/1_download.sbatch" on a login node
set -euo pipefail
cd "$(dirname "$0")"
source config.env
mkdir -p logs
dep=""
if [ "${SKIP_DOWNLOAD:-0}" != 1 ]; then
j1=$(sbatch --parsable $SBATCH_CPU_ARGS slurm/1_download.sbatch); dep="--dependency=afterok:$j1"
echo "1 download $j1"
fi
j2=$(sbatch --parsable $SBATCH_CPU_ARGS $dep --array=0-$((PREP_TASKS - 1)) slurm/2_preprocess.sbatch)
echo "2 preprocess $j2 ($PREP_TASKS array tasks)"
j3=$(sbatch --parsable $SBATCH_CPU_ARGS --dependency=afterok:$j2 slurm/3_index.sbatch)
echo "3 index $j3"
j4=$(sbatch --parsable $SBATCH_GPU_ARGS --dependency=afterok:$j3 slurm/4_train.sbatch)
echo "4 train $j4 (run $RUN_ID, output $POPT_WORK/runs/$RUN_ID)"