Import upstream snapshot c19f713c415a699a79d71cd96aa13c3104a05047
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
Docker / build (push) Has been cancelled
docs / build (push) Has been cancelled
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
Docker / build (push) Has been cancelled
docs / build (push) Has been cancelled
Upstream: https://github.com/michaelgillett/mjlab Upstream-Commit: c19f713c415a699a79d71cd96aa13c3104a05047 Upstream-Branch: main
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
# SkyPilot task for launching mjlab training on Lambda Cloud.
|
||||
#
|
||||
# Uses the pre-built Docker image from GHCR.
|
||||
#
|
||||
# Usage:
|
||||
# sky launch scripts/cloud/train-docker.yaml \
|
||||
# --env TASK=Mjlab-Velocity-Flat-Unitree-G1
|
||||
|
||||
name: mjlab-train
|
||||
|
||||
resources:
|
||||
cloud: lambda
|
||||
accelerators: A100:1
|
||||
autostop:
|
||||
idle_minutes: 5
|
||||
down: true # Terminates the instance when idle (stops billing).
|
||||
|
||||
workdir: .
|
||||
|
||||
file_mounts:
|
||||
~/.netrc: ~/.netrc
|
||||
|
||||
envs:
|
||||
TASK: Mjlab-Velocity-Flat-Unitree-G1
|
||||
NUM_ENVS: "4096"
|
||||
MAX_ITERATIONS: "6000"
|
||||
MUJOCO_GL: egl
|
||||
|
||||
setup: |
|
||||
# Configure NVIDIA runtime for Docker if not already set up.
|
||||
if ! sudo docker info 2>/dev/null | grep -q "nvidia"; then
|
||||
sudo nvidia-ctk runtime configure --runtime=docker
|
||||
sudo systemctl restart docker
|
||||
sleep 3 # Wait for the daemon to be ready before pulling.
|
||||
fi
|
||||
|
||||
sudo docker pull ghcr.io/mujocolab/mjlab:latest
|
||||
|
||||
run: |
|
||||
sudo docker run --rm --runtime=nvidia --gpus all \
|
||||
-v "$HOME/.netrc:/root/.netrc:ro" \
|
||||
-e MUJOCO_GL=egl \
|
||||
ghcr.io/mujocolab/mjlab:latest \
|
||||
uv run --no-dev train "$TASK" \
|
||||
--env.scene.num-envs "$NUM_ENVS" \
|
||||
--agent.max-iterations "$MAX_ITERATIONS" \
|
||||
--gpu-ids all
|
||||
Reference in New Issue
Block a user