coreai-fabric: pi0-base-gemma card + license + reports
Browse filesFiles changed (4)
- LICENSEAdded+225
- NOTICEAdded+20
- README.mdAdded+141
- parity-report.jsonAdded+101
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225NOTE β supplied by coreai-fabric (the redistributor), not the upstream.The upstream lerobot/pi0_base @ 25c379b52ba2ff8788cab921758a3cc3fe3f77f2 declares its license as "gemma" in itsHugging Face model-card metadata but ships no LICENSE file. These weightsare a Gemma "Model Derivative": they embed PaliGemma/Gemma parameters viathe LeRobot pi0/pi0.5 policy. Under the Gemma Terms of Use Β§3.1 aredistribution must provide recipients a copy of the Agreement, so thecanonical Gemma Terms of Use are reproduced below verbatim. Copyright inthe underlying work remains with Google and the upstream authors (lerobot/pi0_base).========================================================================
Gemma Terms of Use
Last modified: April 1, 2026
The terms below apply to Gemma models listed in the Appendix at bottom of thispage.
By using, reproducing, modifying, distributing, performing or displaying anyportion or element of Gemma, Model Derivatives including via any Hosted Service,(each as defined below) (collectively, the "Gemma Services") or otherwiseaccepting the terms of this Agreement, you agree to be bound by this Agreement.
Section 1: DEFINITIONS
1.1 Definitions
(a) "Agreement" or "Gemma Terms of Use" means these terms and conditions thatgovern the use, reproduction, Distribution or modification of the Gemma Servicesand any terms and conditions incorporated by reference.
(b) "Distribution" or "Distribute" means any transmission, publication, or othersharing of Gemma or Model Derivatives to a third party, including by providing ormaking Gemma or its functionality available as a hosted service via API, webaccess, or any other electronic or remote means ("Hosted Service").
(c) "Gemma" means the set of machine learning language models, trained modelweights and parameters identified in the Appendix, regardless of the source thatyou obtained it from.
(d) "Google" means Google LLC.
(e) "Model Derivatives" means all (i) modifications to Gemma, (ii) works based onGemma, or (iii) any other machine learning model which is created by transfer ofpatterns of the weights, parameters, operations, or Output of Gemma, to thatmodel in order to cause that model to perform similarly to Gemma, includingdistillation methods that use intermediate data representations or methods basedon the generation of synthetic data Outputs by Gemma for training that model. Forclarity, Outputs are not deemed Model Derivatives.
(f) "Output" means the information content output of Gemma or a Model Derivativethat results from operating or otherwise using Gemma or the Model Derivative,including via a Hosted Service.
1.2 As used in this Agreement, "including" means "including without limitation".
Section 2: ELIGIBILITY AND USAGE
2.1 Eligibility
You represent and warrant that you have the legal capacity to enter into thisAgreement (including being of sufficient age of consent). If you are accessing orusing any of the Gemma Services for or on behalf of a legal entity, (a) you areentering into this Agreement on behalf of yourself and that legal entity, (b) yourepresent and warrant that you have the authority to act on behalf of and bindthat entity to this Agreement and (c) references to "you" or "your" in theremainder of this Agreement refers to both you (as an individual) and that entity.
2.2 Use
You may use, reproduce, modify, Distribute, perform or display any of the GemmaServices only in accordance with the terms of this Agreement, and must not violate(or encourage or permit anyone else to violate) any term of this Agreement.
Section 3: DISTRIBUTION AND RESTRICTIONS
3.1 Distribution and Redistribution
You may reproduce or Distribute copies of Gemma or Model Derivatives if you meetall of the following conditions:
- You must include the use restrictions referenced in Section 3.2 as an enforceable provision in any agreement (e.g., license agreement, terms of use, etc.) governing the use and/or distribution of Gemma or Model Derivatives and you must provide notice to subsequent users you Distribute to that Gemma or Model Derivatives are subject to the use restrictions in Section 3.2.
- You must provide all third party recipients of Gemma or Model Derivatives a copy of this Agreement.
- You must cause any modified files to carry prominent notices stating that you modified the files.
- All Distributions (other than through a Hosted Service) must be accompanied by a "Notice" text file that contains the following notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms".
You may add your own intellectual property statement to your modifications and,except as set forth in this Section, may provide additional or different terms andconditions for use, reproduction, or Distribution of your modifications, or forany such Model Derivatives as a whole, provided your use, reproduction,modification, Distribution, performance, and display of Gemma otherwise complieswith the terms and conditions of this Agreement. Any additional or different termsand conditions you impose must not conflict with the terms of this Agreement.
3.2 Use Restrictions
You must not use any of the Gemma Services:
- for the restricted uses set forth in the Gemma Prohibited Use Policy at ai.google.dev/gemma/prohibited_use_policy ("Prohibited Use Policy"), which is hereby incorporated by reference into this Agreement; or
- in violation of applicable laws and regulations.
To the maximum extent permitted by law, Google reserves the right to restrict(remotely or otherwise) usage of any of the Gemma Services that Google reasonablybelieves are in violation of this Agreement.
3.3 Generated Output
Google claims no rights in Outputs you generate using Gemma. You and your usersare solely responsible for Outputs and their subsequent uses.
Section 4: ADDITIONAL PROVISIONS
4.1 Updates
Google may update Gemma from time to time.
4.2 Trademarks
Nothing in this Agreement grants you any rights to use Google's trademarks, tradenames, logos or to otherwise suggest endorsement or misrepresent the relationshipbetween you and Google. Google reserves any rights not expressly granted herein.
4.3 DISCLAIMER OF WARRANTY
UNLESS REQUIRED BY APPLICABLE LAW, THE GEMMA SERVICES, AND OUTPUTS, ARE PROVIDEDON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESSOR IMPLIED, INCLUDING ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLEFOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING, MODIFYING, PERFORMING,DISPLAYING OR DISTRIBUTING ANY OF THE GEMMA SERVICES OR OUTPUTS AND ASSUME ANY ANDALL RISKS ASSOCIATED WITH YOUR USE OR DISTRIBUTION OF ANY OF THE GEMMA SERVICES OROUTPUTS AND YOUR EXERCISE OF RIGHTS AND PERMISSIONS UNDER THIS AGREEMENT.
4.4 LIMITATION OF LIABILITY
TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGALTHEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY, CONTRACT, OROTHERWISE, UNLESS REQUIRED BY APPLICABLE LAW, SHALL GOOGLE OR ITS AFFILIATES BELIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL,EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR LOST PROFITS OF ANY KIND ARISINGFROM THIS AGREEMENT OR RELATED TO, ANY OF THE GEMMA SERVICES OR OUTPUTS EVEN IFGOOGLE OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
4.5 Term, Termination, and Survival
The term of this Agreement will commence upon your acceptance of this Agreement(including acceptance by your use, modification, or Distribution, reproduction,performance or display of any portion or element of the Gemma Services) and willcontinue in full force and effect until terminated in accordance with the terms ofthis Agreement. Google may terminate this Agreement if you are in breach of anyterm of this Agreement. Upon termination of this Agreement, you must delete andcease use and Distribution of all copies of Gemma and Model Derivatives in yourpossession or control. Sections 1, 2.1, 3.3, 4.2 to 4.9 shall survive thetermination of this Agreement.
4.6 Governing Law and Jurisdiction
This Agreement will be governed by the laws of the State of California withoutregard to choice of law principles. The UN Convention on Contracts for theInternational Sale of Goods does not apply to this Agreement. The state and federalcourts of Santa Clara County, California shall have exclusive jurisdiction of anydispute arising out of this Agreement.
4.7 Severability
If any provision of this Agreement is held to be invalid, illegal orunenforceable, the remaining provisions shall be unaffected thereby and remainvalid as if such provision had not been set forth herein.
4.8 Entire Agreement
This Agreement states all the terms agreed between the parties and supersedes allother agreements between the parties as of the date of acceptance relating to itssubject matter.
4.9 No Waiver
Google will not be treated as having waived any rights by not exercising (ordelaying the exercise of) any rights under this Agreement.
Appendix
- Gemma 1- Gemma 1.1- Gemma 2- Gemma 3- Gemma 3n- FunctionGemma- EmbeddingGemma- PaliGemma- PaliGemma 2- ShieldGemma- ShieldGemma 2- CodeGemma- CodeGemma 1.1- Gemma 2 JPN- DataGemma RIG- DataGemma RAG- RecurrentGemma- Gemma Scope- Gemma-APS- T5Gemma- VaultGemma- FunctionGemma- T5Gemma 2- TranslateGemma
--------------------------------------------------------------------------------Source: https://ai.google.dev/gemma/terms (retrieved for redistributioncompliance). This copy is provided to third-party recipients as required bySection 3.1. The canonical, authoritative text is the one published by Google atthe URL above; in case of any discrepancy, the canonical text governs.1234567891011121314151617181920Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms
MODIFICATION NOTICE (Gemma Terms of Use Β§3.1): the model files in thisrepository are a Model Derivative of Gemma. The upstream LeRobot pi0/pi0.5policy embeds PaliGemma/Gemma trained weights; coreai-fabric has furthermodified them by converting the policy to Apple's Core AI on-device format(.aimodel, float16, coreai-optimized). Upstream: lerobot/pi0_base @ 25c379b52ba2ff8788cab921758a3cc3fe3f77f2.
USE RESTRICTIONS (Gemma Terms of Use Β§3.2): use of these files is subject tothe Gemma Prohibited Use Policy at ai.google.dev/gemma/prohibited_use_policy,incorporated by reference into the Agreement, and must not violate applicablelaw.
FLOW-DOWN (Gemma Terms of Use Β§3.1): if you further Distribute these files orany Model Derivative of them, you must (a) provide recipients a copy of theGemma Terms of Use (the bundled LICENSE), (b) reproduce this NOTICE includingthe mandated string above, (c) carry the Β§3.2 use restrictions as anenforceable provision in your governing agreement, and (d) prominently stateany further modifications. Copyright in the underlying Gemma weights remainswith Google LLC; see the model card and LICENSE for attribution.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141---license: gemmabase_model: lerobot/pi0_basepipeline_tag: roboticslibrary_name: coreaiextra_gated_heading: "Access this Gemma Model Derivative"extra_gated_prompt: >- These weights are a Model Derivative of Gemma. Access and use are governed by the Gemma Terms of Use (https://ai.google.dev/gemma/terms) and the Gemma Prohibited Use Policy (https://ai.google.dev/gemma/prohibited_use_policy). By requesting access you agree to those terms and the Section 3.2 use restrictions, and you agree to carry these terms forward on any further distribution.extra_gated_fields: I agree to the Gemma Terms of Use and the Gemma Prohibited Use Policy: checkbox I agree to carry these terms forward on any redistribution: checkboxtags:- coreai- core-ai- coreai-fabric- aimodel- coreml- apple- apple-silicon- on-device- robotics- vla- vision-language-action- action---
> **Canonical:** [`kevinqz/Pi0-Base-CoreAI`](https://huggingface.co/kevinqz/Pi0-Base-CoreAI) β source of truth.
# Pi0 base Gemma (fabric)
> β οΈ **Robot policy β needs a matching robot to actuate.** This is> [lerobot/pi0_base](https://huggingface.co/lerobot/pi0_base) converted to an> Apple Core AI `.aimodel`. Its output is a **normalized action chunk** for> **generalist_multi_robot**. Run it on any other robot, or with mismatched calibration /> normalization stats, and it emits floats that *look* valid but **actuate> garbage** β the most dangerous silent-failure mode. It is a **base checkpoint**:> fine-tune on your robot's data before expecting useful behavior.
An Apple Core AI conversion of[lerobot/pi0_base](https://huggingface.co/lerobot/pi0_base) β a **robot policy**that maps images + proprioceptive state (+ a language instruction, when the modeluses one) to a continuous action chunk (flow_matching sampler). Produced by[coreai-fabric](https://github.com/kevinqz/coreai-fabric/blob/main/recipes/pi0-base-gemma.yaml) and indexed by[coreai-catalog](https://github.com/kevinqz/coreai-catalog).
## Model facts
| Field | Value ||---|---|| Parameters | 3.3B || Architecture | transformer || Capabilities | vision-language-action, robotics || Embodiment | generalist_multi_robot || Sampling | flow_matching (10-step) || Quantization / precision | none / float16 || On-disk size | 5.8 GB || Asset kind | split-export policy (encode, denoise_step) + norm_stats || assetVersion | 2.0 |
## Use it β this needs host code you supply
A policy is **not** a chat model: there is no stock high-level Swift runtime forit. The bundle is the split-export shape β an `encode` graph (run once perobservation) + a `denoise_step` graph (the host drives it `num_steps` times) +`norm_stats.json` (un-normalization). **You supply the host loop** (the N-stepsampler + un-normalization) in Swift. Recommended integration: keep LeRobot'sPython `RobotClient` for the servos/cameras/calibration, and run inferenceon-device β see the `io_contract` in the catalog for the exact tensors.
```bashpip install coreai-catalog && coreai-catalog install pi0-base-gemma```
## Requirements
- **Deployment: macOS 27.0+ / iOS 27.0+, Xcode 27+.** The asset serializes with `minimum_os v27`, so the on-device Swift runtime requires macOS/iOS 27+. A Mac on macOS 26 can convert and inspect it but not run it on-device.- Apple Silicon. A matching robot to actuate (see the banner).
## Verification (action parity)
- **Gate A (structure): passed** β the bundle's layout + metadata were validated on real hardware; the graphs load.- **Gate B β action_parity: 99.6% min chunk-cosine** vs the fp16 reference over 4 frames of `recorded episodes`, 10-step, fixed-noise (measured on Apple M4 Max).- This certifies the export is **numerically faithful to the source policy** β it does **NOT** certify real-world task success, embodiment transfer, or closed-loop stability. Closed-loop success-rate eval (LIBERO/ManiSkill): **not_run** (a separate future gate). Reproduce with `coreai-fabric verify`.
## Provenance
| Field | Value ||---|---|| Base model | [lerobot/pi0_base](https://huggingface.co/lerobot/pi0_base) @ `25c379b52ba2ff8788cab921758a3cc3fe3f77f2` || Converted by | `models/pi0/export.py` (version not reported) || Recipe | [pi0-base-gemma](https://github.com/kevinqz/coreai-fabric/blob/main/recipes/pi0-base-gemma.yaml) (recipe_source: fabric) || Precision / quantization | float16 / none || Conversion date | 2026-07-05 |
Machine-readable, in this repo:[`parity-report.json`](./parity-report.json) (gate results) Β·[`reproduce-manifest.json`](./reproduce-manifest.json) Β· [`LICENSE`](./LICENSE)(upstream terms).
## License and attribution
Weights Β© Google LLC and the upstream authors, licensed **gemma** β see the bundled `LICENSE`. This artifact is a **converted derivative** of the base policy: itsweights were converted to Apple Core AI format. The conversion itself iscommunity work.
These weights are a **Model Derivative of Gemma** β the upstream pi0/pi0.5 policy embeds PaliGemma/Gemma parameters. Redistribution and use are governed by the [Gemma Terms of Use](https://ai.google.dev/gemma/terms) (bundled as `LICENSE`) and restricted by the [Gemma Prohibited Use Policy](https://ai.google.dev/gemma/prohibited_use_policy) (Β§3.2, incorporated by reference). Access is gated: you must accept these terms before downloading, and must carry them forward β including the mandated NOTICE and the Β§3.2 restrictions β on any further distribution (see [`NOTICE`](./NOTICE)). **Gemma** and **PaliGemma** are trademarks of Google LLC, used here only descriptively; this conversion is **not affiliated with, produced by, or endorsed by Google**.
## Links
- **Base model:** [lerobot/pi0_base](https://huggingface.co/lerobot/pi0_base)- **Reproduce:** [recipe `pi0-base-gemma`](https://github.com/kevinqz/coreai-fabric/blob/main/recipes/pi0-base-gemma.yaml)- **Index:** [coreai-catalog](https://github.com/kevinqz/coreai-catalog) β the neutral registry tying upstream β this asset β mirror together
## The on-device Core AI ecosystem
- [coreai-fabric](https://github.com/kevinqz/coreai-fabric) β the reproducible recipe β `.aimodel` pipeline that produced this asset.- [coreai-catalog](https://github.com/kevinqz/coreai-catalog) β the index of Core AI models across the community, with provenance and integration snippets.- [apple/coreai-models](https://github.com/apple/coreai-models) β Apple's official exporters and runtimes.- [LeRobot](https://huggingface.co/lerobot) β the upstream robotics ecosystem.
## Not affiliated with Apple
Community conversion. Not produced, hosted, or endorsed by Apple. Apple and CoreAI are trademarks of Apple Inc., used here only to describe the targetruntime/format. This is an independent community conversion.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101{ "recipe_id": "pi0-base-gemma", "generated_at": "2026-07-05T05:54:20+00:00", "bundle": "build/pi0-base-gemma/pi0-base-gemma.aimodel", "conversion_manifest": null, "gate_a": { "status": "passed", "checks": [ { "name": "bundle_exists", "status": "passed", "detail": "build/pi0-base-gemma/pi0-base-gemma.aimodel" }, { "name": "bundle_files_present", "status": "passed", "detail": "3 expected file(s) present" }, { "name": "metadata_json_parses", "status": "passed", "detail": "metadata.json parses (3 top-level keys)" }, { "name": "metadata_matches_recipe", "status": "skipped", "detail": "no overlapping keys between recipe expectations and bundle metadata (nothing to compare \u2014 this is not a pass)" } ] }, "gate_b": { "metric": "action_parity", "threshold": 0.995, "tolerance": 0.001, "value": 0.9959409434700367, "status": "passed", "measurement_source": "action-parity-measured.json", "min_action_cosine": 0.9959409434700367, "mean_action_cosine": 0.9976604850639628, "cosine_ci95": [ 0.996173882324119, 0.9991470878038065 ], "max_per_dim_mae": 0.006372623443603549, "mean_per_dim_mae": 0.004926528502255708, "per_dim_mae": [ 0.004744679927825953, 0.0041079363822937275, 0.005082738637924224, 0.004705254793167142, 0.0047964429855347004, 0.0054079980850220005, 0.00445686197280888, 0.005452054977417026, 0.00449320697784427, 0.005033284187316916, 0.004934988021850629, 0.005010277748107937, 0.004863099098205597, 0.004941984176635774, 0.005386407852172877, 0.0041539299488067925, 0.005652845859527615, 0.004570949554443388, 0.005165276050567659, 0.005046918630600001, 0.0047071747779846435, 0.0052751836776733715, 0.004519798278808615, 0.0052283391952514975, 0.004447974443435708, 0.0052018451690674025, 0.00491360509395602, 0.005173883914947547, 0.005264495372772241, 0.004669740200042747, 0.00574064826965335, 0.004499087810516392 ], "action_rms": 0.11600450718900855, "max_relative_action_mae": 0.05493427452107961, "n_obs": 4, "num_steps": 10, "action_dim": 32, "chunk_size": 50, "sampler": "flow_matching_euler", "deterministic": true, "reference": "torch fp16 encode+denoise vs the fp16 coreai-optimized asset, identical 10-step Euler loop, fixed noise (isolates export+optimization fidelity)", "runner": "coreai-fabric-parity-runner/0.1.0", "environment": { "os": "macOS 26.6", "chip": "Apple M4 Max", "machine": "arm64", "runtime_version": "1.0.0b2", "coreai_torch": "0.4.1", "torch": "2.9.0", "transformers": "4.57.6" } }, "overall": "passed"}LICENSEAdded+225
NOTICEAdded+20
README.mdAdded+141
parity-report.jsonAdded+101