본문으로 건너뛰기
Skillpedia
머신러닝14k · #11166

fine-tuning-serving-openpi

하는 일

이 스킬은 Physical Intelligence의 OpenPI 로봇 제어 모델을 설정부터 실시간 추론 서버까지 다룹니다. 자신의 데이터로 이 정책을 학습하거나 배포하려는 로봇 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓OpenPI 로봇 모델을 내 로봇 데이터셋에 맞추고 싶을 때.
  • ✓JAX 체크포인트를 PyTorch 체크포인트로 변환해야 할 때.
  • ✓로봇이 행동을 요청할 수 있는 정책 서버를 실행하고 싶을 때.

스킬 링크

https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/18-multimodal/openpi/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/18-multimodal/openpi/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 데이터로 pi0 로봇 모델을 파인튜닝한 뒤, 로봇이 행동을 요청할 수 있도록 서버로 실행하는 것을 도와줄 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 공개된 OpenPI 프로젝트를 설치하고, 데이터와 정규화 통계를 준비하며, JAX 또는 PyTorch 설정으로 학습을 실행합니다. 그다음 행동 예측을 반환하는 서버를 시작합니다. 정규화와 GPU 메모리 같은 흔한 문제도 돕습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

OpenPI Fine-Tuning and Serving

End-to-end workflows for fine-tuning and serving Physical Intelligence's OpenPI models (pi0, pi0-fast, pi0.5) on robot manipulation tasks from the public openpi repository. Covers blank-machine setup, JAX training, PyTorch training, checkpoint conversion, and policy inference serving.

Quick start

Clone the public repo, install the workspace, then serve a pretrained policy:

git clone --recurse-submodules https://github.com/Physical-Intelligence/openpi.git
cd openpi
GIT_LFS_SKIP_SMUDGE=1 uv sync
GIT_LFS_SKIP_SMUDGE=1 uv pip install -e .
uv run scripts/serve_policy.py --env DROID
from openpi_client import websocket_client_policy

client = websocket_client_policy.WebsocketClientPolicy(host="localhost", port=8000)
result = client.infer(observation)
actions = result["actions"]  # numpy array of shape (chunk_size, action_dim)

Core concepts

Model family: OpenPI implements three model variants from Physical Intelligence:

Model Architecture Speed Quality Typical use
pi0 Flow-matching VLA Baseline Highest Research, complex tasks
pi0-fast Autoregressive action tokens 2-5x faster Good Real-time control
pi0.5 pi0 + improved vision encoder Baseline Best Latest default

Key design choices:

  • Dual backend: JAX (primary, official training) and PyTorch (community, deployment-friendly)
  • Config-driven: All training/serving parameters defined in src/openpi/training/config.py
  • Norm stats: Every config requires precomputed normalization statistics before training
  • WebSocket serving: Policy servers expose a WebSocket API for low-latency inference

Training loop invariant: After every config or dataset change, always re-run this cycle:

  1. Compute norm stats → 2. Train → 3. Serve checkpoint → 4. Validate inference

Compute requirements

Task GPU VRAM Notes
Serve pi0.5 (inference) 1x A100/H100 ~24 GB Single GPU sufficient
Fine-tune pi0.5 (JAX) 1x A100 80GB ~60 GB Use fsdp_devices for multi-GPU
Fine-tune pi0 (JAX) 1x A100 80GB ~40 GB Smaller model footprint
Fine-tune (PyTorch DDP) 1-8x A100 ~40 GB/GPU torchrun launcher
Compute norm stats CPU or 1x GPU ~8 GB Fast, can run on login node

Workflow 0: Blank-machine setup

Copy this checklist and track progress:

Setup Progress:
- [ ] Step 1: Clone the public openpi repo with submodules
- [ ] Step 2: Install uv and sync the workspace
- [ ] Step 3: Install the editable package
- [ ] Step 4: Verify core imports and serving entrypoint

Step 1: Clone repo

git clone --recurse-submodules https://github.com/Physical-Intelligence/openpi.git
cd openpi

If you already cloned without submodules:

git submodule update --init --recursive

Step 2: Sync dependencies

GIT_LFS_SKIP_SMUDGE=1 uv sync

Step 3: Install editable package

GIT_LFS_SKIP_SMUDGE=1 uv pip install -e .

Step 4: Verify installation

uv run python -c "from openpi.training import config as _config; print(_config.get_config('pi05_droid').name)"
uv run scripts/serve_policy.py --help

When to use vs alternatives

Use this skill when:

  • Fine-tuning pi0, pi0-fast, or pi0.5 on LeRobot or RLDS datasets
  • Serving OpenPI policies for ALOHA, DROID, or LIBERO evaluation
  • Converting JAX checkpoints to PyTorch format
  • Debugging OpenPI training issues (norm stats, memory, config)

Use fine-tuning-openvla-oft instead when:

  • Fine-tuning OpenVLA with continuous action heads and LoRA
  • Reproducing OpenVLA-OFT paper results on LIBERO or ALOHA

Use evaluating-cosmos-policy instead when:

  • Evaluating NVIDIA Cosmos Policy on simulation benchmarks

Workflow 1: JAX fine-tuning on LeRobot data

Copy this checklist and track progress:

JAX Fine-Tuning Progress:
- [ ] Step 1: Select and copy closest training config
- [ ] Step 2: Update dataset mapping and base checkpoint
- [ ] Step 3: Compute normalization statistics
- [ ] Step 4: Launch JAX training
- [ ] Step 5: Serve checkpoint and run inference sanity check

Step 1: Select config

Copy the closest config from src/openpi/training/config.py:

Config Use case
pi05_libero pi0.5 LIBERO fine-tuning
pi0_libero pi0 full fine-tuning on LIBERO
`pi
자주 묻는 질문

어떤 모델을 지원하나요?

Physical Intelligence의 pi0, pi0-fast, pi0.5를 다룹니다.

어떤 로봇 설정이 언급되나요?

ALOHA, DROID, LIBERO 환경입니다.

GPU 메모리 문제도 도와주나요?

네. 학습과 서빙 중의 메모리 문제는 이 스킬이 다루는 문제 중 하나입니다.

상세 정보

작성자의 원본 설명

Fine-tune and serve Physical Intelligence OpenPI models (pi0, pi0-fast, pi0.5) using JAX or PyTorch backends for robot policy inference across ALOHA, DROID, and LIBERO environments. Use when adapting pi0 models to custom datasets, converting JAX checkpoints to PyTorch, running policy inference servers, or debugging norm stats and GPU memory issues.

repo: Orchestra-Research/AI-Research-SKILLs

인기도

GitHub 스타
14k
순위
#11166
라이선스
MIT
업데이트
2026. 10. 10.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬