Langsung ke konten
Skillpedia
Machine learning14k Β· #11166

fine-tuning-serving-openpi

Fungsinya

Skill ini mencakup adaptasi dan penjalanan model kontrol robot OpenPI dari Physical Intelligence, dari pengaturan hingga server inferensi yang aktif. Untuk insinyur robotika yang ingin melatih atau menerapkan kebijakan ini dengan data mereka sendiri.

Kapan dipakai

  • βœ“Saat Anda ingin menyesuaikan model robot OpenPI dengan dataset robot Anda sendiri.
  • βœ“Saat Anda perlu mengonversi checkpoint JAX menjadi checkpoint PyTorch.
  • βœ“Saat Anda ingin menjalankan server kebijakan yang diminta robot untuk aksi.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Orchestra-Research/AI-Research-SKILLs/blob/main/18-multimodal/openpi/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda membantu saya melakukan fine-tune model robot pi0 pada dataset saya sendiri lalu menyajikannya agar robot saya bisa meminta aksi?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memasang proyek OpenPI publik, menyiapkan data dan statistik normalisasi Anda, menjalankan pelatihan dengan pengaturan JAX atau PyTorch, dan memulai server yang mengembalikan prediksi aksi. Agent juga membantu masalah umum seperti normalisasi dan memori GPU.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Model apa yang didukung?

Skill mencakup pi0, pi0-fast, dan pi0.5 dari Physical Intelligence.

Pengaturan robot apa yang disebutkan?

Lingkungan ALOHA, DROID, dan LIBERO.

Bisakah membantu masalah memori GPU?

Bisa. Masalah memori saat pelatihan dan penyajian termasuk yang dicakup.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
14k
Peringkat
#11166
Lisensi
MIT
Diperbarui
10/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa