-
Notifications
You must be signed in to change notification settings - Fork 3
Pi0.5 Performance #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
NSagan271
wants to merge
17
commits into
main
Choose a base branch
from
pi05-performance-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Pi0.5 Performance #103
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
478b905
benchmark parity for pi05
NSagan271 94ef0e5
use droid yaml by default
NSagan271 73d5d29
add cache for droid
NSagan271 26eca8f
collapse full flow loop into one forward pass
NSagan271 c81cd50
port over pi05 siglip
NSagan271 692d432
single graph walk for pi05 (remove conductor overhead)
NSagan271 99118e9
IN PROGRESS remove PNG loading overhead
NSagan271 03da3ad
cleanup
NSagan271 c36c00d
port over openpi benchmarking
NSagan271 8d97e94
ruff check fix
NSagan271 3880646
update openpi instructions
NSagan271 d437bb9
refactor mminf -> mstar in a few places
NSagan271 491ff5b
some cleanup
NSagan271 a471ae8
Cleanup stale comments + abstract away timing prints
NSagan271 8954bf0
Remove stale Pi05LLMSubmodule references
NSagan271 0c83059
respond to PR comments
NSagan271 41e5b20
ruff
NSagan271 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #!/usr/bin/env python3 | ||
| """Download the pi0.5 checkpoint and print the local path. | ||
| conda activate openpi | ||
| python benchmark/download_pi05_ckpt.py | ||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import argparse | ||
| import sys | ||
|
|
||
| DEFAULT_CONFIG = "pi05_droid" | ||
| DEFAULT_CHECKPOINT = "gs://openpi-assets/checkpoints/pi05_droid" | ||
|
|
||
|
|
||
| def main(): | ||
| p = argparse.ArgumentParser(description="Download pi0.5 checkpoint") | ||
| p.add_argument("--config", default=DEFAULT_CONFIG) | ||
| p.add_argument("--checkpoint", default=DEFAULT_CHECKPOINT) | ||
| args = p.parse_args() | ||
|
|
||
| try: | ||
| from openpi.shared import download | ||
| from openpi.training import config as _config | ||
| except ImportError as e: | ||
| sys.exit( | ||
| f"\n[ERROR] openpi is not importable ({e}).\n" | ||
| "Run inside the openpi conda env:\n" | ||
| " conda activate openpi\n" | ||
| ) | ||
|
|
||
| _config.get_config(args.config) | ||
| ckpt_dir = download.maybe_download(args.checkpoint) | ||
| print(ckpt_dir) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| 1. Make a python3.12 environment | ||
| 2. Clone the `openpi` repo | ||
| 3. Run the following in your environment: | ||
| ``` | ||
| git submodule update --init --recursive | ||
| GIT_LFS_SKIP_SMUDGE=1 uv sync | ||
| GIT_LFS_SKIP_SMUDGE=1 uv pip install -e . | ||
| ``` | ||
| 4. From the mstar repo, run: | ||
| ``` | ||
| pip install gsutil | ||
| python benchmark/download_pi05_ckpt.py | ||
| mkdir <DESIRED_OPENPI_CACHE_DIR> | ||
| mv /home/$USER/.cache/openpi/* <DESIRED_OPENPI_CACHE_DIR> | ||
| ``` | ||
| 5. Start the server with: | ||
| ``` | ||
| uv run scripts/serve_policy.py policy:checkpoint --policy.config=pi05_droid --policy.dir=<DESIRED_OPENPI_CACHE_DIR>/openpi-assets/checkpoints/pi05_droid | ||
| ``` |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The benchmark is not apples-to-apples - M* silently runs on one camera, openpi on two. This may invalidates the comparison your PR is presumably built to demonstrate.