MichaelMintIcecream commited on
Commit
e342401
·
verified ·
1 Parent(s): 603acf6

pi05 image: python:3.12-slim base (pinned lerobot needs py>=3.12)

Browse files
Files changed (2) hide show
  1. Dockerfile +9 -3
  2. requirements-pi05.txt +4 -4
Dockerfile CHANGED
@@ -6,9 +6,15 @@
6
  # Run with env MODEL_KIND matching the build arg (the arg only picks which
7
  # requirements file is installed; the env picks the adapter at boot).
8
  #
9
- # Base = the SAME proven torch stack as the Space (torch 2.5.1 + cu121); never
10
- # reinstall torch/torchvision/torchaudio on top (ABI break, see space/Dockerfile).
11
- FROM pytorch/pytorch:2.5.1-cuda12.1-cudnn9-runtime
 
 
 
 
 
 
12
 
13
  ARG MODEL_KIND=pi05
14
 
 
6
  # Run with env MODEL_KIND matching the build arg (the arg only picks which
7
  # requirements file is installed; the env picks the adapter at boot).
8
  #
9
+ # Base per kind (BUILD_BASE arg):
10
+ # molmoact2 -> pytorch/pytorch:2.5.1-cuda12.1 (the proven Space stack; never
11
+ # reinstall torch/torchvision/torchaudio on top — ABI break, space/Dockerfile)
12
+ # pi05 -> python:3.12-slim (the pinned lerobot REQUIRES py>=3.12, which no
13
+ # pytorch/pytorch image ships; lerobot's own dep spec then installs the torch
14
+ # it wants — CUDA-bundled pip wheels, host driver via the endpoint runtime.
15
+ # This mirrors lelab's local venv, the combo the pi05 load path was proven on.)
16
+ ARG BUILD_BASE=python:3.12-slim
17
+ FROM ${BUILD_BASE}
18
 
19
  ARG MODEL_KIND=pi05
20
 
requirements-pi05.txt CHANGED
@@ -1,7 +1,7 @@
1
- # MODEL_KIND=pi05 — installed ON TOP OF pytorch/pytorch:2.5.1-cuda12.1.
2
- # Do NOT list torch/torchvision/torchaudio (base image ships the matched trio;
3
- # pip may still try to bump torch via lerobot's spec — if the resolver fights,
4
- # add --no-deps discipline or constrain to the base image's torch).
5
  #
6
  # lerobot pinned to the SAME commit as lelab's pyproject so a checkpoint trained
7
  # through our pipeline loads with identical code. The [pi] extra pulls the pi05
 
1
+ # MODEL_KIND=pi05 — installed on python:3.12-slim (BUILD_BASE arg in the
2
+ # Dockerfile): the pinned lerobot REQUIRES py>=3.12, which no pytorch/pytorch
3
+ # base ships. torch arrives via lerobot's own dep spec (CUDA-bundled pip
4
+ # wheels) — do NOT pin torch here unless lerobot's resolver fights.
5
  #
6
  # lerobot pinned to the SAME commit as lelab's pyproject so a checkpoint trained
7
  # through our pipeline loads with identical code. The [pi] extra pulls the pi05