Add the PhyAI embodied rollout backend and the PPO policy-correction path used by PI0.5. - #1
Open
Caspian443 wants to merge 10 commits into
Open
Caspian443 wants to merge 10 commits into
Caspian443 wants to merge 10 commits into
Conversation
Signed-off-by: Caspian443 <scrisis843@gmail.com>
feat(rollout): add PhyAI worker skeleton
Integrate the PhyAI engine into the embodied rollout worker and stream actor weights through the engine. Signed-off-by: Caspian Chen <scrisis843@gmail.com>
Recompute actor log probabilities for PhyAI trajectories and apply clipped importance sampling during PPO updates. Signed-off-by: Caspian Chen <scrisis843@gmail.com>
Enable PhyAI training rollout, full actor synchronization, and benchmark configuration. Add model, scheduler, cluster wiring, evaluation updates, and integration tests. Signed-off-by: Caspian Chen <scrisis843@gmail.com>
Signed-off-by: Caspian443 <scrisis843@gmail.com>
Keep backend selection in the shared rollout utilities. Signed-off-by: Caspian443 <scrisis843@gmail.com>
Require actor and rollout model horizons to stay aligned. Signed-off-by: Caspian443 <scrisis843@gmail.com>
Keep benchmark results isolated and remove unused configuration. Signed-off-by: Caspian443 <scrisis843@gmail.com>
Validate embodied rollout backends through a shared supported list. Signed-off-by: Caspian443 <scrisis843@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Add the PhyAI embodied rollout backend and the PPO policy-correction path used by PI0.5.
phyaias an embodied rollout backend alongside Hugging Face.Motivation and Context
The PhyAI fused/BF16 rollout engine and the RLinf actor can produce slightly different behavior distributions. The correction path makes that mismatch explicit in PPO while keeping the existing Hugging Face backend unchanged. Backend selection remains centralized and opt-in through
rollout.rollout_backend, so existing embodied configurations keep their current behavior.How has this been tested?
rlinf-phyai:devcontainer:python3 -m pytest -q tests/unit_tests/test_phyai_worker.py tests/unit_tests/test_embodied_importance_sampling.py tests/unit_tests/test_openpi_rlinf_config.pypassed: 19 passed.python3 -m pytest -q phyai/tests/test_pi05_rollout_schedule.py phyai/tests/test_engine_updates.py phyai/tests/weights/test_loader.pywith 36 passed.examples/pi05/kernel_policy_rlinf_bf16.yaml.success_oncewas 0.8261719 at step 1 and 0.8300781 at step 2; actor ratios were 1.001 and 1.000.loaded=819,missing=0,optional_missing=0, andunexpected=0.Additional information (optional, e.g., figures and logs):
examples/embodiment/config/libero_spatial_ppo_openpi_pi05_rlinf_backend_benchmark.yaml. It selectsrollout.rollout_backend: phyai, the RLinf BF16 operator policy, the RLinf-Pi05-LIBERO-SFT checkpoint,pi05_base, and the PaliGemma tokenizer.examples/pi05/kernel_policy_rlinf_bf16.yamland CUDA Graph enabled when reproducing the H800 result; changing the operator policy changes the numerical and performance comparison./home/phyai/doc/hf_vs_phyai_all8_offpolicy_success_rate.pngand/home/phyai/doc/figures/predict_occupancy.png.Types of changes
Checklist: