mjlab/scripts/cloud/train.yaml
Upstream Snapshot 32a241c28f
Some checks failed
nightly / Test against latest dependencies (py3.10) (push) Has been cancelled
nightly / Test against latest dependencies (py3.13) (push) Has been cancelled
tests / tests (3.13, locked) (push) Has been cancelled
tests / tests (3.13, unlocked) (push) Has been cancelled
tests / pyright (3.10) (push) Has been cancelled
tests / lint-format (push) Has been cancelled
tests / tests (3.10, locked) (push) Has been cancelled
tests / tests (3.11, locked) (push) Has been cancelled
tests / tests (3.12, locked) (push) Has been cancelled
tests / pyright (3.11) (push) Has been cancelled
tests / pyright (3.12) (push) Has been cancelled
tests / pyright (3.13) (push) Has been cancelled
tests / ty-check (3.10) (push) Has been cancelled
tests / ty-check (3.11) (push) Has been cancelled
tests / ty-check (3.12) (push) Has been cancelled
tests / ty-check (3.13) (push) Has been cancelled
tests / stubs (push) Has been cancelled
tests / smoke-test (push) Has been cancelled
Docker / check_paths (push) Has been cancelled
docs / build (push) Has been cancelled
Docker / build (push) Has been cancelled
Import upstream snapshot c19f713c415a699a79d71cd96aa13c3104a05047
Upstream: https://github.com/michaelgillett/mjlab
Upstream-Commit: c19f713c415a699a79d71cd96aa13c3104a05047
Upstream-Branch: main
2026-08-28 15:42:17 +08:00

45 lines
969 B
YAML

# SkyPilot task for launching mjlab training on Lambda Cloud.
#
# Installs mjlab directly with uv (no Docker).
#
# Usage:
# sky launch scripts/cloud/train.yaml \
# --env TASK=Mjlab-Velocity-Flat-Unitree-G1
name: mjlab-train
resources:
cloud: lambda
accelerators: A100:1
autostop:
idle_minutes: 5
down: true
workdir: .
file_mounts:
~/.netrc: ~/.netrc
envs:
TASK: Mjlab-Velocity-Flat-Unitree-G1
NUM_ENVS: "4096"
MAX_ITERATIONS: "6000"
MUJOCO_GL: egl
setup: |
# Install EGL for MuJoCo headless rendering.
sudo apt-get update && sudo apt-get install -y libegl-dev
# Install uv if not present.
command -v uv || curl -LsSf https://astral.sh/uv/install.sh | sh
source "$HOME/.local/bin/env" 2>/dev/null || true
uv sync --locked --no-dev
run: |
source "$HOME/.local/bin/env" 2>/dev/null || true
uv run train "$TASK" \
--env.scene.num-envs "$NUM_ENVS" \
--agent.max-iterations "$MAX_ITERATIONS" \
--gpu-ids all