requilence commited on
Commit
c27f901
·
verified ·
1 Parent(s): 1b80b00

Publish validated five-bucket EmbeddingGemma 2 Core ML model

Browse files
Files changed (37) hide show
  1. .gitattributes +1 -0
  2. EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
  3. EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
  4. EmbeddingGemma2Owned.mlpackage/Manifest.json +18 -0
  5. LICENSE +203 -0
  6. NOTICE +21 -0
  7. README.md +183 -0
  8. SHA256SUMS +35 -0
  9. licenses/QVAC-MIT.txt +21 -0
  10. release-manifest.json +340 -0
  11. source-config.json +177 -0
  12. tokenizer.json +3 -0
  13. tokenizer_config.json +57 -0
  14. validation/2026-11-12-four-bucket/REPORT.txt +94 -0
  15. validation/2026-11-12-four-bucket/asset-manifest.json +263 -0
  16. validation/2026-11-12-four-bucket/corpus-parity.json +73 -0
  17. validation/2026-11-12-four-bucket/publication-manifest.json +24 -0
  18. validation/2026-11-12-four-bucket/rebuild-reproducibility.json +29 -0
  19. validation/2026-11-12-four-bucket/summary.json +461 -0
  20. validation/2026-11-12-four-bucket/tokenizer-parity.json +5 -0
  21. validation/2026-11-12-four-bucket/torch-parity.json +121 -0
  22. validation/2026-11-16-five-bucket/REPORT.txt +133 -0
  23. validation/2026-11-16-five-bucket/asset-manifest.json +780 -0
  24. validation/2026-11-16-five-bucket/benchmark-assets.json +64 -0
  25. validation/2026-11-16-five-bucket/build-environment.json +37 -0
  26. validation/2026-11-16-five-bucket/cold.json +0 -0
  27. validation/2026-11-16-five-bucket/corpus-parity.json +50 -0
  28. validation/2026-11-16-five-bucket/hf-reference.json +0 -0
  29. validation/2026-11-16-five-bucket/matched-latency.json +151 -0
  30. validation/2026-11-16-five-bucket/memory-alone.json +11 -0
  31. validation/2026-11-16-five-bucket/memory-pair.json +12 -0
  32. validation/2026-11-16-five-bucket/rebuild-reproducibility.json +30 -0
  33. validation/2026-11-16-five-bucket/release-validation.json +53 -0
  34. validation/2026-11-16-five-bucket/size-comparison.json +78 -0
  35. validation/2026-11-16-five-bucket/summary.json +1267 -0
  36. validation/2026-11-16-five-bucket/torch-parity.json +171 -0
  37. validation/2026-11-16-five-bucket/warm.json +37 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:715c377bda514242cabc6497843ca831d1eec1d84b5e48c6f93a13663e6ce104
3
+ size 9043834
EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86bf461bce224075ea9ff6fc6a2c2abe50cd701eee58f1d3f5d8e6988d234657
3
+ size 565387008
EmbeddingGemma2Owned.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "463C36EF-481E-46A2-9806-B720A91CD58D": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "FAE92005-CBB8-41D8-AC82-80A331EAA0C3": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "FAE92005-CBB8-41D8-AC82-80A331EAA0C3"
18
+ }
LICENSE ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2018- The Hugging Face team. All rights reserved.
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "[]"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright [yyyy] [name of copyright owner]
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ EmbeddingGemma 2 text Core ML conversion
2
+
3
+ Original model: Google DeepMind, google/embeddinggemma-2, revision
4
+ 914f7f89142e33e77833254d9c9b90c3cef7303b, Apache License 2.0.
5
+ Original tokenizer files are unchanged.
6
+
7
+ Modified model: text-only Core ML graph; fixed 128/256/512/1024/2048 functions;
8
+ FP16 encoder weights/compute; FP32 final L2 normalization; shared-weight
9
+ packaging; token-ID inputs, right-padding mask and original sliding window.
10
+ No additional training, pruning or integer weight quantization.
11
+
12
+ The forward adapts Hugging Face Transformers v5.19.0, Apache-2.0.
13
+ Copyright 2026 the HuggingFace Team. All rights reserved.
14
+ Overflow-safe RMS/L2 formulas adapt the MIT-licensed QVAC exporter at
15
+ tetherto/qvac-fabric-llm.cpp commit 2ed826df0c0eefc7135e9c3acc45aaa277f9b6ff.
16
+ The MIT notice is preserved in licenses/QVAC-MIT.txt.
17
+
18
+ Conversion source, upstream copies and full instructions:
19
+ https://github.com/anyproto/any/tree/6424fab8cb6bd2874ce08e85d9081e24ff96902f/scripts/embedbench/research/eg2_coreml
20
+
21
+ This is an independent conversion, not an official Google release.
README.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: google/embeddinggemma-2
4
+ pipeline_tag: feature-extraction
5
+ language:
6
+ - multilingual
7
+ tags:
8
+ - coreml
9
+ - apple-neural-engine
10
+ - embeddings
11
+ - sentence-similarity
12
+ - text-only
13
+ ---
14
+
15
+ # EmbeddingGemma 2 — text Core ML, 128–2048 tokens
16
+
17
+ An owned conversion of Google's stock EmbeddingGemma 2 text encoder for Apple
18
+ Silicon, with five fixed functions in one shared-weight Core ML package.
19
+ Encoder weights and compute use FP16; final L2 normalization uses FP32.
20
+ The output is a normalized 768-dimensional embedding.
21
+
22
+ **Validated on November 16, 2026:** M2 MacBook Air, 16 GiB RAM, macOS 27.2.1. All 16 fresh stock-HF fixtures and all 1,499 fitting FiQA documents passed their numerical gates. All five Core ML compute plans prefer ANE for the transformer core. Native Swift/Core ML validation is separate from production application integration.
23
+
24
+ The original weights, configuration and tokenizer are pinned to
25
+ [`google/embeddinggemma-2@914f7f89142e33e77833254d9c9b90c3cef7303b`](https://huggingface.co/google/embeddinggemma-2/tree/914f7f89142e33e77833254d9c9b90c3cef7303b).
26
+ The original tokenizer files are included unchanged. No training, pruning,
27
+ application head removal or integer weight quantization was applied.
28
+ Only the text encoder is included.
29
+
30
+ ## Files
31
+
32
+ | File | Purpose |
33
+ |---|---|
34
+ | `EmbeddingGemma2Owned.mlpackage/` | 574,431,459 bytes (547.82 MiB), five functions sharing weights |
35
+ | `tokenizer.json`, `tokenizer_config.json` | Unchanged upstream tokenizer |
36
+ | `source-config.json` | Original model configuration, for provenance |
37
+ | `release-manifest.json`, `SHA256SUMS` | Source/converter pins and file integrity |
38
+ | `validation/2026-11-16-five-bucket/` | Validation of this five-function artifact |
39
+ | `validation/2026-11-12-four-bucket/` | Historical baseline; not results for the new artifact |
40
+ | `LICENSE`, `NOTICE`, `licenses/` | License and attribution |
41
+
42
+ The `.mlpackage` was exported with a macOS 15 minimum target. The three package files are published directly, without an archive. Compile the package on the deployment device and retain the
43
+ compiled artifact in an application-owned directory.
44
+
45
+ ## Download and use
46
+
47
+ ```sh
48
+ hf download anylab/embeddinggemma-2-coreml --local-dir embeddinggemma-2-coreml
49
+ cd embeddinggemma-2-coreml
50
+ shasum -a 256 -c SHA256SUMS
51
+ ```
52
+
53
+ For deployed applications, pin an immutable HF revision and verify the manifest.
54
+ The immutable HF commit identifies exact package bytes; the release manifest
55
+ also records the converter source and per-function build provenance.
56
+
57
+ The native Swift validator and complete reproduction instructions are in
58
+ [`anyproto/any` at commit `6424fab8`](https://github.com/anyproto/any/tree/6424fab8cb6bd2874ce08e85d9081e24ff96902f/scripts/embedbench/research/eg2_coreml).
59
+ Native inference uses Core ML and does not need a Python runtime.
60
+
61
+ For an interactive Python check on an Apple Silicon Mac, use Python 3.12 with
62
+ Core ML Tools 9.0, NumPy and `tokenizers`:
63
+
64
+ ```python
65
+ from pathlib import Path
66
+ import coremltools as ct
67
+ import numpy as np
68
+ from tokenizers import Tokenizer
69
+
70
+ root = Path("embeddinggemma-2-coreml")
71
+ tokenizer = Tokenizer.from_file(str(root / "tokenizer.json"))
72
+ text = "task: search result | query: How do bond prices respond to interest rates?"
73
+ ids = tokenizer.encode(text).ids
74
+ if not ids or ids[0] != 2:
75
+ ids.insert(0, 2)
76
+ if ids[-1] != 1:
77
+ ids.append(1)
78
+
79
+ length = next((n for n in (128, 256, 512, 1024, 2048) if len(ids) <= n), None)
80
+ if length is None:
81
+ raise ValueError("Input exceeds this package's 2048-token limit")
82
+ input_ids = np.zeros((1, length), dtype=np.int32)
83
+ attention_mask = np.zeros((1, length), dtype=np.float32)
84
+ input_ids[0, :len(ids)] = ids
85
+ attention_mask[0, :len(ids)] = 1
86
+
87
+ model = ct.models.MLModel(
88
+ str(root / "EmbeddingGemma2Owned.mlpackage"),
89
+ function_name=f"s{length}",
90
+ compute_units=ct.ComputeUnit.CPU_AND_NE,
91
+ )
92
+ embedding = model.predict({
93
+ "input_ids": input_ids,
94
+ "attention_mask": attention_mask,
95
+ })["embedding"][0]
96
+ assert embedding.shape == (768,) and np.isfinite(embedding).all()
97
+ ```
98
+
99
+ ## Runtime contract
100
+
101
+ | Function | `input_ids` | `attention_mask` | `embedding` |
102
+ |---|---|---|---|
103
+ | `s128` | int32 `[1,128]` | float32 `[1,128]` | float32 `[1,768]` |
104
+ | `s256` | int32 `[1,256]` | float32 `[1,256]` | float32 `[1,768]` |
105
+ | `s512` | int32 `[1,512]` | float32 `[1,512]` | float32 `[1,768]` |
106
+ | `s1024` | int32 `[1,1024]` | float32 `[1,1024]` | float32 `[1,768]` |
107
+ | `s2048` | int32 `[1,2048]` | float32 `[1,2048]` | float32 `[1,768]` |
108
+
109
+ - Choose the smallest fitting bucket after adding prompts and special tokens.
110
+ - Document prefix: `title: none | text: `, or the actual title.
111
+ - Query prefix: `task: search result | query: `.
112
+ - BOS=2, EOS=1, pad=0; right-pad with mask 0. Real tokens, including prompt and
113
+ special tokens, have mask 1 and participate in mean pooling.
114
+ - Reject or route inputs over 2048 tokens elsewhere. The package does not choose
115
+ an application truncation policy. Long functions preserve the source model's
116
+ sliding-window behavior.
117
+ - Output is the raw normalized model embedding. Application-specific head
118
+ projection and Matryoshka truncation/renormalization are downstream operations.
119
+
120
+ ## Validation
121
+
122
+ See the [current report](validation/2026-11-16-five-bucket/REPORT.txt) and
123
+ [release validation summary](validation/2026-11-16-five-bucket/release-validation.json).
124
+
125
+ | Measurement | Result |
126
+ |---|---|
127
+ | Rewritten forward vs stock HF FP32, 16 fixtures | Minimum cosine 0.999999999997; max absolute error 2.82e-7 |
128
+ | Native Core ML vs fresh stock HF FP32, 16 fixtures | Minimum cosine 0.99992672; max absolute error 0.00221308 |
129
+ | Long fixtures | 1151-token document, 1630-token multilingual text, exact 2048 tokens, plus short text padded to 2048 |
130
+ | Corpus | 1,499/1,500 FiQA documents; one 2212-token document excluded without truncation |
131
+ | Corpus norms | 0.999999893–1.000000097; finite, nonzero 768-dimensional vectors |
132
+ | Previous owned output overlap | All 1,491 overlapping outputs exactly unchanged |
133
+ | Sequential corpus inference, excluding tokenization | 56.64 documents/s; p50 7.34 ms; p95 35.73 ms |
134
+ | Five-function cold / cached load | 164.93 s / 3.95 s; package compilation separately 2.38 s |
135
+ | Matched long-input calls, 55 measured | ANE mean 300.24 ms; Metal Q8 mean 435.10 ms; aggregate 1.45× |
136
+ | Exact 2048-token median | ANE 299.55 ms; Metal Q8 726.67 ms (2.43×) |
137
+ | Exact 1025-token median | Essentially tied: ANE 299.53 ms; Metal Q8 299.22 ms |
138
+
139
+ The matched benchmark uses identical complete token IDs, two warmup rounds and five measured rounds over 11 inputs. It includes input allocation, prediction and normalized output copying, and excludes tokenization/model loading. Metal uses llama.cpp b11600, yzma 1.30.0, direct `llama_encode`, and Q8_0 weights; ANE uses FP16 weights with FP32 final normalization. These are direct runtime paths with different precision and host APIs, not exact application wrappers. No downstream head projection is applied. The comparison does not show an ANE advantage at every length.
140
+
141
+ Core ML compute plans report preferred placement and estimated cost, not an
142
+ Instruments runtime trace or a guarantee of ANE-only execution on other systems.
143
+ `cpuAndNeuralEngine` permits CPU operations; validation checks the transformer
144
+ core separately. Fresh stock-HF checks are bounded fixtures. Historical results
145
+ are labeled separately. These measure conversion fidelity, not broad retrieval
146
+ quality or suitability for every application.
147
+
148
+ Final FP32 normalization is intentional: the initial all-FP16 output failed a
149
+ strict unit-norm gate on one 413-token document. Keeping only the final L2
150
+ arithmetic in FP32 fixed it; that document remains a regression fixture.
151
+
152
+ ## Reproduction and limitations
153
+
154
+ The converter uses Python 3.12.9, Torch 2.7.0, Transformers 5.19.0, Core ML Tools
155
+ 9.0, NumPy 2.2.6 and safetensors 0.8.0. Full pins, source hashes, fixtures and
156
+ instructions are in the [source repository](https://github.com/anyproto/any/tree/6424fab8cb6bd2874ce08e85d9081e24ff96902f/scripts/embedbench/research/eg2_coreml).
157
+ This artifact merges the four exports retained from the validated November 12
158
+ build with a new s2048 export from November 16. The forward implementation,
159
+ source weights and dependency pins are unchanged. Individual conversion
160
+ fingerprints are preserved; they are not presented as one identical build.
161
+ The final merged package is validated directly. A fresh s2048 rebuild reproduced
162
+ identical weight-file bytes and an identical parsed model graph; the historical
163
+ s128 rebuild did too. Whole-package byte identity across rebuilds is not claimed:
164
+ UUIDs and protobuf map ordering vary.
165
+
166
+ Adding s2048 increased package size by 16,489,148 bytes (15.73 MiB, 2.96%).
167
+ Merely downloading a function does not load it. Applications should load larger
168
+ functions on demand and explicitly release idle functions; lazy loading without
169
+ eviction eventually retains the full set.
170
+
171
+ On the measured M2/macOS 27.2.1 run, s2048 alone used about **649 MiB wired neural memory**; s128+s2048 used **932 MiB**; all five recently active functions used **2,031 MiB**. These are separate from ordinary process footprint. Explicitly releasing s2048 removed its wired allocation immediately: zero wired when it was alone, or 283 MiB while s128 remained active. About 592 MiB remained reclaimable after releasing s2048; after releasing both functions, zero was wired and about 874 MiB remained reclaimable. Releasing a function therefore does not imply that every cached page disappears immediately. Older macOS 15 tests required explicit release rather than relying on idle reclaimability.
172
+
173
+ Disk weight sharing does not eliminate per-function neural allocations. Full-app
174
+ 8 GiB safety with bucket eviction and llama.cpp fallback, and the exact
175
+ specialization-cache invalidation rules, remain unvalidated. First loading can
176
+ take minutes. This repository provides the converted model, not a production
177
+ memory/fallback implementation.
178
+
179
+ The model derives from Google DeepMind's Apache-2.0 checkpoint. The fixed-shape
180
+ forward adapts Transformers v5.19.0; overflow-safe normalization formulas adapt
181
+ the MIT-licensed [QVAC exporter](https://github.com/tetherto/qvac-fabric-llm.cpp/blob/2ed826df0c0eefc7135e9c3acc45aaa277f9b6ff/examples/embedding-coreml/export_coreml.py).
182
+ See `NOTICE`, `LICENSE` and `licenses/`. This is an independent conversion, not
183
+ an official Google release.
SHA256SUMS ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 715c377bda514242cabc6497843ca831d1eec1d84b5e48c6f93a13663e6ce104 EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/model.mlmodel
2
+ 86bf461bce224075ea9ff6fc6a2c2abe50cd701eee58f1d3f5d8e6988d234657 EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/weights/weight.bin
3
+ 8f494dc20af594dd81ca1082c50d0db80eae392a84621955de1d1c5c0e99aed2 EmbeddingGemma2Owned.mlpackage/Manifest.json
4
+ 77fd4710def9ec3c0f6225800e0235f15a425abd4a8b03559127fcd782612049 LICENSE
5
+ 75c1febc3806782ec847a8216b43b0dea15a57ee2f7c498523613397ab5b89dd NOTICE
6
+ 10324a3aeacf1dd78213f08d268d810da5ac1f76e0676cf20ed2159aa5bd8bcb README.md
7
+ 94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d licenses/QVAC-MIT.txt
8
+ 6f8e38ca673b3c2303882cbfd1bfa5f4759297cabcb002f72474a04e5e0342af release-manifest.json
9
+ b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3 source-config.json
10
+ 4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4 tokenizer.json
11
+ 17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874 tokenizer_config.json
12
+ abff6f0a5e30ae2e7eead69955396b34db36892d99e31c1e83e3a90d471e3385 validation/2026-11-12-four-bucket/REPORT.txt
13
+ ab4d48964fb192cd3ac0855397af12d2e90d17ee708d6c075a6deebfc4f4f03e validation/2026-11-12-four-bucket/asset-manifest.json
14
+ ac20be2d0b304e318ce0c09b905209acd1c617a4ae6b4d796431a992195bfbd7 validation/2026-11-12-four-bucket/corpus-parity.json
15
+ 1af676491db605049507a0c5fc4f71bc1bfefaf9981d3b55c238955768efe5d6 validation/2026-11-12-four-bucket/publication-manifest.json
16
+ 6d61730a1980fe60d168814ac2516272c80c3d87df227a2e6fc6c371aef95cef validation/2026-11-12-four-bucket/rebuild-reproducibility.json
17
+ e31a32d385b8a1ff112ac5446bd64db381c86b2566f887b1c6ed14962eef9d58 validation/2026-11-12-four-bucket/summary.json
18
+ 6719ea47d133c11094946baf25cfe81cc78ac3e236c5c35951c21b6a1b889287 validation/2026-11-12-four-bucket/tokenizer-parity.json
19
+ 522b2b8dd9182bb2c78939982cb3417ccb9b7f91358340e0433badc45031a34b validation/2026-11-12-four-bucket/torch-parity.json
20
+ 8f130f8ad19a46f0f7448d8ad1689a4fe21d60c3c13fb27cc07c6cbb79d04b36 validation/2026-11-16-five-bucket/REPORT.txt
21
+ 40022c10569c23133744fcb3cb16d5e71a62772696a01d53ce71382a154c38bc validation/2026-11-16-five-bucket/asset-manifest.json
22
+ 7f3b4636d51bba96c0917d72b16eea60c246c728b4f2fb8ed1e53cd0e071ee11 validation/2026-11-16-five-bucket/benchmark-assets.json
23
+ 7ecbaaaca5119d3292dbf6a9271d02022773d268d34c3150616a9f65d9b32ded validation/2026-11-16-five-bucket/build-environment.json
24
+ ddd03af14c367e88a76ad573382fe8e3fc811cffc353404d04619489b9271e38 validation/2026-11-16-five-bucket/cold.json
25
+ a642846e8927a497572d3b002adc4fba115e5c82fc9fc806dad18c0f25d283f1 validation/2026-11-16-five-bucket/corpus-parity.json
26
+ ea7bef388fbca8848181c32152204d3107accb205de5c4a8c49767e2ddd3b69b validation/2026-11-16-five-bucket/hf-reference.json
27
+ 9d28c9e5534b4894d121641d250bad563f662a60cfdb972130fa988128cb81f5 validation/2026-11-16-five-bucket/matched-latency.json
28
+ fa6d27a3710cf94f0cf4848738107ee242efb8ffbf80ec6e55bc67dfecd39178 validation/2026-11-16-five-bucket/memory-alone.json
29
+ 36320cb7d25de557ff9a9367d8aee2d932d270111783c67eeea5d46f141d9fbd validation/2026-11-16-five-bucket/memory-pair.json
30
+ 0aac88b5b61938c9c625590451de42761b801e04c36482c5445a6d4f35042ca2 validation/2026-11-16-five-bucket/rebuild-reproducibility.json
31
+ 12d3ff863acaa9037b4f69e524eebbeb28fdc8d1ffdbe80640672ec65b695508 validation/2026-11-16-five-bucket/release-validation.json
32
+ e506c0cb9b4cfbe9070e01b5063fc6208aa12184c3b9dcc9131bdc25b585d0de validation/2026-11-16-five-bucket/size-comparison.json
33
+ 0bd7ba3e57e5d52630846097a207c753ad29bbf7f9fe23b6a2eff49cb4c6dbe6 validation/2026-11-16-five-bucket/summary.json
34
+ 85a27d412e19ad5947a9812856cffdb8afff9558e4a790afb89d67d97361c831 validation/2026-11-16-five-bucket/torch-parity.json
35
+ f05b09e05e4a8b296f99dffb3b1cb848296e781ef690060be27f020dba4d5b63 validation/2026-11-16-five-bucket/warm.json
licenses/QVAC-MIT.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023-2026 The ggml authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
release-manifest.json ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repository": "anylab/embeddinggemma-2-coreml",
3
+ "publicationDate": "2026-11-16",
4
+ "validationDate": "2026-11-16",
5
+ "modelPackage": "EmbeddingGemma2Owned.mlpackage",
6
+ "modelPackageBytes": 574431459,
7
+ "source": {
8
+ "repo": "google/embeddinggemma-2",
9
+ "revision": "914f7f89142e33e77833254d9c9b90c3cef7303b",
10
+ "files": {
11
+ "config.json": {
12
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3",
13
+ "bytes": 4455
14
+ },
15
+ "model.safetensors": {
16
+ "sha256": "197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79",
17
+ "bytes": 1488915288
18
+ },
19
+ "tokenizer.json": {
20
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4",
21
+ "bytes": 32170510
22
+ },
23
+ "tokenizer_config.json": {
24
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874",
25
+ "bytes": 1599
26
+ }
27
+ }
28
+ },
29
+ "converter": {
30
+ "repository": "anyproto/any",
31
+ "commit": "6424fab8cb6bd2874ce08e85d9081e24ff96902f",
32
+ "path": "scripts/embedbench/research/eg2_coreml"
33
+ },
34
+ "perFunctionConversionProvenance": {
35
+ "s128": {
36
+ "files": {
37
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
38
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
39
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
40
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
41
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
42
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
43
+ },
44
+ "versions": {
45
+ "torch": "2.7.0",
46
+ "transformers": "5.19.0",
47
+ "coremltools": "9.0",
48
+ "numpy": "2.2.6",
49
+ "safetensors": "0.8.0",
50
+ "tokenizers": "0.23.3"
51
+ },
52
+ "python": "3.12.9",
53
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
54
+ },
55
+ "s256": {
56
+ "files": {
57
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
58
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
59
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
60
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
61
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
62
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
63
+ },
64
+ "versions": {
65
+ "torch": "2.7.0",
66
+ "transformers": "5.19.0",
67
+ "coremltools": "9.0",
68
+ "numpy": "2.2.6",
69
+ "safetensors": "0.8.0",
70
+ "tokenizers": "0.23.3"
71
+ },
72
+ "python": "3.12.9",
73
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
74
+ },
75
+ "s512": {
76
+ "files": {
77
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
78
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
79
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
80
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
81
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
82
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
83
+ },
84
+ "versions": {
85
+ "torch": "2.7.0",
86
+ "transformers": "5.19.0",
87
+ "coremltools": "9.0",
88
+ "numpy": "2.2.6",
89
+ "safetensors": "0.8.0",
90
+ "tokenizers": "0.23.3"
91
+ },
92
+ "python": "3.12.9",
93
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
94
+ },
95
+ "s1024": {
96
+ "files": {
97
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
98
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
99
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
100
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
101
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
102
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
103
+ },
104
+ "versions": {
105
+ "torch": "2.7.0",
106
+ "transformers": "5.19.0",
107
+ "coremltools": "9.0",
108
+ "numpy": "2.2.6",
109
+ "safetensors": "0.8.0",
110
+ "tokenizers": "0.23.3"
111
+ },
112
+ "python": "3.12.9",
113
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
114
+ },
115
+ "s2048": {
116
+ "files": {
117
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
118
+ "parity.py": "2c680ea416ddde788df7b68ef08d53a7565264a7224f6b04ba592fdbaa61b27c",
119
+ "buckets.py": "ff2261663941716c9b6884bb11a9cbaa75d660d6c41061d03c9ce0a0c473656a",
120
+ "tokens.json": "ff7f41a9586d566abf33f14aa9033f40e6d701698baa1d552b2f12f8f742a13a",
121
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
122
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
123
+ "provenance.py": "ab05275c8da35cd35847e14fac38c31aa3142adb2cfa0f351f3fbbebfd693330",
124
+ "convert.py": "432a26fb6bea8e7f943a783592c3f6c8bdecf56bce4d78c465d3f203c05ea5ca"
125
+ },
126
+ "versions": {
127
+ "torch": "2.7.0",
128
+ "transformers": "5.19.0",
129
+ "coremltools": "9.0",
130
+ "numpy": "2.2.6",
131
+ "safetensors": "0.8.0",
132
+ "tokenizers": "0.23.3"
133
+ },
134
+ "python": "3.12.9",
135
+ "fingerprint": "b2707f2f48091d50d70fb4d52181924aedf0e5ea23521d123914d0775db69e33"
136
+ }
137
+ },
138
+ "functions": [
139
+ "s128",
140
+ "s256",
141
+ "s512",
142
+ "s1024",
143
+ "s2048"
144
+ ],
145
+ "encoderPrecision": "FP16",
146
+ "finalNormalizationPrecision": "FP32",
147
+ "inputContract": "int32 input_ids[1,L]; float32 attention_mask[1,L]; BOS2/EOS1/pad0/right-padding",
148
+ "outputContract": "float32 embedding[1,768], raw L2-normalized; head projection and truncation downstream",
149
+ "validation": {
150
+ "completed": true,
151
+ "parityPassed": true,
152
+ "placementPassed": true,
153
+ "modelPackageBytes": 574431459,
154
+ "target": {
155
+ "os": "Version 27.2.1 (Build 26B131)",
156
+ "chip": "Apple M2",
157
+ "ramGiB": 16
158
+ },
159
+ "freshHFCoreMLParity": {
160
+ "cases": 16,
161
+ "minimumCosine": 0.9999267183471062,
162
+ "maximumAbsoluteError": 0.0022130757570266724,
163
+ "maximumNormError": 8.305185117407632e-08
164
+ },
165
+ "longHFCoreMLParity": {
166
+ "cases": 3,
167
+ "minimumCosine": 0.9999267183471062,
168
+ "maximumAbsoluteError": 0.0022130757570266724,
169
+ "maximumNormError": 6.090509219180973e-08
170
+ },
171
+ "corpusDocuments": 1499,
172
+ "excludedOver2048": [
173
+ {
174
+ "documentIndex": 178,
175
+ "tokens": 2212
176
+ }
177
+ ],
178
+ "matchedLatency": {
179
+ "ane": {
180
+ "count": 55,
181
+ "meanMs": 300.240766690909,
182
+ "p50Ms": 299.747666,
183
+ "p95Ms": 303.1063661,
184
+ "totalMs": 16513.242167999997
185
+ },
186
+ "metal": {
187
+ "count": 55,
188
+ "meanMs": 435.0976386363638,
189
+ "p50Ms": 423.657709,
190
+ "p95Ms": 724.4996626,
191
+ "totalMs": 23930.37012500001
192
+ },
193
+ "aggregateSpeedupVsMetal": 1.4491624286460965,
194
+ "boundary1025": "Essentially tied: ANE299.528ms vsMetal299.215ms median",
195
+ "scope": "Direct-runtime comparison (not exact production wrappers): Core ML FP16 encoder + FP32 L2 versus stock Q8_0 GGUF. Different precisions and Swift/Go host APIs; not a precision-controlled backend study."
196
+ },
197
+ "memory": "649MiB wired for s2048 alone;932MiB for s128+s2048. Release removes wired allocation but reclaimable cache remains. These are neural allocations, separate from ordinary process footprint.",
198
+ "eightGiBFullAppSafetyValidated": false,
199
+ "productionRuntimeValidated": false,
200
+ "publicEvidencePaths": "Local absolute paths normalized for publication; original evidence retained privately."
201
+ },
202
+ "files": {
203
+ "EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/model.mlmodel": {
204
+ "bytes": 9043834,
205
+ "sha256": "715c377bda514242cabc6497843ca831d1eec1d84b5e48c6f93a13663e6ce104"
206
+ },
207
+ "EmbeddingGemma2Owned.mlpackage/Data/com.apple.CoreML/weights/weight.bin": {
208
+ "bytes": 565387008,
209
+ "sha256": "86bf461bce224075ea9ff6fc6a2c2abe50cd701eee58f1d3f5d8e6988d234657"
210
+ },
211
+ "EmbeddingGemma2Owned.mlpackage/Manifest.json": {
212
+ "bytes": 617,
213
+ "sha256": "8f494dc20af594dd81ca1082c50d0db80eae392a84621955de1d1c5c0e99aed2"
214
+ },
215
+ "LICENSE": {
216
+ "bytes": 11418,
217
+ "sha256": "77fd4710def9ec3c0f6225800e0235f15a425abd4a8b03559127fcd782612049"
218
+ },
219
+ "NOTICE": {
220
+ "bytes": 1076,
221
+ "sha256": "75c1febc3806782ec847a8216b43b0dea15a57ee2f7c498523613397ab5b89dd"
222
+ },
223
+ "README.md": {
224
+ "bytes": 10408,
225
+ "sha256": "10324a3aeacf1dd78213f08d268d810da5ac1f76e0676cf20ed2159aa5bd8bcb"
226
+ },
227
+ "licenses/QVAC-MIT.txt": {
228
+ "bytes": 1078,
229
+ "sha256": "94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d"
230
+ },
231
+ "source-config.json": {
232
+ "bytes": 4455,
233
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3"
234
+ },
235
+ "tokenizer.json": {
236
+ "bytes": 32170510,
237
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4"
238
+ },
239
+ "tokenizer_config.json": {
240
+ "bytes": 1599,
241
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874"
242
+ },
243
+ "validation/2026-11-12-four-bucket/REPORT.txt": {
244
+ "bytes": 8986,
245
+ "sha256": "abff6f0a5e30ae2e7eead69955396b34db36892d99e31c1e83e3a90d471e3385"
246
+ },
247
+ "validation/2026-11-12-four-bucket/asset-manifest.json": {
248
+ "bytes": 6659,
249
+ "sha256": "ab4d48964fb192cd3ac0855397af12d2e90d17ee708d6c075a6deebfc4f4f03e"
250
+ },
251
+ "validation/2026-11-12-four-bucket/corpus-parity.json": {
252
+ "bytes": 1779,
253
+ "sha256": "ac20be2d0b304e318ce0c09b905209acd1c617a4ae6b4d796431a992195bfbd7"
254
+ },
255
+ "validation/2026-11-12-four-bucket/publication-manifest.json": {
256
+ "bytes": 1632,
257
+ "sha256": "1af676491db605049507a0c5fc4f71bc1bfefaf9981d3b55c238955768efe5d6"
258
+ },
259
+ "validation/2026-11-12-four-bucket/rebuild-reproducibility.json": {
260
+ "bytes": 1353,
261
+ "sha256": "6d61730a1980fe60d168814ac2516272c80c3d87df227a2e6fc6c371aef95cef"
262
+ },
263
+ "validation/2026-11-12-four-bucket/summary.json": {
264
+ "bytes": 11941,
265
+ "sha256": "e31a32d385b8a1ff112ac5446bd64db381c86b2566f887b1c6ed14962eef9d58"
266
+ },
267
+ "validation/2026-11-12-four-bucket/tokenizer-parity.json": {
268
+ "bytes": 57,
269
+ "sha256": "6719ea47d133c11094946baf25cfe81cc78ac3e236c5c35951c21b6a1b889287"
270
+ },
271
+ "validation/2026-11-12-four-bucket/torch-parity.json": {
272
+ "bytes": 2953,
273
+ "sha256": "522b2b8dd9182bb2c78939982cb3417ccb9b7f91358340e0433badc45031a34b"
274
+ },
275
+ "validation/2026-11-16-five-bucket/REPORT.txt": {
276
+ "bytes": 13365,
277
+ "sha256": "8f130f8ad19a46f0f7448d8ad1689a4fe21d60c3c13fb27cc07c6cbb79d04b36"
278
+ },
279
+ "validation/2026-11-16-five-bucket/asset-manifest.json": {
280
+ "bytes": 20443,
281
+ "sha256": "40022c10569c23133744fcb3cb16d5e71a62772696a01d53ce71382a154c38bc"
282
+ },
283
+ "validation/2026-11-16-five-bucket/benchmark-assets.json": {
284
+ "bytes": 2454,
285
+ "sha256": "7f3b4636d51bba96c0917d72b16eea60c246c728b4f2fb8ed1e53cd0e071ee11"
286
+ },
287
+ "validation/2026-11-16-five-bucket/build-environment.json": {
288
+ "bytes": 1212,
289
+ "sha256": "7ecbaaaca5119d3292dbf6a9271d02022773d268d34c3150616a9f65d9b32ded"
290
+ },
291
+ "validation/2026-11-16-five-bucket/cold.json": {
292
+ "bytes": 426312,
293
+ "sha256": "ddd03af14c367e88a76ad573382fe8e3fc811cffc353404d04619489b9271e38"
294
+ },
295
+ "validation/2026-11-16-five-bucket/corpus-parity.json": {
296
+ "bytes": 1556,
297
+ "sha256": "a642846e8927a497572d3b002adc4fba115e5c82fc9fc806dad18c0f25d283f1"
298
+ },
299
+ "validation/2026-11-16-five-bucket/hf-reference.json": {
300
+ "bytes": 363424,
301
+ "sha256": "ea7bef388fbca8848181c32152204d3107accb205de5c4a8c49767e2ddd3b69b"
302
+ },
303
+ "validation/2026-11-16-five-bucket/matched-latency.json": {
304
+ "bytes": 5219,
305
+ "sha256": "9d28c9e5534b4894d121641d250bad563f662a60cfdb972130fa988128cb81f5"
306
+ },
307
+ "validation/2026-11-16-five-bucket/memory-alone.json": {
308
+ "bytes": 248,
309
+ "sha256": "fa6d27a3710cf94f0cf4848738107ee242efb8ffbf80ec6e55bc67dfecd39178"
310
+ },
311
+ "validation/2026-11-16-five-bucket/memory-pair.json": {
312
+ "bytes": 279,
313
+ "sha256": "36320cb7d25de557ff9a9367d8aee2d932d270111783c67eeea5d46f141d9fbd"
314
+ },
315
+ "validation/2026-11-16-five-bucket/rebuild-reproducibility.json": {
316
+ "bytes": 1372,
317
+ "sha256": "0aac88b5b61938c9c625590451de42761b801e04c36482c5445a6d4f35042ca2"
318
+ },
319
+ "validation/2026-11-16-five-bucket/release-validation.json": {
320
+ "bytes": 1803,
321
+ "sha256": "12d3ff863acaa9037b4f69e524eebbeb28fdc8d1ffdbe80640672ec65b695508"
322
+ },
323
+ "validation/2026-11-16-five-bucket/size-comparison.json": {
324
+ "bytes": 2726,
325
+ "sha256": "e506c0cb9b4cfbe9070e01b5063fc6208aa12184c3b9dcc9131bdc25b585d0de"
326
+ },
327
+ "validation/2026-11-16-five-bucket/summary.json": {
328
+ "bytes": 37699,
329
+ "sha256": "0bd7ba3e57e5d52630846097a207c753ad29bbf7f9fe23b6a2eff49cb4c6dbe6"
330
+ },
331
+ "validation/2026-11-16-five-bucket/torch-parity.json": {
332
+ "bytes": 4355,
333
+ "sha256": "85a27d412e19ad5947a9812856cffdb8afff9558e4a790afb89d67d97361c831"
334
+ },
335
+ "validation/2026-11-16-five-bucket/warm.json": {
336
+ "bytes": 904,
337
+ "sha256": "f05b09e05e4a8b296f99dffb3b1cb848296e781ef690060be27f020dba4d5b63"
338
+ }
339
+ }
340
+ }
source-config.json ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "EmbeddingGemma2Model"
4
+ ],
5
+ "audio_config": {
6
+ "_name_or_path": "",
7
+ "architectures": null,
8
+ "attention_chunk_size": 12,
9
+ "attention_context_left": 13,
10
+ "attention_context_right": 0,
11
+ "attention_invalid_logits_value": -1000000000.0,
12
+ "attention_logit_cap": 50.0,
13
+ "chunk_size_feed_forward": 0,
14
+ "conv_kernel_size": 5,
15
+ "dtype": "bfloat16",
16
+ "gradient_clipping": 10000000000.0,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "LABEL_0",
21
+ "1": "LABEL_1"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "is_encoder_decoder": false,
25
+ "label2id": {
26
+ "LABEL_0": 0,
27
+ "LABEL_1": 1
28
+ },
29
+ "model_type": "gemma4_audio",
30
+ "num_attention_heads": 8,
31
+ "num_hidden_layers": 12,
32
+ "output_attentions": false,
33
+ "output_hidden_states": false,
34
+ "output_proj_dims": 1536,
35
+ "problem_type": null,
36
+ "residual_weight": 0.5,
37
+ "return_dict": true,
38
+ "rms_norm_eps": 1e-06,
39
+ "subsampling_conv_channels": [
40
+ 128,
41
+ 32
42
+ ],
43
+ "use_clipped_linears": true
44
+ },
45
+ "audio_token_id": 258881,
46
+ "boa_token_id": 256000,
47
+ "boi_token_id": 255999,
48
+ "dtype": "bfloat16",
49
+ "eoa_token_index": 258883,
50
+ "eoi_token_id": 258882,
51
+ "image_token_id": 258880,
52
+ "initializer_range": 0.02,
53
+ "model_type": "embedding_gemma2",
54
+ "text_config": {
55
+ "attention_bias": false,
56
+ "attention_dropout": 0.0,
57
+ "bos_token_id": 2,
58
+ "dtype": "bfloat16",
59
+ "embedding_dim": 768,
60
+ "eos_token_id": 1,
61
+ "head_dim": 256,
62
+ "hidden_activation": "gelu_pytorch_tanh",
63
+ "hidden_size": 512,
64
+ "hidden_size_per_layer_input": 512,
65
+ "initializer_range": 0.02,
66
+ "intermediate_size": 2048,
67
+ "layer_types": [
68
+ "sliding_attention",
69
+ "sliding_attention",
70
+ "sliding_attention",
71
+ "sliding_attention",
72
+ "sliding_attention",
73
+ "full_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "sliding_attention",
78
+ "sliding_attention",
79
+ "full_attention",
80
+ "sliding_attention",
81
+ "sliding_attention",
82
+ "sliding_attention",
83
+ "sliding_attention",
84
+ "sliding_attention",
85
+ "full_attention",
86
+ "sliding_attention",
87
+ "sliding_attention",
88
+ "sliding_attention",
89
+ "sliding_attention",
90
+ "sliding_attention",
91
+ "full_attention"
92
+ ],
93
+ "max_position_embeddings": 262144,
94
+ "model_type": "embedding_gemma2_text",
95
+ "num_attention_heads": 4,
96
+ "num_hidden_layers": 24,
97
+ "num_key_value_heads": 2,
98
+ "pad_token_id": 0,
99
+ "per_layer_config": {
100
+ "05": {
101
+ "head_dim": 512,
102
+ "num_key_value_heads": 1
103
+ },
104
+ "11": {
105
+ "head_dim": 512,
106
+ "num_key_value_heads": 1
107
+ },
108
+ "17": {
109
+ "head_dim": 512,
110
+ "num_key_value_heads": 1
111
+ },
112
+ "23": {
113
+ "head_dim": 512,
114
+ "num_key_value_heads": 1
115
+ }
116
+ },
117
+ "rms_norm_eps": 1e-06,
118
+ "rope_parameters": {
119
+ "full_attention": {
120
+ "rope_theta": 1000000.0,
121
+ "rope_type": "default"
122
+ },
123
+ "sliding_attention": {
124
+ "rope_theta": 10000.0,
125
+ "rope_type": "default"
126
+ }
127
+ },
128
+ "sliding_window": 512,
129
+ "vocab_size": 262144
130
+ },
131
+ "transformers_version": "5.18.0.dev0",
132
+ "video_token_id": 258884,
133
+ "vision_config": {
134
+ "_name_or_path": "",
135
+ "architectures": null,
136
+ "attention_bias": false,
137
+ "attention_dropout": 0.0,
138
+ "chunk_size_feed_forward": 0,
139
+ "default_output_length": 280,
140
+ "dtype": "bfloat16",
141
+ "global_head_dim": 64,
142
+ "head_dim": 64,
143
+ "hidden_activation": "gelu_pytorch_tanh",
144
+ "hidden_size": 768,
145
+ "id2label": {
146
+ "0": "LABEL_0",
147
+ "1": "LABEL_1"
148
+ },
149
+ "initializer_range": 0.02,
150
+ "intermediate_size": 3072,
151
+ "is_encoder_decoder": false,
152
+ "label2id": {
153
+ "LABEL_0": 0,
154
+ "LABEL_1": 1
155
+ },
156
+ "max_position_embeddings": 131072,
157
+ "model_type": "gemma4_vision",
158
+ "num_attention_heads": 12,
159
+ "num_hidden_layers": 16,
160
+ "num_key_value_heads": 12,
161
+ "output_attentions": false,
162
+ "output_hidden_states": false,
163
+ "patch_size": 16,
164
+ "pooling_kernel_size": 3,
165
+ "position_embedding_size": 10240,
166
+ "problem_type": null,
167
+ "return_dict": true,
168
+ "rms_norm_eps": 1e-06,
169
+ "rope_parameters": {
170
+ "rope_theta": 100.0,
171
+ "rope_type": "axial"
172
+ },
173
+ "standardize": false,
174
+ "use_clipped_linears": false
175
+ },
176
+ "vision_soft_tokens_per_image": 280
177
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4
3
+ size 32170510
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_token": "<|audio|>",
3
+ "backend": "tokenizers",
4
+ "boa_token": "<|audio>",
5
+ "boi_token": "<|image>",
6
+ "bos_token": "<bos>",
7
+ "eoa_token": "<audio|>",
8
+ "eoc_token": "<channel|>",
9
+ "eoi_token": "<image|>",
10
+ "eos_token": "<eos>",
11
+ "eot_token": "<turn|>",
12
+ "escape_token": "<|\"|>",
13
+ "etc_token": "<tool_call|>",
14
+ "etd_token": "<tool|>",
15
+ "etr_token": "<tool_response|>",
16
+ "extra_special_tokens": [
17
+ "<|video|>"
18
+ ],
19
+ "image_token": "<|image|>",
20
+ "is_local": true,
21
+ "local_files_only": false,
22
+ "mask_token": "<mask>",
23
+ "model_max_length": 1000000000000000019884624838656,
24
+ "model_specific_special_tokens": {
25
+ "audio_token": "<|audio|>",
26
+ "boa_token": "<|audio>",
27
+ "boi_token": "<|image>",
28
+ "eoa_token": "<audio|>",
29
+ "eoc_token": "<channel|>",
30
+ "eoi_token": "<image|>",
31
+ "eot_token": "<turn|>",
32
+ "escape_token": "<|\"|>",
33
+ "etc_token": "<tool_call|>",
34
+ "etd_token": "<tool|>",
35
+ "etr_token": "<tool_response|>",
36
+ "image_token": "<|image|>",
37
+ "soc_token": "<|channel>",
38
+ "sot_token": "<|turn>",
39
+ "stc_token": "<|tool_call>",
40
+ "std_token": "<|tool>",
41
+ "str_token": "<|tool_response>",
42
+ "think_token": "<|think|>",
43
+ "video_token": "<|video|>"
44
+ },
45
+ "pad_token": "<pad>",
46
+ "padding_side": "right",
47
+ "processor_class": "EmbeddingGemma2Processor",
48
+ "soc_token": "<|channel>",
49
+ "sot_token": "<|turn>",
50
+ "stc_token": "<|tool_call>",
51
+ "std_token": "<|tool>",
52
+ "str_token": "<|tool_response>",
53
+ "think_token": "<|think|>",
54
+ "tokenizer_class": "GemmaTokenizer",
55
+ "unk_token": "<unk>",
56
+ "video_token": "<|video|>"
57
+ }
validation/2026-11-12-four-bucket/REPORT.txt ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ EG2 owned Core ML conversion — final measured report
2
+
3
+ RESULT: PASS. Stock weights -> pinned converter -> shared four-function package -> native M2 Air validation.
4
+ The encoder and all 433 matrix operations per function are FP16. Final L2 normalization over 768 values is FP32.
5
+ No community converted weights were used. No application-specific head removal is inside the model.
6
+
7
+ ARTIFACTS
8
+ Source: scripts/embedbench/research/eg2_coreml
9
+ Delivered package: EmbeddingGemma2Owned.mlpackage
10
+ Source-only handoff: eg2-coreml-source-20261112.tar.gz; SHA256SUMS inside pins scripts, fixtures, licenses, report and evidence.
11
+ Target: M2 MacBook Air / 16 GiB / macOS 27.0.1
12
+ Old failed all-FP16 normalization run is archived in the original local experiment archive; it is not the delivered model.
13
+
14
+ PROVENANCE
15
+ Stock: google/embeddinggemma-2 @ 914f7f89142e33e77833254d9c9b90c3cef7303b
16
+ Weight SHA256: 197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79
17
+ Tokenizer SHA256: 4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4
18
+ Python 3.12.9; torch 2.7.0, transformers 5.19.0, coremltools 9.0, numpy 2.2.6, safetensors 0.8.0, tokenizers 0.23.3
19
+ Conversion host: macOS-26.7.1-arm64-arm-64bit; target: Apple M2, 16 GiB, Version 27.0.1 (Build 26A434).
20
+ Native compiler: Apple Swift 6.4.2; target arm64-apple-macos27.0.
21
+ Architecture adaptation: Transformers v5.19.0 (Apache-2.0). Safe RMS/L2 formulas: QVAC commit 2ed826df0c0eefc7135e9c3acc45aaa277f9b6ff (MIT).
22
+ Source/license copies and exact file hashes are retained. Source manifest and converter/toolchain hashes gate parity and output reuse.
23
+
24
+ NUMERICAL VALIDATION
25
+ {"cases": 12, "maximumAbsoluteError": 2.8219074010849e-07, "minimumCosine": 0.9999999999969833}
26
+ Fresh stock-HF FP32 vs native Core ML: {"cases": 12, "maximumAbsoluteError": 0.001569405198097229, "maximumNormError": 8.305185117407632e-08, "meanCosine": 0.9999746728881429, "minimumCosine": 0.9999525415174594}
27
+ Cases include short/padded text at all lengths, multilingual text, 593/622 real-token sliding-window cases, and FiQA document 52 (413 tokens).
28
+ Regression: all-FP16 final normalization gave document 52 norm 0.9987607818. Corrected s512 norm: 1.0000000369; cosine vs HF 0.9999780211.
29
+ Tokenizer: 3012/3012 prompted GGUF-fixture token rows match the pinned stock tokenizer.
30
+ Corpus: 1491/1500 FiQA documents; nine >1024 are explicitly excluded, never truncated or sent through a fictitious fallback.
31
+ Retained 2026-11-05 BF16 CPU reference (not regenerated): {"count": 1491, "maxAbs": 0.00178890364053641, "meanCosine": 0.999975629106595, "minCosine": 0.9999342433617312, "p01Cosine": 0.9999590297362787}
32
+ Same downstream head projection applied to both sides: {"count": 1491, "maxAbs": 0.0020283547838819, "meanCosine": 0.999959851755051, "minCosine": 0.9998673087975717, "p01Cosine": 0.9999244399634559}
33
+ Independent Nemosine output reference: {"count": 1491, "maxAbs": 0.0009376662310690009, "meanCosine": 0.9999971319467266, "minCosine": 0.9999853002739557, "p01Cosine": 0.9999937475228808}
34
+ No nonfinite or zero vectors. Corpus norm range: [0.9999998931240269, 1.0000000965439224]
35
+ Raw normalized model vectors remain separate from the application-specific head projection and Matryoshka truncation.
36
+
37
+ PREFERRED PLACEMENT (MLComputePlan; cost is an estimate, not measured operator wall time)
38
+ length ANE_ops CPU_ops ANE_cost_% CPU_operators
39
+ 128 6195 14 53.372 ios18.greater_equal, ios18.add, select, ios18.gather, ios18.transpose, ios18.cast, ios18.abs, ios16.reduce_max, ios18.maximum, ios18.real_div, ios18.mul, ios16.reduce_sum, ios18.sqrt, ios18.real_div
40
+ 256 6196 13 70.196 ios18.greater_equal, ios18.add, select, ios18.gather, ios18.cast, ios18.abs, ios16.reduce_max, ios18.maximum, ios18.real_div, ios18.mul, ios16.reduce_sum, ios18.sqrt, ios18.real_div
41
+ 512 6196 13 83.309 ios18.greater_equal, ios18.add, select, ios18.gather, ios18.cast, ios18.abs, ios16.reduce_max, ios18.maximum, ios18.real_div, ios18.mul, ios16.reduce_sum, ios18.sqrt, ios18.real_div
42
+ 1024 6196 13 91.604 ios18.greater_equal, ios18.add, select, ios18.gather, ios18.cast, ios18.abs, ios16.reduce_max, ios18.maximum, ios18.real_div, ios18.mul, ios16.reduce_sum, ios18.sqrt, ios18.real_div
43
+ CPU convolution/matmul/linear/softmax core operations are rejected by the validator. Every requested function produced a plan.
44
+ cpuAndNeuralEngine permits CPU. This is preferred placement plus successful native inference, not an ANE-only claim or Instruments runtime trace.
45
+
46
+ LOAD AND INFERENCE
47
+ length cold_load_s warm_load_s first_predict_ms corpus_n corpus_p50_ms
48
+ 128 25.490 0.787 14.996 763 7.324
49
+ 256 26.780 0.744 26.416 444 14.295
50
+ 512 30.397 0.764 40.015 227 34.577
51
+ 1024 37.702 0.669 96.062 57 95.424
52
+ Cold specialization total 120.369s; same executable/path warm total 2.964s.
53
+ Package compile total 2.299s, separate from specialization.
54
+ Corpus 58.940 docs/s; p50 7.801ms; p95 35.008ms.
55
+ Timing includes array fill, async prediction and output copy; excludes tokenization. Existing desktop apps stayed open; this is a validation sample.
56
+
57
+ MEMORY (footprint --wired; retain Clean, Reclaimable and Wired separately)
58
+ Neural allocations are in a nofootprint ledger and are not included in ordinary phys_footprint.
59
+ cold-start: ordinary 3808 KB
60
+ Dirty / Clean / Reclaimable / Wired / Regions: none
61
+ cold-s128: ordinary 262 MB
62
+ Dirty / Clean / Reclaimable / Wired / Regions: 0 B 282 MB 400 KB 282 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)
63
+ cold-s256: ordinary 301 MB
64
+ Dirty / Clean / Reclaimable / Wired / Regions: 0 B 306 MB 283 MB 306 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)
65
+ cold-s512: ordinary 302 MB
66
+ Dirty / Clean / Reclaimable / Wired / Regions: 0 B 350 MB 590 MB 350 MB 9 Owned physical footprint (unmapped) (neural) (nofootprint)
67
+ cold-s1024: ordinary 305 MB
68
+ Dirty / Clean / Reclaimable / Wired / Regions: 0 B 444 MB 929 MB 444 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)
69
+ cold-all-active: ordinary 305 MB
70
+ Dirty / Clean / Reclaimable / Wired / Regions: 0 B 1382 MB 2032 KB 1382 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)
71
+ cold-after-corpus: ordinary 408 MB
72
+ Dirty / Clean / Reclaimable / Wired / Regions: 0 B 1382 MB 2032 KB 1382 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)
73
+ warm-all-active: ordinary 40 MB
74
+ Dirty / Clean / Reclaimable / Wired / Regions: 0 B 1382 MB 2032 KB 1382 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)
75
+ No forced pressure, cache flush, service restart, or 8 GiB safety claim. These are M2/16 GiB/macOS 27 measurements.
76
+
77
+ DISK SHARING AND REPRODUCTION
78
+ Merged package 557942311 bytes (532.095 MiB); standalone sum 2184012628 bytes.
79
+ Each function references 399 external tensors; 394 offsets are shared across all four functions (414 distinct offsets total).
80
+ This disk deduplication does not eliminate per-function neural allocations.
81
+ Clean s128 rebuild: identical weight bytes and parsed protobuf. Canonical protobuf SHA256: 1cae78411712f1a282af7e6c47e39116eeeacbe97603b33d3307dbe596a24bf7
82
+ Raw protobuf map serialization order and package UUIDs differ; whole-package byte identity is not claimed.
83
+ Reproduction instructions: https://github.com/anyproto/any/tree/9eb1ee5d35d72425bcf4e71b76a13bf5599a13a5/scripts/embedbench/research/eg2_coreml/README.md. Use a fresh deployment directory or remove only the adjacent owned .mlmodelc when replacing model bytes.
84
+ Detailed output hashes, contracts, precision selectors, fixture vectors, plans, timing samples and memory ledgers are in this results directory. Full corpus output vectors remain in the original experiment archive.
85
+ All owned conversion and validation processes exited; see evidence/process-exit-check.txt.
86
+
87
+ PRIMARY RECIPES / SOURCES
88
+ https://github.com/tetherto/qvac-fabric-llm.cpp/blob/2ed826df0c0eefc7135e9c3acc45aaa277f9b6ff/examples/embedding-coreml/README.md
89
+ https://github.com/tetherto/qvac-fabric-llm.cpp/blob/2ed826df0c0eefc7135e9c3acc45aaa277f9b6ff/examples/embedding-coreml/export_coreml.py
90
+ https://github.com/huggingface/transformers/blob/v5.19.0/src/transformers/models/embedding_gemma2/modeling_embedding_gemma2.py
91
+ https://apple.github.io/coremltools/docs-guides/source/multifunction-models.html
92
+ https://huggingface.co/FilBona/embeddinggemma-2-coreml-ane/tree/cecc10efab079b842899591aeb73f44e0f895efc/conversion
93
+ FilBona has a public fixed 512 conversion recipe; it was inspected as an additional source and not reused here.
94
+ Nemosine names a converter path but did not expose it in the inspected model files. CoreAI is a different runtime and was reference-only.
validation/2026-11-12-four-bucket/asset-manifest.json ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": {
3
+ "repo": "google/embeddinggemma-2",
4
+ "revision": "914f7f89142e33e77833254d9c9b90c3cef7303b",
5
+ "files": {
6
+ "config.json": {
7
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3",
8
+ "bytes": 4455
9
+ },
10
+ "model.safetensors": {
11
+ "sha256": "197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79",
12
+ "bytes": 1488915288
13
+ },
14
+ "tokenizer.json": {
15
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4",
16
+ "bytes": 32170510
17
+ },
18
+ "tokenizer_config.json": {
19
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874",
20
+ "bytes": 1599
21
+ }
22
+ }
23
+ },
24
+ "conversionProvenance": {
25
+ "files": {
26
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
27
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
28
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
29
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
30
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
31
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
32
+ },
33
+ "versions": {
34
+ "torch": "2.7.0",
35
+ "transformers": "5.19.0",
36
+ "coremltools": "9.0",
37
+ "numpy": "2.2.6",
38
+ "safetensors": "0.8.0",
39
+ "tokenizers": "0.23.3"
40
+ },
41
+ "python": "3.12.9",
42
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
43
+ },
44
+ "packages": {
45
+ "EmbeddingGemma2Owned.mlpackage": {
46
+ "bytes": 557942311,
47
+ "files": {
48
+ "Data/com.apple.CoreML/model.mlmodel": {
49
+ "bytes": 7235070,
50
+ "sha256": "8763b7383a097ac3f8c8115eaff8974f932ee7f0ef909710ddcb84e07d166d88"
51
+ },
52
+ "Data/com.apple.CoreML/weights/weight.bin": {
53
+ "bytes": 550706624,
54
+ "sha256": "e3ddcdd72119e5a6ea1646a5fff1653dadcf29cfb0ad64be6bc909e258097ec0"
55
+ },
56
+ "Manifest.json": {
57
+ "bytes": 617,
58
+ "sha256": "44b94c7cccfe6c93fc227444ca3a0c6f1841c175724c14b2a112f6d415bcb928"
59
+ }
60
+ }
61
+ },
62
+ "s1024.mlpackage": {
63
+ "bytes": 549075157,
64
+ "files": {
65
+ "Data/com.apple.CoreML/model.mlmodel": {
66
+ "bytes": 1809516,
67
+ "sha256": "3904740c5103cf5a9424f39e8ef5ad553a9c69c002292875d29b7094b199fe7c"
68
+ },
69
+ "Data/com.apple.CoreML/weights/weight.bin": {
70
+ "bytes": 547265024,
71
+ "sha256": "f2af7e0d98c788310d234039e87bf91e2a95489c623119389c2a422b88dfd99a"
72
+ },
73
+ "Manifest.json": {
74
+ "bytes": 617,
75
+ "sha256": "4eaf479df25f291839d974306ac86be53ee762c76859ceba710a5cf6c3bb8f06"
76
+ }
77
+ }
78
+ },
79
+ "s128.mlpackage": {
80
+ "bytes": 544258261,
81
+ "files": {
82
+ "Data/com.apple.CoreML/model.mlmodel": {
83
+ "bytes": 1809516,
84
+ "sha256": "05537c763c2b3bf458541bdde0fc116d811d02e669d5400da6eae908954488c9"
85
+ },
86
+ "Data/com.apple.CoreML/weights/weight.bin": {
87
+ "bytes": 542448128,
88
+ "sha256": "84ca5157c0540b722f69988b8173af16bcfb884cf6b6dbd9c7793e401c6ba9b3"
89
+ },
90
+ "Manifest.json": {
91
+ "bytes": 617,
92
+ "sha256": "193d40f86376dc8e4c488c419910a468fa0b7179a7aabd82df4ebb2c4686637c"
93
+ }
94
+ }
95
+ },
96
+ "s256.mlpackage": {
97
+ "bytes": 544749781,
98
+ "files": {
99
+ "Data/com.apple.CoreML/model.mlmodel": {
100
+ "bytes": 1809516,
101
+ "sha256": "07a452f1f676519d3068892edee101c5db1e23d0b247a359286324d32006d2e0"
102
+ },
103
+ "Data/com.apple.CoreML/weights/weight.bin": {
104
+ "bytes": 542939648,
105
+ "sha256": "c18557a35fd7d5d6017799eb1ab065943febe533f4917b7bdf3bc5f00c2ea3e3"
106
+ },
107
+ "Manifest.json": {
108
+ "bytes": 617,
109
+ "sha256": "13740206e8d9ff32ffff582f7cd82f5cd19e613113c74ae3af56a2b90cc16d4c"
110
+ }
111
+ }
112
+ },
113
+ "s512.mlpackage": {
114
+ "bytes": 545929429,
115
+ "files": {
116
+ "Data/com.apple.CoreML/model.mlmodel": {
117
+ "bytes": 1809516,
118
+ "sha256": "5463dc387be1689cbcef67d815853ec981c04252cd7874ee563c359f3ae85dd7"
119
+ },
120
+ "Data/com.apple.CoreML/weights/weight.bin": {
121
+ "bytes": 544119296,
122
+ "sha256": "2f92ffe28d01b4cecc5f47f9c0774a966ad041d2983f47315cf299bd0c0371cf"
123
+ },
124
+ "Manifest.json": {
125
+ "bytes": 617,
126
+ "sha256": "d394e086eda6a92aacf7b4299926c426686de7d7c89bfb920fb654e78574c3e5"
127
+ }
128
+ }
129
+ }
130
+ },
131
+ "functions": [
132
+ "s1024",
133
+ "s128",
134
+ "s256",
135
+ "s512"
136
+ ],
137
+ "contracts": {
138
+ "s128": {
139
+ "inputs": {
140
+ "input_ids": [
141
+ [
142
+ 1,
143
+ 128
144
+ ],
145
+ 131104
146
+ ],
147
+ "attention_mask": [
148
+ [
149
+ 1,
150
+ 128
151
+ ],
152
+ 65568
153
+ ]
154
+ },
155
+ "outputs": {
156
+ "embedding": [
157
+ [
158
+ 1,
159
+ 768
160
+ ],
161
+ 65568
162
+ ]
163
+ }
164
+ },
165
+ "s256": {
166
+ "inputs": {
167
+ "input_ids": [
168
+ [
169
+ 1,
170
+ 256
171
+ ],
172
+ 131104
173
+ ],
174
+ "attention_mask": [
175
+ [
176
+ 1,
177
+ 256
178
+ ],
179
+ 65568
180
+ ]
181
+ },
182
+ "outputs": {
183
+ "embedding": [
184
+ [
185
+ 1,
186
+ 768
187
+ ],
188
+ 65568
189
+ ]
190
+ }
191
+ },
192
+ "s512": {
193
+ "inputs": {
194
+ "input_ids": [
195
+ [
196
+ 1,
197
+ 512
198
+ ],
199
+ 131104
200
+ ],
201
+ "attention_mask": [
202
+ [
203
+ 1,
204
+ 512
205
+ ],
206
+ 65568
207
+ ]
208
+ },
209
+ "outputs": {
210
+ "embedding": [
211
+ [
212
+ 1,
213
+ 768
214
+ ],
215
+ 65568
216
+ ]
217
+ }
218
+ },
219
+ "s1024": {
220
+ "inputs": {
221
+ "input_ids": [
222
+ [
223
+ 1,
224
+ 1024
225
+ ],
226
+ 131104
227
+ ],
228
+ "attention_mask": [
229
+ [
230
+ 1,
231
+ 1024
232
+ ],
233
+ 65568
234
+ ]
235
+ },
236
+ "outputs": {
237
+ "embedding": [
238
+ [
239
+ 1,
240
+ 768
241
+ ],
242
+ 65568
243
+ ]
244
+ }
245
+ }
246
+ },
247
+ "verifiedFP16MatrixOperations": {
248
+ "s256": 433,
249
+ "s512": 433,
250
+ "s128": 433,
251
+ "s1024": 433
252
+ },
253
+ "externalTensorReferences": {
254
+ "s256": 399,
255
+ "s512": 399,
256
+ "s128": 399,
257
+ "s1024": 399
258
+ },
259
+ "sharedExternalTensorOffsetsAcrossAllFunctions": 394,
260
+ "allDistinctExternalTensorOffsets": 414,
261
+ "standaloneTotalBytes": 2184012628,
262
+ "mergedBytes": 557942311
263
+ }
validation/2026-11-12-four-bucket/corpus-parity.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "retainedBF16ReferenceDate": "2026-11-05; historical reference, not regenerated",
3
+ "sourceFiles": {
4
+ "historical-references/eg2-bf16-cpu.docs.f32": "4a18a2e789e091cced279ab3058533b32441fcb003edb3609201f98d490ab999",
5
+ "historical-references/coreml-cold-vectors.json": "b2cbb58c669b1678adafcdf4195a498ef402963591050a9515e76382e26dc792",
6
+ "historical-references/eg2_head.f32": "f547f6ae4382d393e6cd25a27cb47eb5827424345ede417f7ec84c9eb7ed94a2"
7
+ },
8
+ "finite": true,
9
+ "zeroVectors": 0,
10
+ "normRange": [
11
+ 0.9999998931240269,
12
+ 1.0000000965439224
13
+ ],
14
+ "excludedOver1024": [
15
+ {
16
+ "documentIndex": 178,
17
+ "tokens": 2212
18
+ },
19
+ {
20
+ "documentIndex": 344,
21
+ "tokens": 1151
22
+ },
23
+ {
24
+ "documentIndex": 360,
25
+ "tokens": 1553
26
+ },
27
+ {
28
+ "documentIndex": 376,
29
+ "tokens": 1352
30
+ },
31
+ {
32
+ "documentIndex": 679,
33
+ "tokens": 1077
34
+ },
35
+ {
36
+ "documentIndex": 720,
37
+ "tokens": 1485
38
+ },
39
+ {
40
+ "documentIndex": 741,
41
+ "tokens": 1368
42
+ },
43
+ {
44
+ "documentIndex": 1030,
45
+ "tokens": 1263
46
+ },
47
+ {
48
+ "documentIndex": 1425,
49
+ "tokens": 1210
50
+ }
51
+ ],
52
+ "stockRawVsRetainedBF16": {
53
+ "count": 1491,
54
+ "meanCosine": 0.999975629106595,
55
+ "minCosine": 0.9999342433617312,
56
+ "p01Cosine": 0.9999590297362787,
57
+ "maxAbs": 0.00178890364053641
58
+ },
59
+ "sameDownstreamHeadProjectedVsRetainedBF16": {
60
+ "count": 1491,
61
+ "meanCosine": 0.999959851755051,
62
+ "minCosine": 0.9998673087975717,
63
+ "p01Cosine": 0.9999244399634559,
64
+ "maxAbs": 0.0020283547838819
65
+ },
66
+ "stockRawVsNemosineReference": {
67
+ "count": 1491,
68
+ "meanCosine": 0.9999971319467266,
69
+ "minCosine": 0.9999853002739557,
70
+ "p01Cosine": 0.9999937475228808,
71
+ "maxAbs": 0.0009376662310690009
72
+ }
73
+ }
validation/2026-11-12-four-bucket/publication-manifest.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "testDate": "2026-11-12",
3
+ "sourceArchiveSHA256": "8fd24a0dc4fa83a440b2561945c14acf056a85da4d284c94a09ff4439285f811",
4
+ "testedSourceSHA256": {
5
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
6
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
7
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
8
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072",
9
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
10
+ "measure_assets.py": "13715cc802441f638539c9fc89883df3807f96f3be161ff7f0865f1ad3191131",
11
+ "compare_rebuild.py": "703f172cb068c566ee650481fc78e1144e4bc486723622f05a13e912a9a08d08",
12
+ "analyze.py": "1b5eee0c6c71f5df57ece6536387571f90a055ecfc1f34254a5c659740f14fd6",
13
+ "validate.swift": "54d9e95a4026ec12d884aa409f5b7675a477d2f147089a633eaeb7566b29bbd0",
14
+ "requirements.lock": "448293cf8031689a3a57035f0620e375b6eb18f684b621ef35df556b51b51efd",
15
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
16
+ "NOTICE": "0006b0064b10eead7cc0f6cbabc0c544b0c75ad7c722ed9671d7c9d054183e07"
17
+ },
18
+ "fixtureSHA256": "ff7f41a9586d566abf33f14aa9033f40e6d701698baa1d552b2f12f8f742a13a",
19
+ "notes": [
20
+ "Core conversion and validation sources are byte-identical to the tested handoff.",
21
+ "Results preserve measurements; private host names and local filesystem paths are replaced with portable labels.",
22
+ "Model binaries, stock weights, environment and the full corpus vector dump are not committed."
23
+ ]
24
+ }
validation/2026-11-12-four-bucket/rebuild-reproducibility.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "freshOutputDirectory": "reproducibility-rebuild/s128.mlpackage",
3
+ "files": {
4
+ "Manifest.json": {
5
+ "initialSHA256": "193d40f86376dc8e4c488c419910a468fa0b7179a7aabd82df4ebb2c4686637c",
6
+ "rebuiltSHA256": "df700541886a045d34a51338e097a0b14650248f93fc52e639dfeba755f06112",
7
+ "equal": false
8
+ },
9
+ "Data/com.apple.CoreML/model.mlmodel": {
10
+ "initialSHA256": "05537c763c2b3bf458541bdde0fc116d811d02e669d5400da6eae908954488c9",
11
+ "rebuiltSHA256": "42e2ac934b31579ddc998001efb42c81df84ee9346ba7b51390566b44341d0dd",
12
+ "equal": false
13
+ },
14
+ "Data/com.apple.CoreML/weights/weight.bin": {
15
+ "initialSHA256": "84ca5157c0540b722f69988b8173af16bcfb884cf6b6dbd9c7793e401c6ba9b3",
16
+ "rebuiltSHA256": "84ca5157c0540b722f69988b8173af16bcfb884cf6b6dbd9c7793e401c6ba9b3",
17
+ "equal": true
18
+ }
19
+ },
20
+ "weightBlobIdentical": true,
21
+ "modelProtoIdentical": false,
22
+ "wholePackageFilesIdentical": false,
23
+ "modelProtoSemanticallyIdentical": true,
24
+ "deterministicProtoSHA256": {
25
+ "initial": "1cae78411712f1a282af7e6c47e39116eeeacbe97603b33d3307dbe596a24bf7",
26
+ "rebuilt": "1cae78411712f1a282af7e6c47e39116eeeacbe97603b33d3307dbe596a24bf7"
27
+ },
28
+ "interpretation": "Same weight bytes and identical parsed protobuf; raw protobuf map serialization order and package UUIDs differ. Not a byte-identical whole package."
29
+ }
validation/2026-11-12-four-bucket/summary.json ADDED
@@ -0,0 +1,461 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": {
3
+ "repo": "google/embeddinggemma-2",
4
+ "revision": "914f7f89142e33e77833254d9c9b90c3cef7303b",
5
+ "files": {
6
+ "config.json": {
7
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3",
8
+ "bytes": 4455
9
+ },
10
+ "model.safetensors": {
11
+ "sha256": "197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79",
12
+ "bytes": 1488915288
13
+ },
14
+ "tokenizer.json": {
15
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4",
16
+ "bytes": 32170510
17
+ },
18
+ "tokenizer_config.json": {
19
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874",
20
+ "bytes": 1599
21
+ }
22
+ }
23
+ },
24
+ "versions": {
25
+ "torch": "2.7.0",
26
+ "transformers": "5.19.0",
27
+ "coremltools": "9.0",
28
+ "numpy": "2.2.6",
29
+ "safetensors": "0.8.0",
30
+ "tokenizers": "0.23.3"
31
+ },
32
+ "host": {
33
+ "conversion": "macOS-26.7.1-arm64-arm-64bit",
34
+ "target": "Version 27.0.1 (Build 26A434)",
35
+ "name": "M2-MacBook-Air",
36
+ "chip": "Apple M2",
37
+ "ramGiB": 16
38
+ },
39
+ "fp32RewriteParity": {
40
+ "cases": 12,
41
+ "minimumCosine": 0.9999999999969833,
42
+ "maximumAbsoluteError": 2.8219074010849e-07
43
+ },
44
+ "freshHFCoreMLParity": {
45
+ "cases": 12,
46
+ "minimumCosine": 0.9999525415174594,
47
+ "meanCosine": 0.9999746728881429,
48
+ "maximumAbsoluteError": 0.001569405198097229,
49
+ "maximumNormError": 8.305185117407632e-08
50
+ },
51
+ "corpusParity": {
52
+ "retainedBF16ReferenceDate": "2026-11-05; historical reference, not regenerated",
53
+ "sourceFiles": {
54
+ "historical-references/eg2-bf16-cpu.docs.f32": "4a18a2e789e091cced279ab3058533b32441fcb003edb3609201f98d490ab999",
55
+ "historical-references/coreml-cold-vectors.json": "b2cbb58c669b1678adafcdf4195a498ef402963591050a9515e76382e26dc792",
56
+ "historical-references/eg2_head.f32": "f547f6ae4382d393e6cd25a27cb47eb5827424345ede417f7ec84c9eb7ed94a2"
57
+ },
58
+ "finite": true,
59
+ "zeroVectors": 0,
60
+ "normRange": [
61
+ 0.9999998931240269,
62
+ 1.0000000965439224
63
+ ],
64
+ "excludedOver1024": [
65
+ {
66
+ "documentIndex": 178,
67
+ "tokens": 2212
68
+ },
69
+ {
70
+ "documentIndex": 344,
71
+ "tokens": 1151
72
+ },
73
+ {
74
+ "documentIndex": 360,
75
+ "tokens": 1553
76
+ },
77
+ {
78
+ "documentIndex": 376,
79
+ "tokens": 1352
80
+ },
81
+ {
82
+ "documentIndex": 679,
83
+ "tokens": 1077
84
+ },
85
+ {
86
+ "documentIndex": 720,
87
+ "tokens": 1485
88
+ },
89
+ {
90
+ "documentIndex": 741,
91
+ "tokens": 1368
92
+ },
93
+ {
94
+ "documentIndex": 1030,
95
+ "tokens": 1263
96
+ },
97
+ {
98
+ "documentIndex": 1425,
99
+ "tokens": 1210
100
+ }
101
+ ],
102
+ "stockRawVsRetainedBF16": {
103
+ "count": 1491,
104
+ "meanCosine": 0.999975629106595,
105
+ "minCosine": 0.9999342433617312,
106
+ "p01Cosine": 0.9999590297362787,
107
+ "maxAbs": 0.00178890364053641
108
+ },
109
+ "sameDownstreamHeadProjectedVsRetainedBF16": {
110
+ "count": 1491,
111
+ "meanCosine": 0.999959851755051,
112
+ "minCosine": 0.9998673087975717,
113
+ "p01Cosine": 0.9999244399634559,
114
+ "maxAbs": 0.0020283547838819
115
+ },
116
+ "stockRawVsNemosineReference": {
117
+ "count": 1491,
118
+ "meanCosine": 0.9999971319467266,
119
+ "minCosine": 0.9999853002739557,
120
+ "p01Cosine": 0.9999937475228808,
121
+ "maxAbs": 0.0009376662310690009
122
+ }
123
+ },
124
+ "plans": {
125
+ "128": {
126
+ "cpuOperators": [
127
+ {
128
+ "operator": "ios18.greater_equal"
129
+ },
130
+ {
131
+ "operator": "ios18.add"
132
+ },
133
+ {
134
+ "operator": "select"
135
+ },
136
+ {
137
+ "operator": "ios18.gather"
138
+ },
139
+ {
140
+ "operator": "ios18.transpose"
141
+ },
142
+ {
143
+ "operator": "ios18.cast"
144
+ },
145
+ {
146
+ "operator": "ios18.abs"
147
+ },
148
+ {
149
+ "operator": "ios16.reduce_max"
150
+ },
151
+ {
152
+ "operator": "ios18.maximum"
153
+ },
154
+ {
155
+ "operator": "ios18.real_div"
156
+ },
157
+ {
158
+ "operator": "ios18.mul"
159
+ },
160
+ {
161
+ "operator": "ios16.reduce_sum"
162
+ },
163
+ {
164
+ "operator": "ios18.sqrt"
165
+ },
166
+ {
167
+ "operator": "ios18.real_div"
168
+ }
169
+ ],
170
+ "estimatedCost": {
171
+ "ane": 0.5337151622901617,
172
+ "cpu": 0.4662848377098712,
173
+ "none": 0
174
+ },
175
+ "ops": {
176
+ "ane": 6195,
177
+ "cpu": 14,
178
+ "none": 5896
179
+ }
180
+ },
181
+ "256": {
182
+ "cpuOperators": [
183
+ {
184
+ "operator": "ios18.greater_equal"
185
+ },
186
+ {
187
+ "operator": "ios18.add"
188
+ },
189
+ {
190
+ "operator": "select"
191
+ },
192
+ {
193
+ "operator": "ios18.gather"
194
+ },
195
+ {
196
+ "operator": "ios18.cast"
197
+ },
198
+ {
199
+ "operator": "ios18.abs"
200
+ },
201
+ {
202
+ "operator": "ios16.reduce_max"
203
+ },
204
+ {
205
+ "operator": "ios18.maximum"
206
+ },
207
+ {
208
+ "operator": "ios18.real_div"
209
+ },
210
+ {
211
+ "operator": "ios18.mul"
212
+ },
213
+ {
214
+ "operator": "ios16.reduce_sum"
215
+ },
216
+ {
217
+ "operator": "ios18.sqrt"
218
+ },
219
+ {
220
+ "operator": "ios18.real_div"
221
+ }
222
+ ],
223
+ "estimatedCost": {
224
+ "ane": 0.701959914121899,
225
+ "cpu": 0.29804008587811887,
226
+ "none": 0
227
+ },
228
+ "ops": {
229
+ "ane": 6196,
230
+ "cpu": 13,
231
+ "none": 5896
232
+ }
233
+ },
234
+ "512": {
235
+ "cpuOperators": [
236
+ {
237
+ "operator": "ios18.greater_equal"
238
+ },
239
+ {
240
+ "operator": "ios18.add"
241
+ },
242
+ {
243
+ "operator": "select"
244
+ },
245
+ {
246
+ "operator": "ios18.gather"
247
+ },
248
+ {
249
+ "operator": "ios18.cast"
250
+ },
251
+ {
252
+ "operator": "ios18.abs"
253
+ },
254
+ {
255
+ "operator": "ios16.reduce_max"
256
+ },
257
+ {
258
+ "operator": "ios18.maximum"
259
+ },
260
+ {
261
+ "operator": "ios18.real_div"
262
+ },
263
+ {
264
+ "operator": "ios18.mul"
265
+ },
266
+ {
267
+ "operator": "ios16.reduce_sum"
268
+ },
269
+ {
270
+ "operator": "ios18.sqrt"
271
+ },
272
+ {
273
+ "operator": "ios18.real_div"
274
+ }
275
+ ],
276
+ "estimatedCost": {
277
+ "ane": 0.8330929807877344,
278
+ "cpu": 0.16690701921233048,
279
+ "none": 0
280
+ },
281
+ "ops": {
282
+ "ane": 6196,
283
+ "cpu": 13,
284
+ "none": 5896
285
+ }
286
+ },
287
+ "1024": {
288
+ "cpuOperators": [
289
+ {
290
+ "operator": "ios18.greater_equal"
291
+ },
292
+ {
293
+ "operator": "ios18.add"
294
+ },
295
+ {
296
+ "operator": "select"
297
+ },
298
+ {
299
+ "operator": "ios18.gather"
300
+ },
301
+ {
302
+ "operator": "ios18.cast"
303
+ },
304
+ {
305
+ "operator": "ios18.abs"
306
+ },
307
+ {
308
+ "operator": "ios16.reduce_max"
309
+ },
310
+ {
311
+ "operator": "ios18.maximum"
312
+ },
313
+ {
314
+ "operator": "ios18.real_div"
315
+ },
316
+ {
317
+ "operator": "ios18.mul"
318
+ },
319
+ {
320
+ "operator": "ios16.reduce_sum"
321
+ },
322
+ {
323
+ "operator": "ios18.sqrt"
324
+ },
325
+ {
326
+ "operator": "ios18.real_div"
327
+ }
328
+ ],
329
+ "estimatedCost": {
330
+ "ane": 0.9160382612508965,
331
+ "cpu": 0.08396173874914128,
332
+ "none": 0
333
+ },
334
+ "ops": {
335
+ "ane": 6196,
336
+ "cpu": 13,
337
+ "none": 5896
338
+ }
339
+ }
340
+ },
341
+ "coldLoadSeconds": {
342
+ "128": 25.48996901512146,
343
+ "256": 26.780367970466614,
344
+ "512": 30.396572947502136,
345
+ "1024": 37.70216202735901
346
+ },
347
+ "warmLoadSeconds": {
348
+ "128": 0.7868030071258545,
349
+ "256": 0.7438050508499146,
350
+ "512": 0.7639269828796387,
351
+ "1024": 0.6691139936447144
352
+ },
353
+ "coldCompileSeconds": {
354
+ "128": 2.298724055290222,
355
+ "256": 5.9604644775390625e-06,
356
+ "512": 5.9604644775390625e-06,
357
+ "1024": 5.0067901611328125e-06
358
+ },
359
+ "firstPredictionSeconds": {
360
+ "128": 0.014995932579040527,
361
+ "256": 0.02641594409942627,
362
+ "512": 0.04001498222351074,
363
+ "1024": 0.0960620641708374
364
+ },
365
+ "throughput": {
366
+ "docsPerSecond": 58.9402808987398,
367
+ "p50Ms": 7.800936698913574,
368
+ "p95Ms": 35.00807285308838,
369
+ "byBucket": {
370
+ "128": {
371
+ "count": 763,
372
+ "p50Ms": 7.323980331420898,
373
+ "p95Ms": 7.610833644866943,
374
+ "meanMs": 7.378899098067578
375
+ },
376
+ "256": {
377
+ "count": 444,
378
+ "p50Ms": 14.295101165771484,
379
+ "p95Ms": 14.661335945129395,
380
+ "meanMs": 14.36048799806887
381
+ },
382
+ "512": {
383
+ "count": 227,
384
+ "p50Ms": 34.577012062072754,
385
+ "p95Ms": 35.07349491119385,
386
+ "meanMs": 34.432376533878006
387
+ },
388
+ "1024": {
389
+ "count": 57,
390
+ "p50Ms": 95.42393684387207,
391
+ "p95Ms": 102.5951862335205,
392
+ "meanMs": 96.04360346208539
393
+ }
394
+ }
395
+ },
396
+ "memory": {
397
+ "cold-start": {
398
+ "neuralLedgerRow": "none",
399
+ "physFootprint": "3808 KB"
400
+ },
401
+ "cold-s128": {
402
+ "neuralLedgerRow": "0 B 282 MB 400 KB 282 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)",
403
+ "physFootprint": "262 MB"
404
+ },
405
+ "cold-s256": {
406
+ "neuralLedgerRow": "0 B 306 MB 283 MB 306 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)",
407
+ "physFootprint": "301 MB"
408
+ },
409
+ "cold-s512": {
410
+ "neuralLedgerRow": "0 B 350 MB 590 MB 350 MB 9 Owned physical footprint (unmapped) (neural) (nofootprint)",
411
+ "physFootprint": "302 MB"
412
+ },
413
+ "cold-s1024": {
414
+ "neuralLedgerRow": "0 B 444 MB 929 MB 444 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)",
415
+ "physFootprint": "305 MB"
416
+ },
417
+ "cold-all-active": {
418
+ "neuralLedgerRow": "0 B 1382 MB 2032 KB 1382 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)",
419
+ "physFootprint": "305 MB"
420
+ },
421
+ "cold-after-corpus": {
422
+ "neuralLedgerRow": "0 B 1382 MB 2032 KB 1382 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)",
423
+ "physFootprint": "408 MB"
424
+ },
425
+ "warm-all-active": {
426
+ "neuralLedgerRow": "0 B 1382 MB 2032 KB 1382 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)",
427
+ "physFootprint": "40 MB"
428
+ }
429
+ },
430
+ "reproducibility": {
431
+ "freshOutputDirectory": "reproducibility-rebuild/s128.mlpackage",
432
+ "files": {
433
+ "Manifest.json": {
434
+ "initialSHA256": "193d40f86376dc8e4c488c419910a468fa0b7179a7aabd82df4ebb2c4686637c",
435
+ "rebuiltSHA256": "df700541886a045d34a51338e097a0b14650248f93fc52e639dfeba755f06112",
436
+ "equal": false
437
+ },
438
+ "Data/com.apple.CoreML/model.mlmodel": {
439
+ "initialSHA256": "05537c763c2b3bf458541bdde0fc116d811d02e669d5400da6eae908954488c9",
440
+ "rebuiltSHA256": "42e2ac934b31579ddc998001efb42c81df84ee9346ba7b51390566b44341d0dd",
441
+ "equal": false
442
+ },
443
+ "Data/com.apple.CoreML/weights/weight.bin": {
444
+ "initialSHA256": "84ca5157c0540b722f69988b8173af16bcfb884cf6b6dbd9c7793e401c6ba9b3",
445
+ "rebuiltSHA256": "84ca5157c0540b722f69988b8173af16bcfb884cf6b6dbd9c7793e401c6ba9b3",
446
+ "equal": true
447
+ }
448
+ },
449
+ "weightBlobIdentical": true,
450
+ "modelProtoIdentical": false,
451
+ "wholePackageFilesIdentical": false,
452
+ "modelProtoSemanticallyIdentical": true,
453
+ "deterministicProtoSHA256": {
454
+ "initial": "1cae78411712f1a282af7e6c47e39116eeeacbe97603b33d3307dbe596a24bf7",
455
+ "rebuilt": "1cae78411712f1a282af7e6c47e39116eeeacbe97603b33d3307dbe596a24bf7"
456
+ },
457
+ "interpretation": "Same weight bytes and identical parsed protobuf; raw protobuf map serialization order and package UUIDs differ. Not a byte-identical whole package."
458
+ },
459
+ "packageBytes": 557942311,
460
+ "standaloneTotalBytes": 2184012628
461
+ }
validation/2026-11-12-four-bucket/tokenizer-parity.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "rows": 3012,
3
+ "matched": 3012,
4
+ "mismatches": []
5
+ }
validation/2026-11-12-four-bucket/torch-parity.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "passed": true,
3
+ "provenance": {
4
+ "files": {
5
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
6
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
7
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
8
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
9
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4"
10
+ },
11
+ "versions": {
12
+ "torch": "2.7.0",
13
+ "transformers": "5.19.0",
14
+ "coremltools": "9.0",
15
+ "numpy": "2.2.6",
16
+ "safetensors": "0.8.0",
17
+ "tokenizers": "0.23.3"
18
+ },
19
+ "python": "3.12.9",
20
+ "fingerprint": "078edb5aa6bf91bb278ed31c72e21c3bde773ebbcbb230efaf4b03255086f20e"
21
+ },
22
+ "reference": "Transformers 5.19.0 stock weights, FP32 eager, raw masked mean then L2",
23
+ "cases": [
24
+ {
25
+ "case": 0,
26
+ "length": 128,
27
+ "tokens": 9,
28
+ "cosine": 0.999999999999162,
29
+ "max_abs": 1.986045390367508e-07,
30
+ "finite": true
31
+ },
32
+ {
33
+ "case": 1,
34
+ "length": 128,
35
+ "tokens": 18,
36
+ "cosine": 0.9999999999997167,
37
+ "max_abs": 1.043081283569336e-07,
38
+ "finite": true
39
+ },
40
+ {
41
+ "case": 2,
42
+ "length": 128,
43
+ "tokens": 29,
44
+ "cosine": 0.9999999999969833,
45
+ "max_abs": 2.8219074010849e-07,
46
+ "finite": true
47
+ },
48
+ {
49
+ "case": 5,
50
+ "length": 256,
51
+ "tokens": 18,
52
+ "cosine": 0.9999999999997167,
53
+ "max_abs": 1.043081283569336e-07,
54
+ "finite": true
55
+ },
56
+ {
57
+ "case": 9,
58
+ "length": 256,
59
+ "tokens": 210,
60
+ "cosine": 0.9999999999995237,
61
+ "max_abs": 1.4901161193847656e-07,
62
+ "finite": true
63
+ },
64
+ {
65
+ "case": 4,
66
+ "length": 512,
67
+ "tokens": 505,
68
+ "cosine": 0.9999999999993194,
69
+ "max_abs": 1.3737007975578308e-07,
70
+ "finite": true
71
+ },
72
+ {
73
+ "case": 6,
74
+ "length": 512,
75
+ "tokens": 18,
76
+ "cosine": 0.9999999999997167,
77
+ "max_abs": 1.043081283569336e-07,
78
+ "finite": true
79
+ },
80
+ {
81
+ "case": 8,
82
+ "length": 512,
83
+ "tokens": 413,
84
+ "cosine": 0.9999999999995562,
85
+ "max_abs": 1.1920928955078125e-07,
86
+ "finite": true
87
+ },
88
+ {
89
+ "case": 10,
90
+ "length": 512,
91
+ "tokens": 280,
92
+ "cosine": 0.9999999999995377,
93
+ "max_abs": 1.1920928955078125e-07,
94
+ "finite": true
95
+ },
96
+ {
97
+ "case": 3,
98
+ "length": 1024,
99
+ "tokens": 622,
100
+ "cosine": 0.9999999999985083,
101
+ "max_abs": 2.2351741790771484e-07,
102
+ "finite": true
103
+ },
104
+ {
105
+ "case": 7,
106
+ "length": 1024,
107
+ "tokens": 18,
108
+ "cosine": 0.9999999999997167,
109
+ "max_abs": 1.043081283569336e-07,
110
+ "finite": true
111
+ },
112
+ {
113
+ "case": 11,
114
+ "length": 1024,
115
+ "tokens": 593,
116
+ "cosine": 0.9999999999997058,
117
+ "max_abs": 9.685754776000977e-08,
118
+ "finite": true
119
+ }
120
+ ]
121
+ }
validation/2026-11-16-five-bucket/REPORT.txt ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ EG2 five-function Core ML — measured November 16 extension
2
+
3
+ RESULT: PASS. Exact shared s128/s256/s512/s1024/s2048 artifact validated on M2 Air, 16 GiB,Version 27.2.1 (Build 26B131).
4
+ This validates the model artifact; production runtime activation and 8 GiB lifecycle policy are separate decisions.
5
+ Local/Air task root: five-bucket-build. Delivered package: models/EmbeddingGemma2Owned.mlpackage.
6
+ Exact source package: package-comparison/EmbeddingGemma2-5buckets.mlpackage.
7
+ No community converted weights used. FP16 encoder; FP32 final L2; float32 normalized raw 768-output. No application head projection.
8
+
9
+ PROVENANCE
10
+ Stock google/embeddinggemma-2 @ 914f7f89142e33e77833254d9c9b90c3cef7303b
11
+ Source weights SHA256 197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79
12
+ Tokenizer SHA256 4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4
13
+ Python 3.12.9; torch 2.7.0, transformers 5.19.0, coremltools 9.0, numpy 2.2.6, safetensors 0.8.0, tokenizers 0.23.3
14
+ Exact merged package retains four Nov 12 exports and the new Nov 16 s2048 export. Architecture eg2.py, stock source and dependency versions match; export fingerprints differ.
15
+ Per-function provenance, file hashes, contracts and matrix precision assertions are in evidence/asset-manifest.json.
16
+ Nov 12 target was macOS 27.0.1; every requested function is revalidated here on macOS 27.2.1.
17
+
18
+ NUMERICAL GATES
19
+ Stock HF FP32 vs rewritten forward: {"cases": 16, "minimumCosine": 0.9999999999969833, "maximumAbsoluteError": 2.8219074010849e-07}
20
+ Fresh stock HF FP32 vs native CoreML: {"cases": 16, "minimumCosine": 0.9999267183471062, "maximumAbsoluteError": 0.0022130757570266724, "maximumNormError": 8.305185117407632e-08}
21
+ Native >1024-token fixtures: {"cases": 3, "minimumCosine": 0.9999267183471062, "maximumAbsoluteError": 0.0022130757570266724, "maximumNormError": 6.090509219180973e-08}
22
+ Includes exact 2048 tokens including BOS/EOS,1151-token FiQA,1630-token multilingual text, short 18-token text padded 2048, and retained doc 52 normalization regression.
23
+ All 1499 fitting FiQA documents passed finite/dimension768/unit-norm gates. Only doc 178 (2212 tokens) excluded, with no truncation/fallback.
24
+ Corpus norm range: [0.9999998931240269, 1.0000000965439224]
25
+ Historical BF16 corpus file is unavailable; no new BF16 corpus comparison is claimed. Fresh stock-HF FP32 parity is separately recorded for 16 native fixtures, including 1151/1630/2048-token text.
26
+ Retained native reference comparisons: [{"path": "four-bucket-baseline/evidence/cold-vectors.json", "sha256": "a396a1d6bfa828d92ffc37ea57cc062fc827e14aafcf4e3c97e984ca8949b0ff", "scope": "Retained native normalized raw embeddings on overlapping documents only; not a new stock BF16 reference.", "count": 1491, "meanCosine": 1.0, "minCosine": 0.9999999999999996, "p01Cosine": 0.9999999999999997, "maxAbs": 0.0, "rawMaxAbs": 0.0}, {"path": "community-reference-baseline/coreml-cold-vectors.json", "sha256": "b2cbb58c669b1678adafcdf4195a498ef402963591050a9515e76382e26dc792", "scope": "Retained native normalized raw embeddings on overlapping documents only; not a new stock BF16 reference.", "count": 1491, "meanCosine": 0.9999971319467266, "minCosine": 0.9999853002739557, "p01Cosine": 0.9999937475228808, "maxAbs": 0.0009376662310690009, "rawMaxAbs": 0.0009419750422239304}]
27
+ Eight newly covered documents: [344, 360, 376, 679, 720, 741, 1030, 1425]
28
+ Raw-output parity remains separate from downstream head projection.
29
+
30
+ PREFERRED PLACEMENT (not a runtime operator trace)
31
+ length ANE_ops CPU_ops ANE_estimated_cost CPU_operators
32
+ 128 6195 14 0.533715 ios18.greater_equal,ios18.add,select,ios18.gather,ios18.transpose,ios18.cast,ios18.abs,ios16.reduce_max,ios18.maximum,ios18.real_div,ios18.mul,ios16.reduce_sum,ios18.sqrt,ios18.real_div
33
+ 256 6196 13 0.701960 ios18.greater_equal,ios18.add,select,ios18.gather,ios18.cast,ios18.abs,ios16.reduce_max,ios18.maximum,ios18.real_div,ios18.mul,ios16.reduce_sum,ios18.sqrt,ios18.real_div
34
+ 512 6196 13 0.833093 ios18.greater_equal,ios18.add,select,ios18.gather,ios18.cast,ios18.abs,ios16.reduce_max,ios18.maximum,ios18.real_div,ios18.mul,ios16.reduce_sum,ios18.sqrt,ios18.real_div
35
+ 1024 6196 13 0.916038 ios18.greater_equal,ios18.add,select,ios18.gather,ios18.cast,ios18.abs,ios16.reduce_max,ios18.maximum,ios18.real_div,ios18.mul,ios16.reduce_sum,ios18.sqrt,ios18.real_div
36
+ 2048 6196 13 0.962493 ios18.greater_equal,ios18.add,select,ios18.gather,ios18.cast,ios18.abs,ios16.reduce_max,ios18.maximum,ios18.real_div,ios18.mul,ios16.reduce_sum,ios18.sqrt,ios18.real_div
37
+ Every requested function produced a compute plan; CPU convolution/matmul/linear/softmax core was rejected. CPU lookup/final FP32 normalization is allowed.
38
+ cpuAndNeuralEngine allows CPU. Estimated costs are not measured walltime; no ANE-only claim.
39
+
40
+ LOAD / CORPUS TIMING
41
+ Cold load seconds: {"128": 24.694247007369995, "256": 25.176416993141174, "512": 27.837659001350403, "1024": 35.13489806652069, "2048": 52.084400057792664}
42
+ Same executable/path cached load seconds: {"128": 0.8247920274734497, "256": 0.7763159275054932, "512": 0.785383939743042, "1024": 0.8055109977722168, "2048": 0.7582509517669678}
43
+ Package compile seconds (separate): {"128": 2.376755952835083, "256": 4.0531158447265625e-06, "512": 5.0067901611328125e-06, "1024": 3.933906555175781e-06, "2048": 5.0067901611328125e-06}
44
+ First predict seconds: {"128": 0.020428061485290527, "256": 0.026198983192443848, "512": 0.04401803016662598, "1024": 0.10017800331115723, "2048": 0.312391996383667}
45
+ Corpus: {"docsPerSecond": 56.64224832419978, "p50Ms": 7.34400749206543, "p95Ms": 35.72690486907959, "byBucket": {"128": {"count": 763, "p50Ms": 6.98399543762207, "p95Ms": 7.252836227416992, "meanMs": 7.010898771323507}, "256": {"count": 444, "p50Ms": 12.937426567077637, "p95Ms": 13.127493858337402, "meanMs": 12.95819556390917}, "512": {"count": 227, "p50Ms": 33.18309783935547, "p95Ms": 35.46813726425171, "meanMs": 33.33738354334222}, "1024": {"count": 57, "p50Ms": 91.97795391082764, "p95Ms": 97.51024246215819, "meanMs": 92.61037592302289}, "2048": {"count": 8, "p50Ms": 313.24899196624756, "p95Ms": 323.17500710487366, "meanMs": 314.40161168575287}}}
46
+ Corpus timing includes input fill/prediction/output copy and excludes tokenization.
47
+
48
+ MATCHED WARM LONG-INPUT LATENCY
49
+ Direct-runtime comparison (not exact production wrappers): Core ML FP16 encoder + FP32 L2 versus stock Q8_0 GGUF. Different precisions and Swift/Go host APIs; not a precision-controlled backend study.
50
+ Same complete pretokenized inputs, batch 1, normalized copied 768-vector. Input construction, synchronous inference and output copying/normalization included; tokenizer/model load excluded. Backend-specific state cleanup included. No downstream head projection.
51
+ Two warmup rounds, five measured rounds of identical 11 complete inputs,1025–2048 tokens. One inference owner at a time.
52
+ ANE: {"count": 55, "meanMs": 300.240766690909, "p50Ms": 299.747666, "p95Ms": 303.1063661, "totalMs": 16513.242167999997}
53
+ Metal: {"count": 55, "meanMs": 435.0976386363638, "p50Ms": 423.657709, "p95Ms": 724.4996626, "totalMs": 23930.37012500001}
54
+ Aggregate Metal-time / ANE-time: 1.4491624286460965
55
+ All 25/25 layers offloaded to MTL0 per retained native llama.cpp load log.
56
+ Metal API: llama_encode (encoder-only EG2); encoder memory present: False. Metadata-only clear requested when present.
57
+ Near the lower boundary, compare {"id": "exact-1025", "tokens": 1025, "aneMedianMs": 299.528, "metalMedianMs": 299.215167, "aneSpeedupVsMetal": 0.9989555801127106, "cosine": 0.9997222304440985, "maxAbs": 0.003932026635818486, "aneNorm": 1.000000003055998, "metalNorm": 0.9999999885061803}; exact 2048 {"id": "hf-15", "tokens": 2048, "aneMedianMs": 299.552334, "metalMedianMs": 726.668292, "aneSpeedupVsMetal": 2.425847538213473, "cosine": 0.9997104092532022, "maxAbs": 0.0048206714515304505, "aneNorm": 1.0000000207067223, "metalNorm": 1.0000000500238178}. Aggregate speedup is not universal across lengths.
58
+ Per-input medians, normalized vectors, Q8/FP16 cosine and every sample are retained in evidence/.
59
+
60
+ MEMORY — footprint --wired
61
+ Neural nofootprint allocations are separate from ordinary physical footprint; retain Clean/Reclaimable/Wired distinction.
62
+ Each memory mode uses a separate process: s2048 alone; s128+s2048. Explicit release 2048, immediate and 30s snapshots, then release all.
63
+ ane-warm-active: ordinary 74 MB
64
+ 0 B 649 MB 544 KB 649 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)
65
+ ane-warm-baseline: ordinary 3441 KB
66
+ None
67
+ ane-warm-released-all-immediate: ordinary 74 MB
68
+ 0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)
69
+ cold-after-corpus: ordinary 468 MB
70
+ 0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)
71
+ cold-all-active: ordinary 479 MB
72
+ 0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)
73
+ cold-s1024: ordinary 460 MB
74
+ 0 B 444 MB 936 MB 444 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)
75
+ cold-s128: ordinary 345 MB
76
+ 0 B 283 MB 400 KB 283 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)
77
+ cold-s2048: ordinary 479 MB
78
+ 0 B 650 MB 1354 MB 649 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)
79
+ cold-s256: ordinary 286 MB
80
+ 0 B 305 MB 284 MB 305 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)
81
+ cold-s512: ordinary 335 MB
82
+ 0 B 350 MB 589 MB 350 MB 9 Owned physical footprint (unmapped) (neural) (nofootprint)
83
+ cold-start: ordinary 3633 KB
84
+ None
85
+ memory-alone-active: ordinary 138 MB
86
+ 0 B 649 MB 544 KB 649 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)
87
+ memory-alone-baseline: ordinary 3409 KB
88
+ None
89
+ memory-alone-released-all-30s: ordinary 136 MB
90
+ 0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)
91
+ memory-alone-released-all-immediate: ordinary 136 MB
92
+ 0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)
93
+ memory-alone-released2048-30s: ordinary 136 MB
94
+ 0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)
95
+ memory-alone-released2048-immediate: ordinary 138 MB
96
+ 0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)
97
+ memory-pair-active: ordinary 106 MB
98
+ 0 B 932 MB 944 KB 932 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)
99
+ memory-pair-baseline: ordinary 3409 KB
100
+ None
101
+ memory-pair-released-all-30s: ordinary 103 MB
102
+ 0 B 0 B 874 MB 0 B 2 Owned physical footprint (unmapped) (neural) (nofootprint)
103
+ memory-pair-released-all-immediate: ordinary 103 MB
104
+ 0 B 0 B 874 MB 0 B 2 Owned physical footprint (unmapped) (neural) (nofootprint)
105
+ memory-pair-released2048-30s: ordinary 103 MB
106
+ 0 B 64 KB 875 MB 0 B 4 Owned physical footprint (unmapped) (neural) (nofootprint)
107
+ memory-pair-released2048-immediate: ordinary 105 MB
108
+ 0 B 283 MB 592 MB 283 MB 4 Owned physical footprint (unmapped) (neural) (nofootprint)
109
+ memory-pair-short-active-after2048release: ordinary 103 MB
110
+ 0 B 283 MB 592 MB 283 MB 4 Owned physical footprint (unmapped) (neural) (nofootprint)
111
+ warm-all-active: ordinary 70 MB
112
+ 0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)
113
+ warm-s1024: ordinary 64 MB
114
+ 0 B 1381 MB 2032 KB 1381 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)
115
+ warm-s128: ordinary 138 MB
116
+ 0 B 283 MB 400 KB 283 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)
117
+ warm-s2048: ordinary 70 MB
118
+ 0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)
119
+ warm-s256: ordinary 33 MB
120
+ 0 B 588 MB 944 KB 588 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)
121
+ warm-s512: ordinary 63 MB
122
+ 0 B 937 MB 1488 KB 937 MB 9 Owned physical footprint (unmapped) (neural) (nofootprint)
123
+ warm-start: ordinary 3649 KB
124
+ None
125
+ No forced pressure, cache flush, service restart, or 8 GiB safety claim.
126
+
127
+ DISK / REPRODUCIBILITY
128
+ Exact package 574431459 bytes;394 external offsets shared across 5 functions,419 distinct offsets. +16489148bytes over the equivalent four-function package.
129
+ Disk sharing does not imply shared per-function neural allocations.
130
+ Clean s2048 rebuild: identical learned-weight blob and parsed protobuf; canonical SHA256 3d5b91b20e93f776e19f77072224a7277a4591dd593d325ea4c889e7ed8c3db6
131
+ Raw protobuf map order/package UUIDs may differ; not byte-identical whole-package packaging.
132
+ README reproduction rebuilds all 5 from pinned stock in a fresh directory. Fresh deployment prevents reuse of stale adjacent compiled model.
133
+ All owned test processes exited; see evidence/process-exit-check.txt. Source bundle includes scripts, fixtures, locks/licenses and SHA256SUMS; no large model/venv binaries.
validation/2026-11-16-five-bucket/asset-manifest.json ADDED
@@ -0,0 +1,780 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": {
3
+ "repo": "google/embeddinggemma-2",
4
+ "revision": "914f7f89142e33e77833254d9c9b90c3cef7303b",
5
+ "files": {
6
+ "config.json": {
7
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3",
8
+ "bytes": 4455
9
+ },
10
+ "model.safetensors": {
11
+ "sha256": "197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79",
12
+ "bytes": 1488915288
13
+ },
14
+ "tokenizer.json": {
15
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4",
16
+ "bytes": 32170510
17
+ },
18
+ "tokenizer_config.json": {
19
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874",
20
+ "bytes": 1599
21
+ }
22
+ }
23
+ },
24
+ "conversionProvenanceByFunction": {
25
+ "s128": {
26
+ "sourcePackage": "four-bucket-baseline/models/s128.mlpackage",
27
+ "provenance": {
28
+ "files": {
29
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
30
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
31
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
32
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
33
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
34
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
35
+ },
36
+ "versions": {
37
+ "torch": "2.7.0",
38
+ "transformers": "5.19.0",
39
+ "coremltools": "9.0",
40
+ "numpy": "2.2.6",
41
+ "safetensors": "0.8.0",
42
+ "tokenizers": "0.23.3"
43
+ },
44
+ "python": "3.12.9",
45
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
46
+ },
47
+ "precision": {
48
+ "encoder": "FP16",
49
+ "finalNormalization": "FP32",
50
+ "excludedFromFP16": [
51
+ {
52
+ "name": "24778",
53
+ "type": "const"
54
+ },
55
+ {
56
+ "name": "24779",
57
+ "type": "const"
58
+ },
59
+ {
60
+ "name": "24781",
61
+ "type": "abs"
62
+ },
63
+ {
64
+ "name": "24783_axes_0",
65
+ "type": "const"
66
+ },
67
+ {
68
+ "name": "24783",
69
+ "type": "reduce_max"
70
+ },
71
+ {
72
+ "name": "24784",
73
+ "type": "maximum"
74
+ },
75
+ {
76
+ "name": "cast_1320_dtype_0",
77
+ "type": "const"
78
+ },
79
+ {
80
+ "name": "cast_1321_dtype_0",
81
+ "type": "const"
82
+ },
83
+ {
84
+ "name": "x",
85
+ "type": "real_div"
86
+ },
87
+ {
88
+ "name": "24786",
89
+ "type": "mul"
90
+ },
91
+ {
92
+ "name": "24788_axes_0",
93
+ "type": "const"
94
+ },
95
+ {
96
+ "name": "24788_keep_dims_0",
97
+ "type": "const"
98
+ },
99
+ {
100
+ "name": "24788",
101
+ "type": "reduce_sum"
102
+ },
103
+ {
104
+ "name": "24789",
105
+ "type": "sqrt"
106
+ },
107
+ {
108
+ "name": "cast_1322_dtype_0",
109
+ "type": "const"
110
+ },
111
+ {
112
+ "name": "cast_1323_dtype_0",
113
+ "type": "const"
114
+ },
115
+ {
116
+ "name": "24790",
117
+ "type": "real_div"
118
+ }
119
+ ]
120
+ }
121
+ },
122
+ "s256": {
123
+ "sourcePackage": "four-bucket-baseline/models/s256.mlpackage",
124
+ "provenance": {
125
+ "files": {
126
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
127
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
128
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
129
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
130
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
131
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
132
+ },
133
+ "versions": {
134
+ "torch": "2.7.0",
135
+ "transformers": "5.19.0",
136
+ "coremltools": "9.0",
137
+ "numpy": "2.2.6",
138
+ "safetensors": "0.8.0",
139
+ "tokenizers": "0.23.3"
140
+ },
141
+ "python": "3.12.9",
142
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
143
+ },
144
+ "precision": {
145
+ "encoder": "FP16",
146
+ "finalNormalization": "FP32",
147
+ "excludedFromFP16": [
148
+ {
149
+ "name": "24778",
150
+ "type": "const"
151
+ },
152
+ {
153
+ "name": "24779",
154
+ "type": "const"
155
+ },
156
+ {
157
+ "name": "24781",
158
+ "type": "abs"
159
+ },
160
+ {
161
+ "name": "24783_axes_0",
162
+ "type": "const"
163
+ },
164
+ {
165
+ "name": "24783",
166
+ "type": "reduce_max"
167
+ },
168
+ {
169
+ "name": "24784",
170
+ "type": "maximum"
171
+ },
172
+ {
173
+ "name": "cast_1320_dtype_0",
174
+ "type": "const"
175
+ },
176
+ {
177
+ "name": "cast_1321_dtype_0",
178
+ "type": "const"
179
+ },
180
+ {
181
+ "name": "x",
182
+ "type": "real_div"
183
+ },
184
+ {
185
+ "name": "24786",
186
+ "type": "mul"
187
+ },
188
+ {
189
+ "name": "24788_axes_0",
190
+ "type": "const"
191
+ },
192
+ {
193
+ "name": "24788_keep_dims_0",
194
+ "type": "const"
195
+ },
196
+ {
197
+ "name": "24788",
198
+ "type": "reduce_sum"
199
+ },
200
+ {
201
+ "name": "24789",
202
+ "type": "sqrt"
203
+ },
204
+ {
205
+ "name": "cast_1322_dtype_0",
206
+ "type": "const"
207
+ },
208
+ {
209
+ "name": "cast_1323_dtype_0",
210
+ "type": "const"
211
+ },
212
+ {
213
+ "name": "24790",
214
+ "type": "real_div"
215
+ }
216
+ ]
217
+ }
218
+ },
219
+ "s512": {
220
+ "sourcePackage": "four-bucket-baseline/models/s512.mlpackage",
221
+ "provenance": {
222
+ "files": {
223
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
224
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
225
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
226
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
227
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
228
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
229
+ },
230
+ "versions": {
231
+ "torch": "2.7.0",
232
+ "transformers": "5.19.0",
233
+ "coremltools": "9.0",
234
+ "numpy": "2.2.6",
235
+ "safetensors": "0.8.0",
236
+ "tokenizers": "0.23.3"
237
+ },
238
+ "python": "3.12.9",
239
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
240
+ },
241
+ "precision": {
242
+ "encoder": "FP16",
243
+ "finalNormalization": "FP32",
244
+ "excludedFromFP16": [
245
+ {
246
+ "name": "24778",
247
+ "type": "const"
248
+ },
249
+ {
250
+ "name": "24779",
251
+ "type": "const"
252
+ },
253
+ {
254
+ "name": "24781",
255
+ "type": "abs"
256
+ },
257
+ {
258
+ "name": "24783_axes_0",
259
+ "type": "const"
260
+ },
261
+ {
262
+ "name": "24783",
263
+ "type": "reduce_max"
264
+ },
265
+ {
266
+ "name": "24784",
267
+ "type": "maximum"
268
+ },
269
+ {
270
+ "name": "cast_1320_dtype_0",
271
+ "type": "const"
272
+ },
273
+ {
274
+ "name": "cast_1321_dtype_0",
275
+ "type": "const"
276
+ },
277
+ {
278
+ "name": "x",
279
+ "type": "real_div"
280
+ },
281
+ {
282
+ "name": "24786",
283
+ "type": "mul"
284
+ },
285
+ {
286
+ "name": "24788_axes_0",
287
+ "type": "const"
288
+ },
289
+ {
290
+ "name": "24788_keep_dims_0",
291
+ "type": "const"
292
+ },
293
+ {
294
+ "name": "24788",
295
+ "type": "reduce_sum"
296
+ },
297
+ {
298
+ "name": "24789",
299
+ "type": "sqrt"
300
+ },
301
+ {
302
+ "name": "cast_1322_dtype_0",
303
+ "type": "const"
304
+ },
305
+ {
306
+ "name": "cast_1323_dtype_0",
307
+ "type": "const"
308
+ },
309
+ {
310
+ "name": "24790",
311
+ "type": "real_div"
312
+ }
313
+ ]
314
+ }
315
+ },
316
+ "s1024": {
317
+ "sourcePackage": "four-bucket-baseline/models/s1024.mlpackage",
318
+ "provenance": {
319
+ "files": {
320
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
321
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
322
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
323
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
324
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
325
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
326
+ },
327
+ "versions": {
328
+ "torch": "2.7.0",
329
+ "transformers": "5.19.0",
330
+ "coremltools": "9.0",
331
+ "numpy": "2.2.6",
332
+ "safetensors": "0.8.0",
333
+ "tokenizers": "0.23.3"
334
+ },
335
+ "python": "3.12.9",
336
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
337
+ },
338
+ "precision": {
339
+ "encoder": "FP16",
340
+ "finalNormalization": "FP32",
341
+ "excludedFromFP16": [
342
+ {
343
+ "name": "24778",
344
+ "type": "const"
345
+ },
346
+ {
347
+ "name": "24779",
348
+ "type": "const"
349
+ },
350
+ {
351
+ "name": "24781",
352
+ "type": "abs"
353
+ },
354
+ {
355
+ "name": "24783_axes_0",
356
+ "type": "const"
357
+ },
358
+ {
359
+ "name": "24783",
360
+ "type": "reduce_max"
361
+ },
362
+ {
363
+ "name": "24784",
364
+ "type": "maximum"
365
+ },
366
+ {
367
+ "name": "cast_1320_dtype_0",
368
+ "type": "const"
369
+ },
370
+ {
371
+ "name": "cast_1321_dtype_0",
372
+ "type": "const"
373
+ },
374
+ {
375
+ "name": "x",
376
+ "type": "real_div"
377
+ },
378
+ {
379
+ "name": "24786",
380
+ "type": "mul"
381
+ },
382
+ {
383
+ "name": "24788_axes_0",
384
+ "type": "const"
385
+ },
386
+ {
387
+ "name": "24788_keep_dims_0",
388
+ "type": "const"
389
+ },
390
+ {
391
+ "name": "24788",
392
+ "type": "reduce_sum"
393
+ },
394
+ {
395
+ "name": "24789",
396
+ "type": "sqrt"
397
+ },
398
+ {
399
+ "name": "cast_1322_dtype_0",
400
+ "type": "const"
401
+ },
402
+ {
403
+ "name": "cast_1323_dtype_0",
404
+ "type": "const"
405
+ },
406
+ {
407
+ "name": "24790",
408
+ "type": "real_div"
409
+ }
410
+ ]
411
+ }
412
+ },
413
+ "s2048": {
414
+ "sourcePackage": "five-bucket-build/models/s2048.mlpackage",
415
+ "provenance": {
416
+ "files": {
417
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
418
+ "parity.py": "2c680ea416ddde788df7b68ef08d53a7565264a7224f6b04ba592fdbaa61b27c",
419
+ "buckets.py": "ff2261663941716c9b6884bb11a9cbaa75d660d6c41061d03c9ce0a0c473656a",
420
+ "tokens.json": "ff7f41a9586d566abf33f14aa9033f40e6d701698baa1d552b2f12f8f742a13a",
421
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
422
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
423
+ "provenance.py": "ab05275c8da35cd35847e14fac38c31aa3142adb2cfa0f351f3fbbebfd693330",
424
+ "convert.py": "432a26fb6bea8e7f943a783592c3f6c8bdecf56bce4d78c465d3f203c05ea5ca"
425
+ },
426
+ "versions": {
427
+ "torch": "2.7.0",
428
+ "transformers": "5.19.0",
429
+ "coremltools": "9.0",
430
+ "numpy": "2.2.6",
431
+ "safetensors": "0.8.0",
432
+ "tokenizers": "0.23.3"
433
+ },
434
+ "python": "3.12.9",
435
+ "fingerprint": "b2707f2f48091d50d70fb4d52181924aedf0e5ea23521d123914d0775db69e33"
436
+ },
437
+ "precision": {
438
+ "encoder": "FP16",
439
+ "finalNormalization": "FP32",
440
+ "excludedFromFP16": [
441
+ {
442
+ "name": "24778",
443
+ "type": "const"
444
+ },
445
+ {
446
+ "name": "24779",
447
+ "type": "const"
448
+ },
449
+ {
450
+ "name": "24781",
451
+ "type": "abs"
452
+ },
453
+ {
454
+ "name": "24783_axes_0",
455
+ "type": "const"
456
+ },
457
+ {
458
+ "name": "24783",
459
+ "type": "reduce_max"
460
+ },
461
+ {
462
+ "name": "24784",
463
+ "type": "maximum"
464
+ },
465
+ {
466
+ "name": "cast_1320_dtype_0",
467
+ "type": "const"
468
+ },
469
+ {
470
+ "name": "cast_1321_dtype_0",
471
+ "type": "const"
472
+ },
473
+ {
474
+ "name": "x",
475
+ "type": "real_div"
476
+ },
477
+ {
478
+ "name": "24786",
479
+ "type": "mul"
480
+ },
481
+ {
482
+ "name": "24788_axes_0",
483
+ "type": "const"
484
+ },
485
+ {
486
+ "name": "24788_keep_dims_0",
487
+ "type": "const"
488
+ },
489
+ {
490
+ "name": "24788",
491
+ "type": "reduce_sum"
492
+ },
493
+ {
494
+ "name": "24789",
495
+ "type": "sqrt"
496
+ },
497
+ {
498
+ "name": "cast_1322_dtype_0",
499
+ "type": "const"
500
+ },
501
+ {
502
+ "name": "cast_1323_dtype_0",
503
+ "type": "const"
504
+ },
505
+ {
506
+ "name": "24790",
507
+ "type": "real_div"
508
+ }
509
+ ]
510
+ }
511
+ }
512
+ },
513
+ "precision": "FP16 encoder weights/matrix compute; FP32 final L2; float32 output",
514
+ "packages": {
515
+ "EmbeddingGemma2Owned.mlpackage": {
516
+ "bytes": 574431459,
517
+ "files": {
518
+ "Data/com.apple.CoreML/model.mlmodel": {
519
+ "bytes": 9043834,
520
+ "sha256": "715c377bda514242cabc6497843ca831d1eec1d84b5e48c6f93a13663e6ce104"
521
+ },
522
+ "Data/com.apple.CoreML/weights/weight.bin": {
523
+ "bytes": 565387008,
524
+ "sha256": "86bf461bce224075ea9ff6fc6a2c2abe50cd701eee58f1d3f5d8e6988d234657"
525
+ },
526
+ "Manifest.json": {
527
+ "bytes": 617,
528
+ "sha256": "8f494dc20af594dd81ca1082c50d0db80eae392a84621955de1d1c5c0e99aed2"
529
+ }
530
+ }
531
+ },
532
+ "s128.mlpackage": {
533
+ "bytes": 544258261,
534
+ "files": {
535
+ "Data/com.apple.CoreML/model.mlmodel": {
536
+ "bytes": 1809516,
537
+ "sha256": "05537c763c2b3bf458541bdde0fc116d811d02e669d5400da6eae908954488c9"
538
+ },
539
+ "Data/com.apple.CoreML/weights/weight.bin": {
540
+ "bytes": 542448128,
541
+ "sha256": "84ca5157c0540b722f69988b8173af16bcfb884cf6b6dbd9c7793e401c6ba9b3"
542
+ },
543
+ "Manifest.json": {
544
+ "bytes": 617,
545
+ "sha256": "193d40f86376dc8e4c488c419910a468fa0b7179a7aabd82df4ebb2c4686637c"
546
+ }
547
+ }
548
+ },
549
+ "s256.mlpackage": {
550
+ "bytes": 544749781,
551
+ "files": {
552
+ "Data/com.apple.CoreML/model.mlmodel": {
553
+ "bytes": 1809516,
554
+ "sha256": "07a452f1f676519d3068892edee101c5db1e23d0b247a359286324d32006d2e0"
555
+ },
556
+ "Data/com.apple.CoreML/weights/weight.bin": {
557
+ "bytes": 542939648,
558
+ "sha256": "c18557a35fd7d5d6017799eb1ab065943febe533f4917b7bdf3bc5f00c2ea3e3"
559
+ },
560
+ "Manifest.json": {
561
+ "bytes": 617,
562
+ "sha256": "13740206e8d9ff32ffff582f7cd82f5cd19e613113c74ae3af56a2b90cc16d4c"
563
+ }
564
+ }
565
+ },
566
+ "s512.mlpackage": {
567
+ "bytes": 545929429,
568
+ "files": {
569
+ "Data/com.apple.CoreML/model.mlmodel": {
570
+ "bytes": 1809516,
571
+ "sha256": "5463dc387be1689cbcef67d815853ec981c04252cd7874ee563c359f3ae85dd7"
572
+ },
573
+ "Data/com.apple.CoreML/weights/weight.bin": {
574
+ "bytes": 544119296,
575
+ "sha256": "2f92ffe28d01b4cecc5f47f9c0774a966ad041d2983f47315cf299bd0c0371cf"
576
+ },
577
+ "Manifest.json": {
578
+ "bytes": 617,
579
+ "sha256": "d394e086eda6a92aacf7b4299926c426686de7d7c89bfb920fb654e78574c3e5"
580
+ }
581
+ }
582
+ },
583
+ "s1024.mlpackage": {
584
+ "bytes": 549075157,
585
+ "files": {
586
+ "Data/com.apple.CoreML/model.mlmodel": {
587
+ "bytes": 1809516,
588
+ "sha256": "3904740c5103cf5a9424f39e8ef5ad553a9c69c002292875d29b7094b199fe7c"
589
+ },
590
+ "Data/com.apple.CoreML/weights/weight.bin": {
591
+ "bytes": 547265024,
592
+ "sha256": "f2af7e0d98c788310d234039e87bf91e2a95489c623119389c2a422b88dfd99a"
593
+ },
594
+ "Manifest.json": {
595
+ "bytes": 617,
596
+ "sha256": "4eaf479df25f291839d974306ac86be53ee762c76859ceba710a5cf6c3bb8f06"
597
+ }
598
+ }
599
+ },
600
+ "s2048.mlpackage": {
601
+ "bytes": 558512341,
602
+ "files": {
603
+ "Data/com.apple.CoreML/model.mlmodel": {
604
+ "bytes": 1809516,
605
+ "sha256": "fb5272d6f1e1eac2da7bdb65852f3bc304023f9f4113bc155808cb912597e6b8"
606
+ },
607
+ "Data/com.apple.CoreML/weights/weight.bin": {
608
+ "bytes": 556702208,
609
+ "sha256": "85d501d1644f831ba2576300e8fd9e40b63c44ecd256393dbbcf5973ce2c43b7"
610
+ },
611
+ "Manifest.json": {
612
+ "bytes": 617,
613
+ "sha256": "058b4bc50f550f70218e4d91497bfe0567ac53150f280d4611d08d14dec7891b"
614
+ }
615
+ }
616
+ }
617
+ },
618
+ "functions": [
619
+ "s1024",
620
+ "s128",
621
+ "s2048",
622
+ "s256",
623
+ "s512"
624
+ ],
625
+ "contracts": {
626
+ "s128": {
627
+ "inputs": {
628
+ "input_ids": [
629
+ [
630
+ 1,
631
+ 128
632
+ ],
633
+ 131104
634
+ ],
635
+ "attention_mask": [
636
+ [
637
+ 1,
638
+ 128
639
+ ],
640
+ 65568
641
+ ]
642
+ },
643
+ "outputs": {
644
+ "embedding": [
645
+ [
646
+ 1,
647
+ 768
648
+ ],
649
+ 65568
650
+ ]
651
+ }
652
+ },
653
+ "s256": {
654
+ "inputs": {
655
+ "input_ids": [
656
+ [
657
+ 1,
658
+ 256
659
+ ],
660
+ 131104
661
+ ],
662
+ "attention_mask": [
663
+ [
664
+ 1,
665
+ 256
666
+ ],
667
+ 65568
668
+ ]
669
+ },
670
+ "outputs": {
671
+ "embedding": [
672
+ [
673
+ 1,
674
+ 768
675
+ ],
676
+ 65568
677
+ ]
678
+ }
679
+ },
680
+ "s512": {
681
+ "inputs": {
682
+ "input_ids": [
683
+ [
684
+ 1,
685
+ 512
686
+ ],
687
+ 131104
688
+ ],
689
+ "attention_mask": [
690
+ [
691
+ 1,
692
+ 512
693
+ ],
694
+ 65568
695
+ ]
696
+ },
697
+ "outputs": {
698
+ "embedding": [
699
+ [
700
+ 1,
701
+ 768
702
+ ],
703
+ 65568
704
+ ]
705
+ }
706
+ },
707
+ "s1024": {
708
+ "inputs": {
709
+ "input_ids": [
710
+ [
711
+ 1,
712
+ 1024
713
+ ],
714
+ 131104
715
+ ],
716
+ "attention_mask": [
717
+ [
718
+ 1,
719
+ 1024
720
+ ],
721
+ 65568
722
+ ]
723
+ },
724
+ "outputs": {
725
+ "embedding": [
726
+ [
727
+ 1,
728
+ 768
729
+ ],
730
+ 65568
731
+ ]
732
+ }
733
+ },
734
+ "s2048": {
735
+ "inputs": {
736
+ "input_ids": [
737
+ [
738
+ 1,
739
+ 2048
740
+ ],
741
+ 131104
742
+ ],
743
+ "attention_mask": [
744
+ [
745
+ 1,
746
+ 2048
747
+ ],
748
+ 65568
749
+ ]
750
+ },
751
+ "outputs": {
752
+ "embedding": [
753
+ [
754
+ 1,
755
+ 768
756
+ ],
757
+ 65568
758
+ ]
759
+ }
760
+ }
761
+ },
762
+ "verifiedFP16MatrixOperations": {
763
+ "s256": 433,
764
+ "s2048": 433,
765
+ "s128": 433,
766
+ "s1024": 433,
767
+ "s512": 433
768
+ },
769
+ "externalTensorReferences": {
770
+ "s256": 399,
771
+ "s2048": 399,
772
+ "s128": 399,
773
+ "s1024": 399,
774
+ "s512": 399
775
+ },
776
+ "sharedExternalTensorOffsetsAcrossAllFunctions": 394,
777
+ "allDistinctExternalTensorOffsets": 419,
778
+ "standaloneTotalBytes": 2742524969,
779
+ "mergedBytes": 574431459
780
+ }
validation/2026-11-16-five-bucket/benchmark-assets.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "llama": {
3
+ "release": "b11600",
4
+ "upstream": "https://github.com/ggml-org/llama.cpp/releases/tag/b11600",
5
+ "version": "b11600-macos-arm64",
6
+ "files": {
7
+ "libllama-common.0.6.0.dylib": {
8
+ "bytes": 7764392,
9
+ "sha256": "f0479e626360c1d17d1cc9f27520266397126605aabc8b256204cd528153bf94"
10
+ },
11
+ "libllama.0.6.0.dylib": {
12
+ "bytes": 3400416,
13
+ "sha256": "9c2b730b4e96796e7dcf775a66eb92ee23879e67aa96f1ff4fceae7a7c485727"
14
+ },
15
+ "LICENSE": {
16
+ "bytes": 1078,
17
+ "sha256": "94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d"
18
+ },
19
+ "libggml-blas.0.26.0.dylib": {
20
+ "bytes": 58776,
21
+ "sha256": "6526259e8f70a5b3a394df3ba082050c290d7653846efbdc84b3710b22fb4eac"
22
+ },
23
+ "libggml-rpc.0.26.0.dylib": {
24
+ "bytes": 242000,
25
+ "sha256": "4ca97a6099e861ffb4c174b01d68d65e782a2c0373495fb894eb2008fa8a00e6"
26
+ },
27
+ "libggml-metal.0.26.0.dylib": {
28
+ "bytes": 5554552,
29
+ "sha256": "6367decaede0a8dff536cdaaae0f93a7219bd9e407d95530033af240d3ec4717"
30
+ },
31
+ "libggml-cpu.0.26.0.dylib": {
32
+ "bytes": 957408,
33
+ "sha256": "937073375f79a187d8fda2e3900a9095e979593b691d6bbb146956743ceddd82"
34
+ },
35
+ "libggml.0.26.0.dylib": {
36
+ "bytes": 60016,
37
+ "sha256": "8f9eb83318b871bf83697a40b4594c65f5f70b1cf9e77b10885ab8d3de4725c9"
38
+ },
39
+ "VERSION": {
40
+ "bytes": 19,
41
+ "sha256": "c1e4111f5a35c0593f9b07bbb9edc8d2e4c6bb1d3df750a7120e6d1fdab74927"
42
+ },
43
+ "libggml-base.0.26.0.dylib": {
44
+ "bytes": 751240,
45
+ "sha256": "5e8d88e72c2237d510ce76059c889f6a64890d5fbaf29eee45fa98d3e21bc80d"
46
+ }
47
+ }
48
+ },
49
+ "gguf": {
50
+ "repo": "ggml-org/embeddinggemma-2-GGUF",
51
+ "revision": "bfcd298762cc34d0357ece5ebdd31791a3a374d8",
52
+ "filename": "embeddinggemma-2-Q8_0.gguf",
53
+ "sha256": "2188ac1deca4b77dffefd603c2776a9d76d9d74ec01841392982ebb840b09135"
54
+ },
55
+ "goVersion": "go1.27.1 darwin/arm64",
56
+ "goModSHA256": "401cc7b16ee7cf25b965178b2bd4e57f6c2234b42ad14c7b87ad0e2837a354e4",
57
+ "goSumSHA256": "def69ee023265783b661ef7ca40d51f4d07a4f1b7552554fda1305d2f1737e8f",
58
+ "inputsSHA256": "6791a1ecc30ed384bc2271e097fe5f4d592beac0494d7d706fe49eb090e9ce91",
59
+ "yzma": "v1.30.0",
60
+ "metalRunnerSHA256": "332e1983b911fe8fb26fbe31cc5d7e2d929cf323bb25d0ca4963fc4662bdf94c",
61
+ "abiEvidence": "upstream/yzma-abi-notes.txt",
62
+ "metalAPI": "llama_encode",
63
+ "memoryClearData": false
64
+ }
validation/2026-11-16-five-bucket/build-environment.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "python": "3.12.9 (main, Feb 4 2025, 14:38:38) [Clang 16.0.0 (clang-1600.0.26.6)]",
3
+ "platform": "macOS-26.7.1-arm64-arm-64bit",
4
+ "dependencies": {
5
+ "torch": "2.7.0",
6
+ "transformers": "5.19.0",
7
+ "coremltools": "9.0",
8
+ "numpy": "2.2.6",
9
+ "safetensors": "0.8.0",
10
+ "tokenizers": "0.23.3"
11
+ },
12
+ "modelSource": {
13
+ "repo": "google/embeddinggemma-2",
14
+ "revision": "914f7f89142e33e77833254d9c9b90c3cef7303b",
15
+ "files": {
16
+ "config.json": {
17
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3",
18
+ "bytes": 4455
19
+ },
20
+ "model.safetensors": {
21
+ "sha256": "197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79",
22
+ "bytes": 1488915288
23
+ },
24
+ "tokenizer.json": {
25
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4",
26
+ "bytes": 32170510
27
+ },
28
+ "tokenizer_config.json": {
29
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874",
30
+ "bytes": 1599
31
+ }
32
+ }
33
+ },
34
+ "baseSourceCommit": "9eb1ee5d",
35
+ "architectureUnchangedFromFourBucket": true,
36
+ "eg2SHA256": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410"
37
+ }
validation/2026-11-16-five-bucket/cold.json ADDED
The diff for this file is too large to render. See raw diff
 
validation/2026-11-16-five-bucket/corpus-parity.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "documents": 1499,
3
+ "finite": true,
4
+ "zeroVectors": 0,
5
+ "normRange": [
6
+ 0.9999998931240269,
7
+ 1.0000000965439224
8
+ ],
9
+ "excludedOverMaxLength": [
10
+ {
11
+ "documentIndex": 178,
12
+ "tokens": 2212
13
+ }
14
+ ],
15
+ "new2048DocumentIndices": [
16
+ 344,
17
+ 360,
18
+ 376,
19
+ 679,
20
+ 720,
21
+ 741,
22
+ 1030,
23
+ 1425
24
+ ],
25
+ "referenceComparisons": [
26
+ {
27
+ "path": "four-bucket-baseline/evidence/cold-vectors.json",
28
+ "sha256": "a396a1d6bfa828d92ffc37ea57cc062fc827e14aafcf4e3c97e984ca8949b0ff",
29
+ "scope": "Retained native normalized raw embeddings on overlapping documents only; not a new stock BF16 reference.",
30
+ "count": 1491,
31
+ "meanCosine": 1.0,
32
+ "minCosine": 0.9999999999999996,
33
+ "p01Cosine": 0.9999999999999997,
34
+ "maxAbs": 0.0,
35
+ "rawMaxAbs": 0.0
36
+ },
37
+ {
38
+ "path": "community-reference-baseline/coreml-cold-vectors.json",
39
+ "sha256": "b2cbb58c669b1678adafcdf4195a498ef402963591050a9515e76382e26dc792",
40
+ "scope": "Retained native normalized raw embeddings on overlapping documents only; not a new stock BF16 reference.",
41
+ "count": 1491,
42
+ "meanCosine": 0.9999971319467266,
43
+ "minCosine": 0.9999853002739557,
44
+ "p01Cosine": 0.9999937475228808,
45
+ "maxAbs": 0.0009376662310690009,
46
+ "rawMaxAbs": 0.0009419750422239304
47
+ }
48
+ ],
49
+ "bf16ReferenceLimitation": "Historical BF16 corpus file is unavailable; no new BF16 corpus comparison is claimed. Fresh stock-HF FP32 parity is separately recorded for16 native fixtures, including1151/1630/2048-token text."
50
+ }
validation/2026-11-16-five-bucket/hf-reference.json ADDED
The diff for this file is too large to render. See raw diff
 
validation/2026-11-16-five-bucket/matched-latency.json ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "inputsSHA256": "6791a1ecc30ed384bc2271e097fe5f4d592beac0494d7d706fe49eb090e9ce91",
3
+ "warmupRounds": 2,
4
+ "measuredRounds": 5,
5
+ "rows": [
6
+ {
7
+ "id": "exact-1025",
8
+ "tokens": 1025,
9
+ "aneMedianMs": 299.528,
10
+ "metalMedianMs": 299.215167,
11
+ "aneSpeedupVsMetal": 0.9989555801127106,
12
+ "cosine": 0.9997222304440985,
13
+ "maxAbs": 0.003932026635818486,
14
+ "aneNorm": 1.000000003055998,
15
+ "metalNorm": 0.9999999885061803
16
+ },
17
+ {
18
+ "id": "fiqa-344",
19
+ "tokens": 1151,
20
+ "aneMedianMs": 299.914916,
21
+ "metalMedianMs": 334.61125,
22
+ "aneSpeedupVsMetal": 1.1156872571152812,
23
+ "cosine": 0.9999063110479675,
24
+ "maxAbs": 0.0019580531076867583,
25
+ "aneNorm": 1.0000000392625088,
26
+ "metalNorm": 0.9999999959859227
27
+ },
28
+ {
29
+ "id": "fiqa-360",
30
+ "tokens": 1553,
31
+ "aneMedianMs": 299.825833,
32
+ "metalMedianMs": 512.745208,
33
+ "aneSpeedupVsMetal": 1.710143528559796,
34
+ "cosine": 0.9998774482771922,
35
+ "maxAbs": 0.0019794874829740516,
36
+ "aneNorm": 0.999999987293663,
37
+ "metalNorm": 1.0000000352455116
38
+ },
39
+ {
40
+ "id": "fiqa-376",
41
+ "tokens": 1352,
42
+ "aneMedianMs": 301.696292,
43
+ "metalMedianMs": 423.657709,
44
+ "aneSpeedupVsMetal": 1.4042522902469081,
45
+ "cosine": 0.9998754680874423,
46
+ "maxAbs": 0.0021161346659774784,
47
+ "aneNorm": 1.000000005969565,
48
+ "metalNorm": 1.0000000398673679
49
+ },
50
+ {
51
+ "id": "fiqa-679",
52
+ "tokens": 1077,
53
+ "aneMedianMs": 299.427416,
54
+ "metalMedianMs": 310.459375,
55
+ "aneSpeedupVsMetal": 1.0368435166938756,
56
+ "cosine": 0.9998991934714746,
57
+ "maxAbs": 0.001771586213188181,
58
+ "aneNorm": 1.000000036623459,
59
+ "metalNorm": 1.000000009986988
60
+ },
61
+ {
62
+ "id": "fiqa-720",
63
+ "tokens": 1485,
64
+ "aneMedianMs": 299.913792,
65
+ "metalMedianMs": 478.360375,
66
+ "aneSpeedupVsMetal": 1.594992920498968,
67
+ "cosine": 0.9998759033714655,
68
+ "maxAbs": 0.0022669131773107526,
69
+ "aneNorm": 1.0000000638506092,
70
+ "metalNorm": 0.9999999653032601
71
+ },
72
+ {
73
+ "id": "fiqa-741",
74
+ "tokens": 1368,
75
+ "aneMedianMs": 300.264417,
76
+ "metalMedianMs": 426.019833,
77
+ "aneSpeedupVsMetal": 1.4188155801358242,
78
+ "cosine": 0.9998988807432334,
79
+ "maxAbs": 0.0017298850281324378,
80
+ "aneNorm": 1.0000000389440666,
81
+ "metalNorm": 0.9999999713697575
82
+ },
83
+ {
84
+ "id": "fiqa-1030",
85
+ "tokens": 1263,
86
+ "aneMedianMs": 298.35975,
87
+ "metalMedianMs": 379.391583,
88
+ "aneSpeedupVsMetal": 1.2715910339782763,
89
+ "cosine": 0.9998770173010044,
90
+ "maxAbs": 0.0018990824993782018,
91
+ "aneNorm": 1.0000000475489057,
92
+ "metalNorm": 0.9999999920672044
93
+ },
94
+ {
95
+ "id": "fiqa-1425",
96
+ "tokens": 1210,
97
+ "aneMedianMs": 299.819209,
98
+ "metalMedianMs": 357.795125,
99
+ "aneSpeedupVsMetal": 1.1933695849354335,
100
+ "cosine": 0.9998702064754619,
101
+ "maxAbs": 0.001825121052665718,
102
+ "aneNorm": 1.0000000360970194,
103
+ "metalNorm": 0.9999999713040844
104
+ },
105
+ {
106
+ "id": "hf-14",
107
+ "tokens": 1630,
108
+ "aneMedianMs": 299.545042,
109
+ "metalMedianMs": 541.490625,
110
+ "aneSpeedupVsMetal": 1.8077101907098165,
111
+ "cosine": 0.9998733185750059,
112
+ "maxAbs": 0.0019542371358230114,
113
+ "aneNorm": 0.9999999390949084,
114
+ "metalNorm": 0.9999999850770979
115
+ },
116
+ {
117
+ "id": "hf-15",
118
+ "tokens": 2048,
119
+ "aneMedianMs": 299.552334,
120
+ "metalMedianMs": 726.668292,
121
+ "aneSpeedupVsMetal": 2.425847538213473,
122
+ "cosine": 0.9997104092532022,
123
+ "maxAbs": 0.0048206714515304505,
124
+ "aneNorm": 1.0000000207067223,
125
+ "metalNorm": 1.0000000500238178
126
+ }
127
+ ],
128
+ "metalPlacement": "All25/25 layers offloaded to MTL0 per retained native llama.cpp load log.",
129
+ "metalAPI": "llama_encode (encoder-only EG2)",
130
+ "metalMemoryPresent": false,
131
+ "metalMemoryClearData": false,
132
+ "precisionCaveat": "Direct-runtime comparison (not exact production wrappers): Core ML FP16 encoder + FP32 L2 versus stock Q8_0 GGUF. Different precisions and Swift/Go host APIs; not a precision-controlled backend study.",
133
+ "timingBoundary": "Same complete pretokenized inputs, batch1, normalized copied768-vector. Input construction, synchronous inference and output copying/normalization included; tokenizer/model load excluded. Backend-specific state cleanup included. No downstream head projection.",
134
+ "aneTimingBoundary": "pretokenized IDs to copied normalized 768-vector; includes per-call MLMultiArray allocation/fill, synchronous prediction, output copy and autorelease; excludes model load/tokenization and validation checks",
135
+ "metalTimingBoundary": "pretokenized IDs to copied normalized 768-vector; includes per-call input allocation/fill, state clear, inference synchronization, output copy/L2 and batch free; excludes model load/tokenization",
136
+ "ane": {
137
+ "count": 55,
138
+ "meanMs": 300.240766690909,
139
+ "p50Ms": 299.747666,
140
+ "p95Ms": 303.1063661,
141
+ "totalMs": 16513.242167999997
142
+ },
143
+ "metal": {
144
+ "count": 55,
145
+ "meanMs": 435.0976386363638,
146
+ "p50Ms": 423.657709,
147
+ "p95Ms": 724.4996626,
148
+ "totalMs": 23930.37012500001
149
+ },
150
+ "aggregateSpeedupVsMetal": 1.4491624286460965
151
+ }
validation/2026-11-16-five-bucket/memory-alone.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "computeUnits" : "cpuAndNeuralEngine",
3
+ "loadSeconds" : {
4
+ "2048" : 0.75684499740600586
5
+ },
6
+ "mode" : "memory-alone",
7
+ "modelsExplicitlyReleased" : true,
8
+ "os" : "Version 27.2.1 (Build 26B131)",
9
+ "phase" : "complete",
10
+ "pid" : 31079
11
+ }
validation/2026-11-16-five-bucket/memory-pair.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "computeUnits" : "cpuAndNeuralEngine",
3
+ "loadSeconds" : {
4
+ "128" : 22.087383985519409,
5
+ "2048" : 0.69863903522491455
6
+ },
7
+ "mode" : "memory-pair",
8
+ "modelsExplicitlyReleased" : true,
9
+ "os" : "Version 27.2.1 (Build 26B131)",
10
+ "phase" : "complete",
11
+ "pid" : 30854
12
+ }
validation/2026-11-16-five-bucket/rebuild-reproducibility.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "length": 2048,
3
+ "freshOutputDirectory": "reproducibility-rebuild/s2048.mlpackage",
4
+ "files": {
5
+ "Manifest.json": {
6
+ "initialSHA256": "058b4bc50f550f70218e4d91497bfe0567ac53150f280d4611d08d14dec7891b",
7
+ "rebuiltSHA256": "cd0a997bad988a614736c3a07b005826e245ba67aa4280d097f060ce1c70badc",
8
+ "equal": false
9
+ },
10
+ "Data/com.apple.CoreML/model.mlmodel": {
11
+ "initialSHA256": "fb5272d6f1e1eac2da7bdb65852f3bc304023f9f4113bc155808cb912597e6b8",
12
+ "rebuiltSHA256": "35d9339f67bf7963c4250dc7224ab9afc5ddc3641229cf4cc3343966c5f94259",
13
+ "equal": false
14
+ },
15
+ "Data/com.apple.CoreML/weights/weight.bin": {
16
+ "initialSHA256": "85d501d1644f831ba2576300e8fd9e40b63c44ecd256393dbbcf5973ce2c43b7",
17
+ "rebuiltSHA256": "85d501d1644f831ba2576300e8fd9e40b63c44ecd256393dbbcf5973ce2c43b7",
18
+ "equal": true
19
+ }
20
+ },
21
+ "weightBlobIdentical": true,
22
+ "modelProtoIdentical": false,
23
+ "wholePackageFilesIdentical": false,
24
+ "modelProtoSemanticallyIdentical": true,
25
+ "deterministicProtoSHA256": {
26
+ "initial": "3d5b91b20e93f776e19f77072224a7277a4591dd593d325ea4c889e7ed8c3db6",
27
+ "rebuilt": "3d5b91b20e93f776e19f77072224a7277a4591dd593d325ea4c889e7ed8c3db6"
28
+ },
29
+ "interpretation": "Same weight bytes and identical parsed protobuf; raw protobuf map serialization order and package UUIDs differ. Not a byte-identical whole package."
30
+ }
validation/2026-11-16-five-bucket/release-validation.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "completed": true,
3
+ "parityPassed": true,
4
+ "placementPassed": true,
5
+ "modelPackageBytes": 574431459,
6
+ "target": {
7
+ "os": "Version 27.2.1 (Build 26B131)",
8
+ "chip": "Apple M2",
9
+ "ramGiB": 16
10
+ },
11
+ "freshHFCoreMLParity": {
12
+ "cases": 16,
13
+ "minimumCosine": 0.9999267183471062,
14
+ "maximumAbsoluteError": 0.0022130757570266724,
15
+ "maximumNormError": 8.305185117407632e-08
16
+ },
17
+ "longHFCoreMLParity": {
18
+ "cases": 3,
19
+ "minimumCosine": 0.9999267183471062,
20
+ "maximumAbsoluteError": 0.0022130757570266724,
21
+ "maximumNormError": 6.090509219180973e-08
22
+ },
23
+ "corpusDocuments": 1499,
24
+ "excludedOver2048": [
25
+ {
26
+ "documentIndex": 178,
27
+ "tokens": 2212
28
+ }
29
+ ],
30
+ "matchedLatency": {
31
+ "ane": {
32
+ "count": 55,
33
+ "meanMs": 300.240766690909,
34
+ "p50Ms": 299.747666,
35
+ "p95Ms": 303.1063661,
36
+ "totalMs": 16513.242167999997
37
+ },
38
+ "metal": {
39
+ "count": 55,
40
+ "meanMs": 435.0976386363638,
41
+ "p50Ms": 423.657709,
42
+ "p95Ms": 724.4996626,
43
+ "totalMs": 23930.37012500001
44
+ },
45
+ "aggregateSpeedupVsMetal": 1.4491624286460965,
46
+ "boundary1025": "Essentially tied: ANE299.528ms vsMetal299.215ms median",
47
+ "scope": "Direct-runtime comparison (not exact production wrappers): Core ML FP16 encoder + FP32 L2 versus stock Q8_0 GGUF. Different precisions and Swift/Go host APIs; not a precision-controlled backend study."
48
+ },
49
+ "memory": "649MiB wired for s2048 alone;932MiB for s128+s2048. Release removes wired allocation but reclaimable cache remains. These are neural allocations, separate from ordinary process footprint.",
50
+ "eightGiBFullAppSafetyValidated": false,
51
+ "productionRuntimeValidated": false,
52
+ "publicEvidencePaths": "Local absolute paths normalized for publication; original evidence retained privately."
53
+ }
validation/2026-11-16-five-bucket/size-comparison.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "four_buckets": {
3
+ "path": "package-comparison/EmbeddingGemma2-4buckets.mlpackage",
4
+ "functions": [
5
+ "s128",
6
+ "s256",
7
+ "s512",
8
+ "s1024"
9
+ ],
10
+ "files": {
11
+ "Data/com.apple.CoreML/model.mlmodel": {
12
+ "bytes": 7235070,
13
+ "sha256": "59457b2e416beb720176d8bee6afc5a1227d2a91c7f736f0f16c6e1071cb2402"
14
+ },
15
+ "Data/com.apple.CoreML/weights/weight.bin": {
16
+ "bytes": 550706624,
17
+ "sha256": "e3ddcdd72119e5a6ea1646a5fff1653dadcf29cfb0ad64be6bc909e258097ec0"
18
+ },
19
+ "Manifest.json": {
20
+ "bytes": 617,
21
+ "sha256": "e7de41c1775e911b74d2b050c170f1c92ab992f6e8a1fa0c2655fc9ca8ab832a"
22
+ }
23
+ },
24
+ "total_bytes": 557942311,
25
+ "shared_external_offsets_across_all_functions": 394,
26
+ "distinct_external_offsets": 414,
27
+ "source_packages": [
28
+ "four-bucket-baseline/models/s128.mlpackage",
29
+ "four-bucket-baseline/models/s256.mlpackage",
30
+ "four-bucket-baseline/models/s512.mlpackage",
31
+ "four-bucket-baseline/models/s1024.mlpackage"
32
+ ]
33
+ },
34
+ "five_buckets": {
35
+ "path": "package-comparison/EmbeddingGemma2-5buckets.mlpackage",
36
+ "functions": [
37
+ "s128",
38
+ "s256",
39
+ "s512",
40
+ "s1024",
41
+ "s2048"
42
+ ],
43
+ "files": {
44
+ "Data/com.apple.CoreML/model.mlmodel": {
45
+ "bytes": 9043834,
46
+ "sha256": "715c377bda514242cabc6497843ca831d1eec1d84b5e48c6f93a13663e6ce104"
47
+ },
48
+ "Data/com.apple.CoreML/weights/weight.bin": {
49
+ "bytes": 565387008,
50
+ "sha256": "86bf461bce224075ea9ff6fc6a2c2abe50cd701eee58f1d3f5d8e6988d234657"
51
+ },
52
+ "Manifest.json": {
53
+ "bytes": 617,
54
+ "sha256": "8f494dc20af594dd81ca1082c50d0db80eae392a84621955de1d1c5c0e99aed2"
55
+ }
56
+ },
57
+ "total_bytes": 574431459,
58
+ "shared_external_offsets_across_all_functions": 394,
59
+ "distinct_external_offsets": 419,
60
+ "source_packages": [
61
+ "four-bucket-baseline/models/s128.mlpackage",
62
+ "four-bucket-baseline/models/s256.mlpackage",
63
+ "four-bucket-baseline/models/s512.mlpackage",
64
+ "four-bucket-baseline/models/s1024.mlpackage",
65
+ "five-bucket-build/models/s2048.mlpackage"
66
+ ]
67
+ },
68
+ "delta_bytes": 16489148,
69
+ "delta_decimal_MB": 16.489148,
70
+ "delta_binary_MiB": 15.725276947021484,
71
+ "increase_percent": 2.9553499842029365,
72
+ "delta_by_file_bytes": {
73
+ "Data/com.apple.CoreML/model.mlmodel": 1808764,
74
+ "Data/com.apple.CoreML/weights/weight.bin": 14680384,
75
+ "Manifest.json": 0
76
+ },
77
+ "scope": "Uncompressed source mlpackage file bytes, as distributed on HF; excludes unchanged tokenizer/config, compiled device caches, and runtime memory. Both packages use the exact same four existing exports. No native 2048 inference validation is claimed."
78
+ }
validation/2026-11-16-five-bucket/summary.json ADDED
@@ -0,0 +1,1267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "date": "2026-11-16",
3
+ "source": {
4
+ "repo": "google/embeddinggemma-2",
5
+ "revision": "914f7f89142e33e77833254d9c9b90c3cef7303b",
6
+ "files": {
7
+ "config.json": {
8
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3",
9
+ "bytes": 4455
10
+ },
11
+ "model.safetensors": {
12
+ "sha256": "197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79",
13
+ "bytes": 1488915288
14
+ },
15
+ "tokenizer.json": {
16
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4",
17
+ "bytes": 32170510
18
+ },
19
+ "tokenizer_config.json": {
20
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874",
21
+ "bytes": 1599
22
+ }
23
+ }
24
+ },
25
+ "environment": {
26
+ "python": "3.12.9 (main, Feb 4 2025, 14:38:38) [Clang 16.0.0 (clang-1600.0.26.6)]",
27
+ "platform": "macOS-26.7.1-arm64-arm-64bit",
28
+ "dependencies": {
29
+ "torch": "2.7.0",
30
+ "transformers": "5.19.0",
31
+ "coremltools": "9.0",
32
+ "numpy": "2.2.6",
33
+ "safetensors": "0.8.0",
34
+ "tokenizers": "0.23.3"
35
+ },
36
+ "modelSource": {
37
+ "repo": "google/embeddinggemma-2",
38
+ "revision": "914f7f89142e33e77833254d9c9b90c3cef7303b",
39
+ "files": {
40
+ "config.json": {
41
+ "sha256": "b8f1e9931b57fbc054acdb445c41765d55b0074c58d145fa82839941ad1b5bb3",
42
+ "bytes": 4455
43
+ },
44
+ "model.safetensors": {
45
+ "sha256": "197a32965d4b1105faf060417baa899e193fb73cd401f42ec9295234d5553d79",
46
+ "bytes": 1488915288
47
+ },
48
+ "tokenizer.json": {
49
+ "sha256": "4d777ef5bdc1aa36227abdfb77c3e49e7b9c892d16e1b6bda41c393504828be4",
50
+ "bytes": 32170510
51
+ },
52
+ "tokenizer_config.json": {
53
+ "sha256": "17bd5d6e9364ca49a534e1502076593317c298d4a663623091ed45388f004874",
54
+ "bytes": 1599
55
+ }
56
+ }
57
+ },
58
+ "baseSourceCommit": "9eb1ee5d",
59
+ "architectureUnchangedFromFourBucket": true,
60
+ "eg2SHA256": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410"
61
+ },
62
+ "target": {
63
+ "os": "Version 27.2.1 (Build 26B131)",
64
+ "host": "romas-macbook-air.local",
65
+ "chip": "Apple M2",
66
+ "ramGiB": 16
67
+ },
68
+ "freshHFCoreMLParity": {
69
+ "cases": 16,
70
+ "minimumCosine": 0.9999267183471062,
71
+ "maximumAbsoluteError": 0.0022130757570266724,
72
+ "maximumNormError": 8.305185117407632e-08
73
+ },
74
+ "longHFCoreMLParity": {
75
+ "cases": 3,
76
+ "minimumCosine": 0.9999267183471062,
77
+ "maximumAbsoluteError": 0.0022130757570266724,
78
+ "maximumNormError": 6.090509219180973e-08
79
+ },
80
+ "fp32RewriteParity": {
81
+ "cases": 16,
82
+ "minimumCosine": 0.9999999999969833,
83
+ "maximumAbsoluteError": 2.8219074010849e-07
84
+ },
85
+ "corpus": {
86
+ "documents": 1499,
87
+ "finite": true,
88
+ "zeroVectors": 0,
89
+ "normRange": [
90
+ 0.9999998931240269,
91
+ 1.0000000965439224
92
+ ],
93
+ "excludedOverMaxLength": [
94
+ {
95
+ "documentIndex": 178,
96
+ "tokens": 2212
97
+ }
98
+ ],
99
+ "new2048DocumentIndices": [
100
+ 344,
101
+ 360,
102
+ 376,
103
+ 679,
104
+ 720,
105
+ 741,
106
+ 1030,
107
+ 1425
108
+ ],
109
+ "referenceComparisons": [
110
+ {
111
+ "path": "four-bucket-baseline/evidence/cold-vectors.json",
112
+ "sha256": "a396a1d6bfa828d92ffc37ea57cc062fc827e14aafcf4e3c97e984ca8949b0ff",
113
+ "scope": "Retained native normalized raw embeddings on overlapping documents only; not a new stock BF16 reference.",
114
+ "count": 1491,
115
+ "meanCosine": 1.0,
116
+ "minCosine": 0.9999999999999996,
117
+ "p01Cosine": 0.9999999999999997,
118
+ "maxAbs": 0.0,
119
+ "rawMaxAbs": 0.0
120
+ },
121
+ {
122
+ "path": "community-reference-baseline/coreml-cold-vectors.json",
123
+ "sha256": "b2cbb58c669b1678adafcdf4195a498ef402963591050a9515e76382e26dc792",
124
+ "scope": "Retained native normalized raw embeddings on overlapping documents only; not a new stock BF16 reference.",
125
+ "count": 1491,
126
+ "meanCosine": 0.9999971319467266,
127
+ "minCosine": 0.9999853002739557,
128
+ "p01Cosine": 0.9999937475228808,
129
+ "maxAbs": 0.0009376662310690009,
130
+ "rawMaxAbs": 0.0009419750422239304
131
+ }
132
+ ],
133
+ "bf16ReferenceLimitation": "Historical BF16 corpus file is unavailable; no new BF16 corpus comparison is claimed. Fresh stock-HF FP32 parity is separately recorded for16 native fixtures, including1151/1630/2048-token text."
134
+ },
135
+ "plans": {
136
+ "128": {
137
+ "cpuOperators": [
138
+ {
139
+ "operator": "ios18.greater_equal"
140
+ },
141
+ {
142
+ "operator": "ios18.add"
143
+ },
144
+ {
145
+ "operator": "select"
146
+ },
147
+ {
148
+ "operator": "ios18.gather"
149
+ },
150
+ {
151
+ "operator": "ios18.transpose"
152
+ },
153
+ {
154
+ "operator": "ios18.cast"
155
+ },
156
+ {
157
+ "operator": "ios18.abs"
158
+ },
159
+ {
160
+ "operator": "ios16.reduce_max"
161
+ },
162
+ {
163
+ "operator": "ios18.maximum"
164
+ },
165
+ {
166
+ "operator": "ios18.real_div"
167
+ },
168
+ {
169
+ "operator": "ios18.mul"
170
+ },
171
+ {
172
+ "operator": "ios16.reduce_sum"
173
+ },
174
+ {
175
+ "operator": "ios18.sqrt"
176
+ },
177
+ {
178
+ "operator": "ios18.real_div"
179
+ }
180
+ ],
181
+ "estimatedCost": {
182
+ "ane": 0.5337151622901617,
183
+ "cpu": 0.4662848377098712,
184
+ "none": 0
185
+ },
186
+ "ops": {
187
+ "ane": 6195,
188
+ "cpu": 14,
189
+ "none": 5896
190
+ }
191
+ },
192
+ "256": {
193
+ "cpuOperators": [
194
+ {
195
+ "operator": "ios18.greater_equal"
196
+ },
197
+ {
198
+ "operator": "ios18.add"
199
+ },
200
+ {
201
+ "operator": "select"
202
+ },
203
+ {
204
+ "operator": "ios18.gather"
205
+ },
206
+ {
207
+ "operator": "ios18.cast"
208
+ },
209
+ {
210
+ "operator": "ios18.abs"
211
+ },
212
+ {
213
+ "operator": "ios16.reduce_max"
214
+ },
215
+ {
216
+ "operator": "ios18.maximum"
217
+ },
218
+ {
219
+ "operator": "ios18.real_div"
220
+ },
221
+ {
222
+ "operator": "ios18.mul"
223
+ },
224
+ {
225
+ "operator": "ios16.reduce_sum"
226
+ },
227
+ {
228
+ "operator": "ios18.sqrt"
229
+ },
230
+ {
231
+ "operator": "ios18.real_div"
232
+ }
233
+ ],
234
+ "estimatedCost": {
235
+ "ane": 0.7019599141218992,
236
+ "cpu": 0.298040085878119,
237
+ "none": 0
238
+ },
239
+ "ops": {
240
+ "ane": 6196,
241
+ "cpu": 13,
242
+ "none": 5896
243
+ }
244
+ },
245
+ "512": {
246
+ "cpuOperators": [
247
+ {
248
+ "operator": "ios18.greater_equal"
249
+ },
250
+ {
251
+ "operator": "ios18.add"
252
+ },
253
+ {
254
+ "operator": "select"
255
+ },
256
+ {
257
+ "operator": "ios18.gather"
258
+ },
259
+ {
260
+ "operator": "ios18.cast"
261
+ },
262
+ {
263
+ "operator": "ios18.abs"
264
+ },
265
+ {
266
+ "operator": "ios16.reduce_max"
267
+ },
268
+ {
269
+ "operator": "ios18.maximum"
270
+ },
271
+ {
272
+ "operator": "ios18.real_div"
273
+ },
274
+ {
275
+ "operator": "ios18.mul"
276
+ },
277
+ {
278
+ "operator": "ios16.reduce_sum"
279
+ },
280
+ {
281
+ "operator": "ios18.sqrt"
282
+ },
283
+ {
284
+ "operator": "ios18.real_div"
285
+ }
286
+ ],
287
+ "estimatedCost": {
288
+ "ane": 0.8330929807877405,
289
+ "cpu": 0.16690701921233314,
290
+ "none": 0
291
+ },
292
+ "ops": {
293
+ "ane": 6196,
294
+ "cpu": 13,
295
+ "none": 5896
296
+ }
297
+ },
298
+ "1024": {
299
+ "cpuOperators": [
300
+ {
301
+ "operator": "ios18.greater_equal"
302
+ },
303
+ {
304
+ "operator": "ios18.add"
305
+ },
306
+ {
307
+ "operator": "select"
308
+ },
309
+ {
310
+ "operator": "ios18.gather"
311
+ },
312
+ {
313
+ "operator": "ios18.cast"
314
+ },
315
+ {
316
+ "operator": "ios18.abs"
317
+ },
318
+ {
319
+ "operator": "ios16.reduce_max"
320
+ },
321
+ {
322
+ "operator": "ios18.maximum"
323
+ },
324
+ {
325
+ "operator": "ios18.real_div"
326
+ },
327
+ {
328
+ "operator": "ios18.mul"
329
+ },
330
+ {
331
+ "operator": "ios16.reduce_sum"
332
+ },
333
+ {
334
+ "operator": "ios18.sqrt"
335
+ },
336
+ {
337
+ "operator": "ios18.real_div"
338
+ }
339
+ ],
340
+ "estimatedCost": {
341
+ "ane": 0.9160382612508952,
342
+ "cpu": 0.0839617387491409,
343
+ "none": 0
344
+ },
345
+ "ops": {
346
+ "ane": 6196,
347
+ "cpu": 13,
348
+ "none": 5896
349
+ }
350
+ },
351
+ "2048": {
352
+ "cpuOperators": [
353
+ {
354
+ "operator": "ios18.greater_equal"
355
+ },
356
+ {
357
+ "operator": "ios18.add"
358
+ },
359
+ {
360
+ "operator": "select"
361
+ },
362
+ {
363
+ "operator": "ios18.gather"
364
+ },
365
+ {
366
+ "operator": "ios18.cast"
367
+ },
368
+ {
369
+ "operator": "ios18.abs"
370
+ },
371
+ {
372
+ "operator": "ios16.reduce_max"
373
+ },
374
+ {
375
+ "operator": "ios18.maximum"
376
+ },
377
+ {
378
+ "operator": "ios18.real_div"
379
+ },
380
+ {
381
+ "operator": "ios18.mul"
382
+ },
383
+ {
384
+ "operator": "ios16.reduce_sum"
385
+ },
386
+ {
387
+ "operator": "ios18.sqrt"
388
+ },
389
+ {
390
+ "operator": "ios18.real_div"
391
+ }
392
+ ],
393
+ "estimatedCost": {
394
+ "ane": 0.9624933047667772,
395
+ "cpu": 0.037506695233266524,
396
+ "none": 0
397
+ },
398
+ "ops": {
399
+ "ane": 6196,
400
+ "cpu": 13,
401
+ "none": 5896
402
+ }
403
+ }
404
+ },
405
+ "compileSeconds": {
406
+ "128": 2.376755952835083,
407
+ "256": 4.0531158447265625e-06,
408
+ "512": 5.0067901611328125e-06,
409
+ "1024": 3.933906555175781e-06,
410
+ "2048": 5.0067901611328125e-06
411
+ },
412
+ "coldLoadSeconds": {
413
+ "128": 24.694247007369995,
414
+ "256": 25.176416993141174,
415
+ "512": 27.837659001350403,
416
+ "1024": 35.13489806652069,
417
+ "2048": 52.084400057792664
418
+ },
419
+ "cachedLoadSeconds": {
420
+ "128": 0.8247920274734497,
421
+ "256": 0.7763159275054932,
422
+ "512": 0.785383939743042,
423
+ "1024": 0.8055109977722168,
424
+ "2048": 0.7582509517669678
425
+ },
426
+ "firstPredictionSeconds": {
427
+ "128": 0.020428061485290527,
428
+ "256": 0.026198983192443848,
429
+ "512": 0.04401803016662598,
430
+ "1024": 0.10017800331115723,
431
+ "2048": 0.312391996383667
432
+ },
433
+ "corpusTiming": {
434
+ "docsPerSecond": 56.64224832419978,
435
+ "p50Ms": 7.34400749206543,
436
+ "p95Ms": 35.72690486907959,
437
+ "byBucket": {
438
+ "128": {
439
+ "count": 763,
440
+ "p50Ms": 6.98399543762207,
441
+ "p95Ms": 7.252836227416992,
442
+ "meanMs": 7.010898771323507
443
+ },
444
+ "256": {
445
+ "count": 444,
446
+ "p50Ms": 12.937426567077637,
447
+ "p95Ms": 13.127493858337402,
448
+ "meanMs": 12.95819556390917
449
+ },
450
+ "512": {
451
+ "count": 227,
452
+ "p50Ms": 33.18309783935547,
453
+ "p95Ms": 35.46813726425171,
454
+ "meanMs": 33.33738354334222
455
+ },
456
+ "1024": {
457
+ "count": 57,
458
+ "p50Ms": 91.97795391082764,
459
+ "p95Ms": 97.51024246215819,
460
+ "meanMs": 92.61037592302289
461
+ },
462
+ "2048": {
463
+ "count": 8,
464
+ "p50Ms": 313.24899196624756,
465
+ "p95Ms": 323.17500710487366,
466
+ "meanMs": 314.40161168575287
467
+ }
468
+ }
469
+ },
470
+ "matchedLatency": {
471
+ "inputsSHA256": "6791a1ecc30ed384bc2271e097fe5f4d592beac0494d7d706fe49eb090e9ce91",
472
+ "warmupRounds": 2,
473
+ "measuredRounds": 5,
474
+ "rows": [
475
+ {
476
+ "id": "exact-1025",
477
+ "tokens": 1025,
478
+ "aneMedianMs": 299.528,
479
+ "metalMedianMs": 299.215167,
480
+ "aneSpeedupVsMetal": 0.9989555801127106,
481
+ "cosine": 0.9997222304440985,
482
+ "maxAbs": 0.003932026635818486,
483
+ "aneNorm": 1.000000003055998,
484
+ "metalNorm": 0.9999999885061803
485
+ },
486
+ {
487
+ "id": "fiqa-344",
488
+ "tokens": 1151,
489
+ "aneMedianMs": 299.914916,
490
+ "metalMedianMs": 334.61125,
491
+ "aneSpeedupVsMetal": 1.1156872571152812,
492
+ "cosine": 0.9999063110479675,
493
+ "maxAbs": 0.0019580531076867583,
494
+ "aneNorm": 1.0000000392625088,
495
+ "metalNorm": 0.9999999959859227
496
+ },
497
+ {
498
+ "id": "fiqa-360",
499
+ "tokens": 1553,
500
+ "aneMedianMs": 299.825833,
501
+ "metalMedianMs": 512.745208,
502
+ "aneSpeedupVsMetal": 1.710143528559796,
503
+ "cosine": 0.9998774482771922,
504
+ "maxAbs": 0.0019794874829740516,
505
+ "aneNorm": 0.999999987293663,
506
+ "metalNorm": 1.0000000352455116
507
+ },
508
+ {
509
+ "id": "fiqa-376",
510
+ "tokens": 1352,
511
+ "aneMedianMs": 301.696292,
512
+ "metalMedianMs": 423.657709,
513
+ "aneSpeedupVsMetal": 1.4042522902469081,
514
+ "cosine": 0.9998754680874423,
515
+ "maxAbs": 0.0021161346659774784,
516
+ "aneNorm": 1.000000005969565,
517
+ "metalNorm": 1.0000000398673679
518
+ },
519
+ {
520
+ "id": "fiqa-679",
521
+ "tokens": 1077,
522
+ "aneMedianMs": 299.427416,
523
+ "metalMedianMs": 310.459375,
524
+ "aneSpeedupVsMetal": 1.0368435166938756,
525
+ "cosine": 0.9998991934714746,
526
+ "maxAbs": 0.001771586213188181,
527
+ "aneNorm": 1.000000036623459,
528
+ "metalNorm": 1.000000009986988
529
+ },
530
+ {
531
+ "id": "fiqa-720",
532
+ "tokens": 1485,
533
+ "aneMedianMs": 299.913792,
534
+ "metalMedianMs": 478.360375,
535
+ "aneSpeedupVsMetal": 1.594992920498968,
536
+ "cosine": 0.9998759033714655,
537
+ "maxAbs": 0.0022669131773107526,
538
+ "aneNorm": 1.0000000638506092,
539
+ "metalNorm": 0.9999999653032601
540
+ },
541
+ {
542
+ "id": "fiqa-741",
543
+ "tokens": 1368,
544
+ "aneMedianMs": 300.264417,
545
+ "metalMedianMs": 426.019833,
546
+ "aneSpeedupVsMetal": 1.4188155801358242,
547
+ "cosine": 0.9998988807432334,
548
+ "maxAbs": 0.0017298850281324378,
549
+ "aneNorm": 1.0000000389440666,
550
+ "metalNorm": 0.9999999713697575
551
+ },
552
+ {
553
+ "id": "fiqa-1030",
554
+ "tokens": 1263,
555
+ "aneMedianMs": 298.35975,
556
+ "metalMedianMs": 379.391583,
557
+ "aneSpeedupVsMetal": 1.2715910339782763,
558
+ "cosine": 0.9998770173010044,
559
+ "maxAbs": 0.0018990824993782018,
560
+ "aneNorm": 1.0000000475489057,
561
+ "metalNorm": 0.9999999920672044
562
+ },
563
+ {
564
+ "id": "fiqa-1425",
565
+ "tokens": 1210,
566
+ "aneMedianMs": 299.819209,
567
+ "metalMedianMs": 357.795125,
568
+ "aneSpeedupVsMetal": 1.1933695849354335,
569
+ "cosine": 0.9998702064754619,
570
+ "maxAbs": 0.001825121052665718,
571
+ "aneNorm": 1.0000000360970194,
572
+ "metalNorm": 0.9999999713040844
573
+ },
574
+ {
575
+ "id": "hf-14",
576
+ "tokens": 1630,
577
+ "aneMedianMs": 299.545042,
578
+ "metalMedianMs": 541.490625,
579
+ "aneSpeedupVsMetal": 1.8077101907098165,
580
+ "cosine": 0.9998733185750059,
581
+ "maxAbs": 0.0019542371358230114,
582
+ "aneNorm": 0.9999999390949084,
583
+ "metalNorm": 0.9999999850770979
584
+ },
585
+ {
586
+ "id": "hf-15",
587
+ "tokens": 2048,
588
+ "aneMedianMs": 299.552334,
589
+ "metalMedianMs": 726.668292,
590
+ "aneSpeedupVsMetal": 2.425847538213473,
591
+ "cosine": 0.9997104092532022,
592
+ "maxAbs": 0.0048206714515304505,
593
+ "aneNorm": 1.0000000207067223,
594
+ "metalNorm": 1.0000000500238178
595
+ }
596
+ ],
597
+ "metalPlacement": "All25/25 layers offloaded to MTL0 per retained native llama.cpp load log.",
598
+ "metalAPI": "llama_encode (encoder-only EG2)",
599
+ "metalMemoryPresent": false,
600
+ "metalMemoryClearData": false,
601
+ "precisionCaveat": "Direct-runtime comparison (not exact production wrappers): Core ML FP16 encoder + FP32 L2 versus stock Q8_0 GGUF. Different precisions and Swift/Go host APIs; not a precision-controlled backend study.",
602
+ "timingBoundary": "Same complete pretokenized inputs, batch1, normalized copied768-vector. Input construction, synchronous inference and output copying/normalization included; tokenizer/model load excluded. Backend-specific state cleanup included. No downstream head projection.",
603
+ "aneTimingBoundary": "pretokenized IDs to copied normalized 768-vector; includes per-call MLMultiArray allocation/fill, synchronous prediction, output copy and autorelease; excludes model load/tokenization and validation checks",
604
+ "metalTimingBoundary": "pretokenized IDs to copied normalized 768-vector; includes per-call input allocation/fill, state clear, inference synchronization, output copy/L2 and batch free; excludes model load/tokenization",
605
+ "ane": {
606
+ "count": 55,
607
+ "meanMs": 300.240766690909,
608
+ "p50Ms": 299.747666,
609
+ "p95Ms": 303.1063661,
610
+ "totalMs": 16513.242167999997
611
+ },
612
+ "metal": {
613
+ "count": 55,
614
+ "meanMs": 435.0976386363638,
615
+ "p50Ms": 423.657709,
616
+ "p95Ms": 724.4996626,
617
+ "totalMs": 23930.37012500001
618
+ },
619
+ "aggregateSpeedupVsMetal": 1.4491624286460965
620
+ },
621
+ "memory": {
622
+ "ane-warm-active": {
623
+ "neuralLedgerRow": "0 B 649 MB 544 KB 649 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)",
624
+ "physFootprint": "74 MB"
625
+ },
626
+ "ane-warm-baseline": {
627
+ "neuralLedgerRow": null,
628
+ "physFootprint": "3441 KB"
629
+ },
630
+ "ane-warm-released-all-immediate": {
631
+ "neuralLedgerRow": "0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)",
632
+ "physFootprint": "74 MB"
633
+ },
634
+ "cold-after-corpus": {
635
+ "neuralLedgerRow": "0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)",
636
+ "physFootprint": "468 MB"
637
+ },
638
+ "cold-all-active": {
639
+ "neuralLedgerRow": "0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)",
640
+ "physFootprint": "479 MB"
641
+ },
642
+ "cold-s1024": {
643
+ "neuralLedgerRow": "0 B 444 MB 936 MB 444 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)",
644
+ "physFootprint": "460 MB"
645
+ },
646
+ "cold-s128": {
647
+ "neuralLedgerRow": "0 B 283 MB 400 KB 283 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)",
648
+ "physFootprint": "345 MB"
649
+ },
650
+ "cold-s2048": {
651
+ "neuralLedgerRow": "0 B 650 MB 1354 MB 649 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)",
652
+ "physFootprint": "479 MB"
653
+ },
654
+ "cold-s256": {
655
+ "neuralLedgerRow": "0 B 305 MB 284 MB 305 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)",
656
+ "physFootprint": "286 MB"
657
+ },
658
+ "cold-s512": {
659
+ "neuralLedgerRow": "0 B 350 MB 589 MB 350 MB 9 Owned physical footprint (unmapped) (neural) (nofootprint)",
660
+ "physFootprint": "335 MB"
661
+ },
662
+ "cold-start": {
663
+ "neuralLedgerRow": null,
664
+ "physFootprint": "3633 KB"
665
+ },
666
+ "memory-alone-active": {
667
+ "neuralLedgerRow": "0 B 649 MB 544 KB 649 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)",
668
+ "physFootprint": "138 MB"
669
+ },
670
+ "memory-alone-baseline": {
671
+ "neuralLedgerRow": null,
672
+ "physFootprint": "3409 KB"
673
+ },
674
+ "memory-alone-released-all-30s": {
675
+ "neuralLedgerRow": "0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)",
676
+ "physFootprint": "136 MB"
677
+ },
678
+ "memory-alone-released-all-immediate": {
679
+ "neuralLedgerRow": "0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)",
680
+ "physFootprint": "136 MB"
681
+ },
682
+ "memory-alone-released2048-30s": {
683
+ "neuralLedgerRow": "0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)",
684
+ "physFootprint": "136 MB"
685
+ },
686
+ "memory-alone-released2048-immediate": {
687
+ "neuralLedgerRow": "0 B 0 B 592 MB 0 B 1 Owned physical footprint (unmapped) (neural) (nofootprint)",
688
+ "physFootprint": "138 MB"
689
+ },
690
+ "memory-pair-active": {
691
+ "neuralLedgerRow": "0 B 932 MB 944 KB 932 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)",
692
+ "physFootprint": "106 MB"
693
+ },
694
+ "memory-pair-baseline": {
695
+ "neuralLedgerRow": null,
696
+ "physFootprint": "3409 KB"
697
+ },
698
+ "memory-pair-released-all-30s": {
699
+ "neuralLedgerRow": "0 B 0 B 874 MB 0 B 2 Owned physical footprint (unmapped) (neural) (nofootprint)",
700
+ "physFootprint": "103 MB"
701
+ },
702
+ "memory-pair-released-all-immediate": {
703
+ "neuralLedgerRow": "0 B 0 B 874 MB 0 B 2 Owned physical footprint (unmapped) (neural) (nofootprint)",
704
+ "physFootprint": "103 MB"
705
+ },
706
+ "memory-pair-released2048-30s": {
707
+ "neuralLedgerRow": "0 B 64 KB 875 MB 0 B 4 Owned physical footprint (unmapped) (neural) (nofootprint)",
708
+ "physFootprint": "103 MB"
709
+ },
710
+ "memory-pair-released2048-immediate": {
711
+ "neuralLedgerRow": "0 B 283 MB 592 MB 283 MB 4 Owned physical footprint (unmapped) (neural) (nofootprint)",
712
+ "physFootprint": "105 MB"
713
+ },
714
+ "memory-pair-short-active-after2048release": {
715
+ "neuralLedgerRow": "0 B 283 MB 592 MB 283 MB 4 Owned physical footprint (unmapped) (neural) (nofootprint)",
716
+ "physFootprint": "103 MB"
717
+ },
718
+ "warm-all-active": {
719
+ "neuralLedgerRow": "0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)",
720
+ "physFootprint": "70 MB"
721
+ },
722
+ "warm-s1024": {
723
+ "neuralLedgerRow": "0 B 1381 MB 2032 KB 1381 MB 12 Owned physical footprint (unmapped) (neural) (nofootprint)",
724
+ "physFootprint": "64 MB"
725
+ },
726
+ "warm-s128": {
727
+ "neuralLedgerRow": "0 B 283 MB 400 KB 283 MB 3 Owned physical footprint (unmapped) (neural) (nofootprint)",
728
+ "physFootprint": "138 MB"
729
+ },
730
+ "warm-s2048": {
731
+ "neuralLedgerRow": "0 B 2031 MB 2576 KB 2031 MB 15 Owned physical footprint (unmapped) (neural) (nofootprint)",
732
+ "physFootprint": "70 MB"
733
+ },
734
+ "warm-s256": {
735
+ "neuralLedgerRow": "0 B 588 MB 944 KB 588 MB 6 Owned physical footprint (unmapped) (neural) (nofootprint)",
736
+ "physFootprint": "33 MB"
737
+ },
738
+ "warm-s512": {
739
+ "neuralLedgerRow": "0 B 937 MB 1488 KB 937 MB 9 Owned physical footprint (unmapped) (neural) (nofootprint)",
740
+ "physFootprint": "63 MB"
741
+ },
742
+ "warm-start": {
743
+ "neuralLedgerRow": null,
744
+ "physFootprint": "3649 KB"
745
+ }
746
+ },
747
+ "reproducibility": {
748
+ "length": 2048,
749
+ "freshOutputDirectory": "reproducibility-rebuild/s2048.mlpackage",
750
+ "files": {
751
+ "Manifest.json": {
752
+ "initialSHA256": "058b4bc50f550f70218e4d91497bfe0567ac53150f280d4611d08d14dec7891b",
753
+ "rebuiltSHA256": "cd0a997bad988a614736c3a07b005826e245ba67aa4280d097f060ce1c70badc",
754
+ "equal": false
755
+ },
756
+ "Data/com.apple.CoreML/model.mlmodel": {
757
+ "initialSHA256": "fb5272d6f1e1eac2da7bdb65852f3bc304023f9f4113bc155808cb912597e6b8",
758
+ "rebuiltSHA256": "35d9339f67bf7963c4250dc7224ab9afc5ddc3641229cf4cc3343966c5f94259",
759
+ "equal": false
760
+ },
761
+ "Data/com.apple.CoreML/weights/weight.bin": {
762
+ "initialSHA256": "85d501d1644f831ba2576300e8fd9e40b63c44ecd256393dbbcf5973ce2c43b7",
763
+ "rebuiltSHA256": "85d501d1644f831ba2576300e8fd9e40b63c44ecd256393dbbcf5973ce2c43b7",
764
+ "equal": true
765
+ }
766
+ },
767
+ "weightBlobIdentical": true,
768
+ "modelProtoIdentical": false,
769
+ "wholePackageFilesIdentical": false,
770
+ "modelProtoSemanticallyIdentical": true,
771
+ "deterministicProtoSHA256": {
772
+ "initial": "3d5b91b20e93f776e19f77072224a7277a4591dd593d325ea4c889e7ed8c3db6",
773
+ "rebuilt": "3d5b91b20e93f776e19f77072224a7277a4591dd593d325ea4c889e7ed8c3db6"
774
+ },
775
+ "interpretation": "Same weight bytes and identical parsed protobuf; raw protobuf map serialization order and package UUIDs differ. Not a byte-identical whole package."
776
+ },
777
+ "packageBytes": 574431459,
778
+ "provenanceByFunction": {
779
+ "s128": {
780
+ "sourcePackage": "four-bucket-baseline/models/s128.mlpackage",
781
+ "provenance": {
782
+ "files": {
783
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
784
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
785
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
786
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
787
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
788
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
789
+ },
790
+ "versions": {
791
+ "torch": "2.7.0",
792
+ "transformers": "5.19.0",
793
+ "coremltools": "9.0",
794
+ "numpy": "2.2.6",
795
+ "safetensors": "0.8.0",
796
+ "tokenizers": "0.23.3"
797
+ },
798
+ "python": "3.12.9",
799
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
800
+ },
801
+ "precision": {
802
+ "encoder": "FP16",
803
+ "finalNormalization": "FP32",
804
+ "excludedFromFP16": [
805
+ {
806
+ "name": "24778",
807
+ "type": "const"
808
+ },
809
+ {
810
+ "name": "24779",
811
+ "type": "const"
812
+ },
813
+ {
814
+ "name": "24781",
815
+ "type": "abs"
816
+ },
817
+ {
818
+ "name": "24783_axes_0",
819
+ "type": "const"
820
+ },
821
+ {
822
+ "name": "24783",
823
+ "type": "reduce_max"
824
+ },
825
+ {
826
+ "name": "24784",
827
+ "type": "maximum"
828
+ },
829
+ {
830
+ "name": "cast_1320_dtype_0",
831
+ "type": "const"
832
+ },
833
+ {
834
+ "name": "cast_1321_dtype_0",
835
+ "type": "const"
836
+ },
837
+ {
838
+ "name": "x",
839
+ "type": "real_div"
840
+ },
841
+ {
842
+ "name": "24786",
843
+ "type": "mul"
844
+ },
845
+ {
846
+ "name": "24788_axes_0",
847
+ "type": "const"
848
+ },
849
+ {
850
+ "name": "24788_keep_dims_0",
851
+ "type": "const"
852
+ },
853
+ {
854
+ "name": "24788",
855
+ "type": "reduce_sum"
856
+ },
857
+ {
858
+ "name": "24789",
859
+ "type": "sqrt"
860
+ },
861
+ {
862
+ "name": "cast_1322_dtype_0",
863
+ "type": "const"
864
+ },
865
+ {
866
+ "name": "cast_1323_dtype_0",
867
+ "type": "const"
868
+ },
869
+ {
870
+ "name": "24790",
871
+ "type": "real_div"
872
+ }
873
+ ]
874
+ }
875
+ },
876
+ "s256": {
877
+ "sourcePackage": "four-bucket-baseline/models/s256.mlpackage",
878
+ "provenance": {
879
+ "files": {
880
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
881
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
882
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
883
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
884
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
885
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
886
+ },
887
+ "versions": {
888
+ "torch": "2.7.0",
889
+ "transformers": "5.19.0",
890
+ "coremltools": "9.0",
891
+ "numpy": "2.2.6",
892
+ "safetensors": "0.8.0",
893
+ "tokenizers": "0.23.3"
894
+ },
895
+ "python": "3.12.9",
896
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
897
+ },
898
+ "precision": {
899
+ "encoder": "FP16",
900
+ "finalNormalization": "FP32",
901
+ "excludedFromFP16": [
902
+ {
903
+ "name": "24778",
904
+ "type": "const"
905
+ },
906
+ {
907
+ "name": "24779",
908
+ "type": "const"
909
+ },
910
+ {
911
+ "name": "24781",
912
+ "type": "abs"
913
+ },
914
+ {
915
+ "name": "24783_axes_0",
916
+ "type": "const"
917
+ },
918
+ {
919
+ "name": "24783",
920
+ "type": "reduce_max"
921
+ },
922
+ {
923
+ "name": "24784",
924
+ "type": "maximum"
925
+ },
926
+ {
927
+ "name": "cast_1320_dtype_0",
928
+ "type": "const"
929
+ },
930
+ {
931
+ "name": "cast_1321_dtype_0",
932
+ "type": "const"
933
+ },
934
+ {
935
+ "name": "x",
936
+ "type": "real_div"
937
+ },
938
+ {
939
+ "name": "24786",
940
+ "type": "mul"
941
+ },
942
+ {
943
+ "name": "24788_axes_0",
944
+ "type": "const"
945
+ },
946
+ {
947
+ "name": "24788_keep_dims_0",
948
+ "type": "const"
949
+ },
950
+ {
951
+ "name": "24788",
952
+ "type": "reduce_sum"
953
+ },
954
+ {
955
+ "name": "24789",
956
+ "type": "sqrt"
957
+ },
958
+ {
959
+ "name": "cast_1322_dtype_0",
960
+ "type": "const"
961
+ },
962
+ {
963
+ "name": "cast_1323_dtype_0",
964
+ "type": "const"
965
+ },
966
+ {
967
+ "name": "24790",
968
+ "type": "real_div"
969
+ }
970
+ ]
971
+ }
972
+ },
973
+ "s512": {
974
+ "sourcePackage": "four-bucket-baseline/models/s512.mlpackage",
975
+ "provenance": {
976
+ "files": {
977
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
978
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
979
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
980
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
981
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
982
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
983
+ },
984
+ "versions": {
985
+ "torch": "2.7.0",
986
+ "transformers": "5.19.0",
987
+ "coremltools": "9.0",
988
+ "numpy": "2.2.6",
989
+ "safetensors": "0.8.0",
990
+ "tokenizers": "0.23.3"
991
+ },
992
+ "python": "3.12.9",
993
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
994
+ },
995
+ "precision": {
996
+ "encoder": "FP16",
997
+ "finalNormalization": "FP32",
998
+ "excludedFromFP16": [
999
+ {
1000
+ "name": "24778",
1001
+ "type": "const"
1002
+ },
1003
+ {
1004
+ "name": "24779",
1005
+ "type": "const"
1006
+ },
1007
+ {
1008
+ "name": "24781",
1009
+ "type": "abs"
1010
+ },
1011
+ {
1012
+ "name": "24783_axes_0",
1013
+ "type": "const"
1014
+ },
1015
+ {
1016
+ "name": "24783",
1017
+ "type": "reduce_max"
1018
+ },
1019
+ {
1020
+ "name": "24784",
1021
+ "type": "maximum"
1022
+ },
1023
+ {
1024
+ "name": "cast_1320_dtype_0",
1025
+ "type": "const"
1026
+ },
1027
+ {
1028
+ "name": "cast_1321_dtype_0",
1029
+ "type": "const"
1030
+ },
1031
+ {
1032
+ "name": "x",
1033
+ "type": "real_div"
1034
+ },
1035
+ {
1036
+ "name": "24786",
1037
+ "type": "mul"
1038
+ },
1039
+ {
1040
+ "name": "24788_axes_0",
1041
+ "type": "const"
1042
+ },
1043
+ {
1044
+ "name": "24788_keep_dims_0",
1045
+ "type": "const"
1046
+ },
1047
+ {
1048
+ "name": "24788",
1049
+ "type": "reduce_sum"
1050
+ },
1051
+ {
1052
+ "name": "24789",
1053
+ "type": "sqrt"
1054
+ },
1055
+ {
1056
+ "name": "cast_1322_dtype_0",
1057
+ "type": "const"
1058
+ },
1059
+ {
1060
+ "name": "cast_1323_dtype_0",
1061
+ "type": "const"
1062
+ },
1063
+ {
1064
+ "name": "24790",
1065
+ "type": "real_div"
1066
+ }
1067
+ ]
1068
+ }
1069
+ },
1070
+ "s1024": {
1071
+ "sourcePackage": "four-bucket-baseline/models/s1024.mlpackage",
1072
+ "provenance": {
1073
+ "files": {
1074
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
1075
+ "parity.py": "05d6e507a3644e7752a8a9799342a6ec08d6d4b6a5b268ea5f2ba4d049f822ff",
1076
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
1077
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
1078
+ "provenance.py": "006b3138302d9458d52104656a275383da68eec8927972d2e820612dda879ba4",
1079
+ "convert.py": "c6a64923e8f856359ca69f76c7a5355c841cb86517d822db59dc28ca988cc072"
1080
+ },
1081
+ "versions": {
1082
+ "torch": "2.7.0",
1083
+ "transformers": "5.19.0",
1084
+ "coremltools": "9.0",
1085
+ "numpy": "2.2.6",
1086
+ "safetensors": "0.8.0",
1087
+ "tokenizers": "0.23.3"
1088
+ },
1089
+ "python": "3.12.9",
1090
+ "fingerprint": "011b9bf29297ac837ed483c9ec03242416ffb77cd30064558d158ab6343adbda"
1091
+ },
1092
+ "precision": {
1093
+ "encoder": "FP16",
1094
+ "finalNormalization": "FP32",
1095
+ "excludedFromFP16": [
1096
+ {
1097
+ "name": "24778",
1098
+ "type": "const"
1099
+ },
1100
+ {
1101
+ "name": "24779",
1102
+ "type": "const"
1103
+ },
1104
+ {
1105
+ "name": "24781",
1106
+ "type": "abs"
1107
+ },
1108
+ {
1109
+ "name": "24783_axes_0",
1110
+ "type": "const"
1111
+ },
1112
+ {
1113
+ "name": "24783",
1114
+ "type": "reduce_max"
1115
+ },
1116
+ {
1117
+ "name": "24784",
1118
+ "type": "maximum"
1119
+ },
1120
+ {
1121
+ "name": "cast_1320_dtype_0",
1122
+ "type": "const"
1123
+ },
1124
+ {
1125
+ "name": "cast_1321_dtype_0",
1126
+ "type": "const"
1127
+ },
1128
+ {
1129
+ "name": "x",
1130
+ "type": "real_div"
1131
+ },
1132
+ {
1133
+ "name": "24786",
1134
+ "type": "mul"
1135
+ },
1136
+ {
1137
+ "name": "24788_axes_0",
1138
+ "type": "const"
1139
+ },
1140
+ {
1141
+ "name": "24788_keep_dims_0",
1142
+ "type": "const"
1143
+ },
1144
+ {
1145
+ "name": "24788",
1146
+ "type": "reduce_sum"
1147
+ },
1148
+ {
1149
+ "name": "24789",
1150
+ "type": "sqrt"
1151
+ },
1152
+ {
1153
+ "name": "cast_1322_dtype_0",
1154
+ "type": "const"
1155
+ },
1156
+ {
1157
+ "name": "cast_1323_dtype_0",
1158
+ "type": "const"
1159
+ },
1160
+ {
1161
+ "name": "24790",
1162
+ "type": "real_div"
1163
+ }
1164
+ ]
1165
+ }
1166
+ },
1167
+ "s2048": {
1168
+ "sourcePackage": "five-bucket-build/models/s2048.mlpackage",
1169
+ "provenance": {
1170
+ "files": {
1171
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
1172
+ "parity.py": "2c680ea416ddde788df7b68ef08d53a7565264a7224f6b04ba592fdbaa61b27c",
1173
+ "buckets.py": "ff2261663941716c9b6884bb11a9cbaa75d660d6c41061d03c9ce0a0c473656a",
1174
+ "tokens.json": "ff7f41a9586d566abf33f14aa9033f40e6d701698baa1d552b2f12f8f742a13a",
1175
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
1176
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
1177
+ "provenance.py": "ab05275c8da35cd35847e14fac38c31aa3142adb2cfa0f351f3fbbebfd693330",
1178
+ "convert.py": "432a26fb6bea8e7f943a783592c3f6c8bdecf56bce4d78c465d3f203c05ea5ca"
1179
+ },
1180
+ "versions": {
1181
+ "torch": "2.7.0",
1182
+ "transformers": "5.19.0",
1183
+ "coremltools": "9.0",
1184
+ "numpy": "2.2.6",
1185
+ "safetensors": "0.8.0",
1186
+ "tokenizers": "0.23.3"
1187
+ },
1188
+ "python": "3.12.9",
1189
+ "fingerprint": "b2707f2f48091d50d70fb4d52181924aedf0e5ea23521d123914d0775db69e33"
1190
+ },
1191
+ "precision": {
1192
+ "encoder": "FP16",
1193
+ "finalNormalization": "FP32",
1194
+ "excludedFromFP16": [
1195
+ {
1196
+ "name": "24778",
1197
+ "type": "const"
1198
+ },
1199
+ {
1200
+ "name": "24779",
1201
+ "type": "const"
1202
+ },
1203
+ {
1204
+ "name": "24781",
1205
+ "type": "abs"
1206
+ },
1207
+ {
1208
+ "name": "24783_axes_0",
1209
+ "type": "const"
1210
+ },
1211
+ {
1212
+ "name": "24783",
1213
+ "type": "reduce_max"
1214
+ },
1215
+ {
1216
+ "name": "24784",
1217
+ "type": "maximum"
1218
+ },
1219
+ {
1220
+ "name": "cast_1320_dtype_0",
1221
+ "type": "const"
1222
+ },
1223
+ {
1224
+ "name": "cast_1321_dtype_0",
1225
+ "type": "const"
1226
+ },
1227
+ {
1228
+ "name": "x",
1229
+ "type": "real_div"
1230
+ },
1231
+ {
1232
+ "name": "24786",
1233
+ "type": "mul"
1234
+ },
1235
+ {
1236
+ "name": "24788_axes_0",
1237
+ "type": "const"
1238
+ },
1239
+ {
1240
+ "name": "24788_keep_dims_0",
1241
+ "type": "const"
1242
+ },
1243
+ {
1244
+ "name": "24788",
1245
+ "type": "reduce_sum"
1246
+ },
1247
+ {
1248
+ "name": "24789",
1249
+ "type": "sqrt"
1250
+ },
1251
+ {
1252
+ "name": "cast_1322_dtype_0",
1253
+ "type": "const"
1254
+ },
1255
+ {
1256
+ "name": "cast_1323_dtype_0",
1257
+ "type": "const"
1258
+ },
1259
+ {
1260
+ "name": "24790",
1261
+ "type": "real_div"
1262
+ }
1263
+ ]
1264
+ }
1265
+ }
1266
+ }
1267
+ }
validation/2026-11-16-five-bucket/torch-parity.json ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "passed": true,
3
+ "provenance": {
4
+ "files": {
5
+ "eg2.py": "773b5fd8a36388fd484d3113ac09d258c6136f1577141a29bc84c028c7bd8410",
6
+ "parity.py": "2c680ea416ddde788df7b68ef08d53a7565264a7224f6b04ba592fdbaa61b27c",
7
+ "buckets.py": "ff2261663941716c9b6884bb11a9cbaa75d660d6c41061d03c9ce0a0c473656a",
8
+ "tokens.json": "ff7f41a9586d566abf33f14aa9033f40e6d701698baa1d552b2f12f8f742a13a",
9
+ "fetch_stock.py": "cfb7629e2b6e0f3d847b2accf3b9ff56394d73740c5c31258e67ffca93f7b65b",
10
+ "source-manifest.json": "1cb8409645fbb2187f61781193a7fd89c53af34b0c2cd9d7d081715b674ce071",
11
+ "provenance.py": "ab05275c8da35cd35847e14fac38c31aa3142adb2cfa0f351f3fbbebfd693330"
12
+ },
13
+ "versions": {
14
+ "torch": "2.7.0",
15
+ "transformers": "5.19.0",
16
+ "coremltools": "9.0",
17
+ "numpy": "2.2.6",
18
+ "safetensors": "0.8.0",
19
+ "tokenizers": "0.23.3"
20
+ },
21
+ "python": "3.12.9",
22
+ "fingerprint": "9371094da36a90fa5174c00f56343927152b05aa4759c182c61aec25267d89f3"
23
+ },
24
+ "reference": "Transformers 5.19.0 stock weights, FP32 eager, raw masked mean then L2",
25
+ "cases": [
26
+ {
27
+ "case": 0,
28
+ "length": 128,
29
+ "tokens": 9,
30
+ "kind": "existing-fixture",
31
+ "cosine": 0.999999999999162,
32
+ "max_abs": 1.986045390367508e-07,
33
+ "finite": true
34
+ },
35
+ {
36
+ "case": 1,
37
+ "length": 128,
38
+ "tokens": 18,
39
+ "kind": "existing-fixture",
40
+ "cosine": 0.9999999999997167,
41
+ "max_abs": 1.043081283569336e-07,
42
+ "finite": true
43
+ },
44
+ {
45
+ "case": 2,
46
+ "length": 128,
47
+ "tokens": 29,
48
+ "kind": "existing-fixture",
49
+ "cosine": 0.9999999999969833,
50
+ "max_abs": 2.8219074010849e-07,
51
+ "finite": true
52
+ },
53
+ {
54
+ "case": 5,
55
+ "length": 256,
56
+ "tokens": 18,
57
+ "kind": "existing-fixture",
58
+ "cosine": 0.9999999999997167,
59
+ "max_abs": 1.043081283569336e-07,
60
+ "finite": true
61
+ },
62
+ {
63
+ "case": 9,
64
+ "length": 256,
65
+ "tokens": 210,
66
+ "kind": "existing-fixture",
67
+ "cosine": 0.9999999999995237,
68
+ "max_abs": 1.4901161193847656e-07,
69
+ "finite": true
70
+ },
71
+ {
72
+ "case": 4,
73
+ "length": 512,
74
+ "tokens": 505,
75
+ "kind": "existing-fixture",
76
+ "cosine": 0.9999999999993194,
77
+ "max_abs": 1.3737007975578308e-07,
78
+ "finite": true
79
+ },
80
+ {
81
+ "case": 6,
82
+ "length": 512,
83
+ "tokens": 18,
84
+ "kind": "existing-fixture",
85
+ "cosine": 0.9999999999997167,
86
+ "max_abs": 1.043081283569336e-07,
87
+ "finite": true
88
+ },
89
+ {
90
+ "case": 8,
91
+ "length": 512,
92
+ "tokens": 413,
93
+ "kind": "existing-fixture",
94
+ "cosine": 0.9999999999995562,
95
+ "max_abs": 1.1920928955078125e-07,
96
+ "finite": true
97
+ },
98
+ {
99
+ "case": 10,
100
+ "length": 512,
101
+ "tokens": 280,
102
+ "kind": "existing-fixture",
103
+ "cosine": 0.9999999999995377,
104
+ "max_abs": 1.1920928955078125e-07,
105
+ "finite": true
106
+ },
107
+ {
108
+ "case": 3,
109
+ "length": 1024,
110
+ "tokens": 622,
111
+ "kind": "existing-fixture",
112
+ "cosine": 0.9999999999985083,
113
+ "max_abs": 2.2351741790771484e-07,
114
+ "finite": true
115
+ },
116
+ {
117
+ "case": 7,
118
+ "length": 1024,
119
+ "tokens": 18,
120
+ "kind": "existing-fixture",
121
+ "cosine": 0.9999999999997167,
122
+ "max_abs": 1.043081283569336e-07,
123
+ "finite": true
124
+ },
125
+ {
126
+ "case": 11,
127
+ "length": 1024,
128
+ "tokens": 593,
129
+ "kind": "existing-fixture",
130
+ "cosine": 0.9999999999997058,
131
+ "max_abs": 9.685754776000977e-08,
132
+ "finite": true
133
+ },
134
+ {
135
+ "case": 12,
136
+ "length": 2048,
137
+ "tokens": 18,
138
+ "kind": "short-padded-2048",
139
+ "cosine": 0.9999999999997167,
140
+ "max_abs": 1.043081283569336e-07,
141
+ "finite": true
142
+ },
143
+ {
144
+ "case": 13,
145
+ "length": 2048,
146
+ "tokens": 1151,
147
+ "kind": "long-fiqa",
148
+ "cosine": 0.9999999999996982,
149
+ "max_abs": 1.1920928955078125e-07,
150
+ "finite": true
151
+ },
152
+ {
153
+ "case": 14,
154
+ "length": 2048,
155
+ "tokens": 1630,
156
+ "kind": "long-multilingual",
157
+ "cosine": 0.9999999999996885,
158
+ "max_abs": 1.180451363325119e-07,
159
+ "finite": true
160
+ },
161
+ {
162
+ "case": 15,
163
+ "length": 2048,
164
+ "tokens": 2048,
165
+ "kind": "exact-2048-text",
166
+ "cosine": 0.9999999999992429,
167
+ "max_abs": 1.695007085800171e-07,
168
+ "finite": true
169
+ }
170
+ ]
171
+ }
validation/2026-11-16-five-bucket/warm.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "compileSeconds" : {
3
+ "128" : 7.9870223999023438e-06,
4
+ "256" : 2.9802322387695312e-06,
5
+ "512" : 4.0531158447265625e-06,
6
+ "1024" : 2.9802322387695312e-06,
7
+ "2048" : 3.9339065551757812e-06
8
+ },
9
+ "computeUnits" : "cpuAndNeuralEngine",
10
+ "firstPredictSeconds" : {
11
+ "128" : 0.01834404468536377,
12
+ "256" : 0.025310039520263672,
13
+ "512" : 0.044180035591125488,
14
+ "1024" : 0.096426010131835938,
15
+ "2048" : 0.30896306037902832
16
+ },
17
+ "host" : "customer.frntdeu1.isp.starlink.com",
18
+ "loadSeconds" : {
19
+ "128" : 0.82479202747344971,
20
+ "256" : 0.77631592750549316,
21
+ "512" : 0.78538393974304199,
22
+ "1024" : 0.8055109977722168,
23
+ "2048" : 0.75825095176696777
24
+ },
25
+ "maxSequenceLength" : 2048,
26
+ "mode" : "warm",
27
+ "os" : "Version 27.2.1 (Build 26B131)",
28
+ "phase" : "loaded-s2048",
29
+ "pid" : 30262,
30
+ "sequenceLengths" : [
31
+ 128,
32
+ 256,
33
+ 512,
34
+ 1024,
35
+ 2048
36
+ ]
37
+ }