mlboydaisuke commited on
Commit
de5237f
·
verified ·
1 Parent(s): d3e88de

Add index-runs/ records and update the card and notes

Browse files

Add the records of the two runs that embedded the same 9,859
sentences, under index-runs/: ios/fp32-s128 on an iPhone 18 Pro, and
the bundle now in ios-h18p/fp32-s128 on an iPhone 17 Pro. The iPhone
18 Pro record is as the app wrote it, apart from a shortened launch
label in "arguments".

README: link both records and say what each holds: the iPhone 18 Pro
record has one query of 22.0 ms, while the 16.5 ms per query is the
median of 10 queries in a later launch; the iPhone 17 Pro run's
bundle, device, OS, date and thermal state come from files that are
not published. Name the two books, the revision the sample app
downloaded (its bundle and tokenizer files are the same as now) and
the iOS builds of both index runs; give the iPhone 17 Pro run's date
in JST; say the two per-sentence times come from different apps and
are not comparable, and that the iPhone 17 Pro warmed during its
index run. Say each JIT bundle was loaded and called after a fresh
install and again after a relaunch, add the call times after the
relaunch, and say those come from the runs' own records. Say what
kinds of job the Mac timing script checked for and what was running
but not counted; name Apple's coreai-pipelined engine; define a
clear-pair flip and point to it at its first use; list the iPhone 18
Pro runs under Numerics gate and refer to them under the limits, say
there that the iPhone 17 Pro ran the h18p bundles, and say the Neural
Engine was not tested with these bundles and that the fp32 bundle
falls back to the GPU when compiled with the Neural Engine preferred.
Refer to the iPhone 17 Pro results as the iPhone rows above; name the
checkpoint's tokenizer.json and the folder that holds it; give the
upstream revision under the limits. Say that CoreAIKit does not read
coreai-kit.json yet, that this model is not in the kit catalog, and
that only h18p iPhones accept the bundles the file's iOS entries
name; say why the gate transcript's iPhone rows name ios/; limit the
sentence on later record changes to the records the transcript
quotes. Link DecideGate; drop "tracked as" and link "maintainer work"
to the zoo's CONTRIBUTING.md. Remove "load after a relaunch 0.054 s"
and the "five example queries" clause, which neither record holds.

QUALIFICATION.md (both copies): say it describes the bundles in
ios-h18p/; give the order of the runs and say that in every run the
wrong-pairing control had to fail; fix the spacing; state the timing
conditions plainly; name the h18p bundles in the Mac warning. Give
the eight provenance/runtime-summary.json files under ios/ and
ios-h18p/ the same timing wording. LICENSE-NOTE.md: state the upstream
revision plainly, drop an outdated sentence, and say the signed apps
and provisioning profiles used for the iPhone runs are not included;
"device data" leaves that line, since the repo holds run records.
Remove candidates.json.

LICENSE-NOTE.md CHANGED
@@ -1,3 +1,3 @@
1
  # License and changes
2
 
3
- IBM declares Apache-2.0 in the upstream model card at pinned revision 835ad14087e140460703cf0fae09f97d469d65c2. No standalone LICENSE/NOTICE was listed at that revision; the unmodified upstream card and standard Apache-2.0 license text are included. Changes: strict raw-weight ModernBERT graph, static S128/S512, in-graph CLS/L2 pooling, optional scalar W8 linear palettes with FP32 embedding table/compute, and h18p GPU AOT compilation. Signed apps/profiles and device data are excluded. This local candidate is not publication approval.
 
1
  # License and changes
2
 
3
+ IBM declares Apache-2.0 in the upstream model card at revision 835ad14087e140460703cf0fae09f97d469d65c2. No standalone LICENSE/NOTICE was listed at that revision; the unmodified upstream card and standard Apache-2.0 license text are included. Changes: strict raw-weight ModernBERT graph, static S128/S512, in-graph CLS/L2 pooling, optional scalar W8 linear palettes with FP32 embedding table/compute, and h18p GPU AOT compilation. The signed apps and provisioning profiles used for the iPhone runs are not included.
README.md CHANGED
@@ -26,7 +26,7 @@ This model has no row on [DeviceMark](https://devicemark.github.io/), the on-dev
26
 
27
  Zoo card, recipe and gate transcript: [coreai-model-zoo/models/granite-embedding-97m](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/granite-embedding-97m/README.md).
28
 
29
- Sample app: [CoreAISearchiOS](https://github.com/john-rocky/coreai-samples/tree/main/CoreAISearchiOS) downloads `ios/fp32-s128` from this repo and searches your own notes by meaning, 16.5 ms per query on an iPhone 18 Pro (iOS 27.2, 2026-10-09).
30
 
31
  IBM's 97M-parameter **multilingual text embedder** — a ModernBERT encoder, 384-d CLS-pooled
32
  unit vectors, Japanese and English among its languages — as a static `.aimodel` for macOS 27
@@ -40,7 +40,8 @@ is a parity instrument (35 texts, 4 queries, 12 documents), not a benchmark.
40
 
41
  **This is an encoder, not a generator** — one forward over the right-padded grid returns one
42
  unit vector. No autoregressive loop, no KV cache, no LM head. It runs as a plain `.aimodel`
43
- through raw `AIModel.run` (like the vision encoders), not the pipelined generate engine.
 
44
 
45
  Architecture (`model_type: modernbert`): 12 layers, hidden 384, 12 heads × 32, GLU MLP 1536
46
  (SiLU), vocabulary 180,000, biasless everything (attention, MLP, LayerNorm ε 1e-5). Global
@@ -63,9 +64,10 @@ S = 128 or 512 (export-time choice); batch = 1
63
  the checkpoint. Raw whitespace is kept: sentence-transformers strips text before tokenizing,
64
  the upstream README's `AutoTokenizer` path does not, and the two disagree on `" 東京駅から…\n"`.
65
  The reference is the raw path.
66
- - Tokenize with the pinned `tokenizer.json`: regex `Split(Isolated)` → `ByteLevel` (no prefix
67
- space) → byte BPE with **`ignore_merges = true`** (a whole pre-token that is in the vocabulary
68
- wins; ` ક` is token 2999, not three). A BPE that ignores the flag tokenizes differently.
 
69
  - Truncate the **body to S−2**, then wrap: `[CLS 179934] body… [SEP 179938]`, right-pad with
70
  **PAD 179935** and mask 0. Truncating after adding the specials loses SEP; padding with 0 is a
71
  different token. Both are silent.
@@ -92,10 +94,12 @@ hashing included. Measured 2026-09-19.
92
  | w8 / fp32 table | 128 | 35/35 | 0.999410 | 5.67e-3 | 61 ms | 25.3 ms | 6.64 ms | 555 MB |
93
  | w8 / fp32 table | 512 | 35/35 | 0.999410 | 5.67e-3 | 447 ms | 138.7 ms | 23.07 ms | 553 MB |
94
 
95
- Each row matched 4/4 retrieval top-1s with 0 clear-pair flips and 0 repeat drift.
96
 
97
  **Mac** (M4 Max, Mac16,9), macOS 27.0 build 26A428, the JIT `.aimodel`, GPU-preferred, fp32.
98
- The driver refused to run while any foreign accelerator job was present; 105 warm samples.
 
 
99
 
100
  | S | Gate | Min cosine vs HF | Max \|err\| | Load | First after load | **Warm median** |
101
  |---:|---|---:|---:|---:|---:|---:|
@@ -107,27 +111,40 @@ job's GPU evaluation running and are not reported. The w8 variant on Mac is gate
107
  only** (min cosine 0.999410, max |err| 5.67e-3, ranking exact); Mac GPU for w8 was not run.
108
 
109
  **iPhone 18 Pro** (iPhone19,2, h19p), iOS 27.0 build **24A437**, the JIT `.aimodel` bundles in `ios/`
110
- (the same files as `macos/`), loaded 2026-09-26 by the zoo's DecideGate app in its load-only mode,
111
  GPU-preferred, without the increased-memory entitlement. Each first load was the first after a fresh
112
- install of the app. The call is one run on all-zero inputs. Each first load wrote a specialization of
113
- about the bundle's size into the app container, and the load after a relaunch reused it. One measurement
114
- per graph
115
  ([knowledge/jit-distribution.md](https://github.com/john-rocky/coreai-model-zoo/blob/main/knowledge/jit-distribution.md)).
116
-
117
- | JIT bundle in `ios/` | MB | first load | first call | load after relaunch |
118
- |---|---:|---:|---:|---:|
119
- | `fp32-s128/granite97m_fp32_s128_bound.aimodel` | 390 | 1.01 s | 619 ms | 0.26 s |
120
- | `fp32-s512/granite97m_fp32_s512_bound.aimodel` | 390 | 0.40 s | 88 ms | 0.26 s |
121
- | `w8-fp32table-s128/granite97m_w8_fp32table_s128.aimodel` | 305 | 0.63 s | 132 ms | 0.21 s |
122
- | `w8-fp32table-s512/granite97m_w8_fp32table_s512.aimodel` | 306 | 0.33 s | 93 ms | 0.21 s |
123
-
124
- The iPhone gate above (the iPhone 17 Pro rows) ran the `h18p` export, now in `ios-h18p/`. The JIT IR in
125
- `ios/` was only loaded and called once on the iPhone 18 Pro. That call returned a 384-value float32
126
- embedding with no non-finite values. On 2026-10-09 the sample app above embedded 9,859 sentences on an
127
- iPhone 18 Pro (iOS 27.2, 24B5099f) with `ios/fp32-s128`, GPU preferred: the 9,859 × 384 float32 matrix has the
128
- same SHA-256 as the one the `h18p` bundle produced on the iPhone 17 Pro on 2026-09-20 (bit-identical), so the
129
- five example queries return the same top 5 with the same scores. First load 0.44 s, first call 612 ms, load
130
- after a relaunch 0.054 s, 4.91 ms per sentence over the 9,859, one run.
 
 
 
 
 
 
 
 
 
 
 
 
 
131
 
132
  The fixed grid computes every position, so pick the smallest grid that covers the text: S=128
133
  for queries and short notes, S=512 for passages. **fp32 is the default.** w8 is a storage
@@ -139,8 +156,8 @@ option only — 22% smaller, not faster here — because the 180,000×384 fp32 v
139
  One gate at every stage, the oracle being official HF eager CPU fp32 (transformers 4.57.6):
140
  per text cosine ≥ 0.999, max element error ≤ 0.02, L2-norm error ≤ 0.002; per query exact
141
  top-1 over the 12 documents, retrieval-score error ≤ 0.01, and no inversion of any document
142
- pair the oracle separates by ≥ 0.001; repeat drift ≤ 1e-6. A wrong-pairing control (every vector
143
- matched to the wrong text) must FAIL.
144
 
145
  - **Authoring** (`gate_granite_authoring.py`): the re-authored graph against every one of the 13
146
  saved hidden states, max |err| ≤ **1e-4** at fp32, both grids. Five mutations must trip it:
@@ -149,7 +166,8 @@ matched to the wrong text) must FAIL.
149
  which is why the layer gate exists. Whole-model **fp16 fails** this layer gate on both grids.
150
  - **Export**: the torch-exported, decomposed graph is gated before conversion, on both grids.
151
  - **Runtime**: Mac CPU and GPU (JIT), Mac h16c AOT, iPhone h18p AOT — the tables above; iPhone 18 Pro
152
- JIT: load and one zero-input call only.
 
153
  - **w8**: the same gate at prepared, finalized and decomposed stages, 48 `lut_to_dense` ops
154
  counted, palettes hashed; the iOS w8 export reuses the Mac palettes byte for byte.
155
 
@@ -157,7 +175,8 @@ matched to the wrong text) must FAIL.
157
  (min cosine, max error, retrieval, timings, device/OS build), the tokenizer gate and the
158
  authoring gate, each with the sha256 of the full record it summarizes.
159
  Where the transcript quotes a record in this repo, the sha256 it gives is that of the file at revision `21db5168`.
160
- Since then, the only change inside these records is that a commit replaced absolute local paths in some of them.
 
161
  So a record that commit changed has a different sha256 in its current version.
162
 
163
  ## ⬇️ Bundle
@@ -167,9 +186,13 @@ This repo — one folder per variant, each holding the bundle, `tokenizer/`, `re
167
  manifest with per-file sha256, the runtime gate record). In `macos/` and `ios-h18p/` these records
168
  describe the bundle in the same folder. In `ios/` they do not: the files in `ios/<variant>/provenance/` and
169
  `ios/QUALIFICATION.md` are the same files as in `ios-h18p/`. They record the `h18p` AOT bundles that `ios/`
170
- held before, not the JIT bundles it holds now. An `ios/` bundle is byte-identical to the `macos/` bundle of
171
- the same variant, so its per-file sha256 values are in `macos/<variant>/provenance/export-manifest.json`.
172
- `coreai-kit.json` at the root maps platform → folder.
 
 
 
 
173
 
174
  | Folder | Platform | Format | Bundle | Bytes |
175
  |---|---|---|---|---:|
@@ -205,7 +228,7 @@ the special tokens (losing SEP), applies its own BPE without `ignore_merges`, di
205
  model. Running it today means: the Swift tokenizer from this repo's `host/` folder, a fixed
206
  grid, `AIModel` on the platform's folder. Enrolling it needs a `textEmbedding` driver that takes
207
  the pad id, a SEP-preserving truncation, a per-platform variant path and an AOT-aware loader —
208
- tracked as maintainer work, not a blocker on the bundle.
209
 
210
  ## The port in one lesson: gate the layers, not just the vector
211
 
@@ -219,9 +242,13 @@ epsilon because the converter's `F.normalize` decomposition drops it.
219
 
220
  ## License and limits
221
 
222
- Apache-2.0 at the pinned upstream revision; this repo carries IBM's unmodified card as
223
  `UPSTREAM_README.md` and a `LICENSE-NOTE.md` listing the changes (static graph, in-graph
224
- pooling, optional w8 palettes, h18p compile). Not tested: phones other than the iPhone 17 Pro (the
225
- h18p gate) and the iPhone 18 Pro (JIT load and one call), other OS builds, the JIT bundles' embedding
226
- parity on an iPhone, the Mac GPU with w8, the Neural Engine, dynamic or batched shapes, S > 512, languages beyond the JA/EN
227
- fixtures, retrieval quality on a benchmark, sustained thermals, true cache-cold load.
 
 
 
 
 
26
 
27
  Zoo card, recipe and gate transcript: [coreai-model-zoo/models/granite-embedding-97m](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/granite-embedding-97m/README.md).
28
 
29
+ Sample app: [CoreAISearchiOS](https://github.com/john-rocky/coreai-samples/tree/main/CoreAISearchiOS) downloads `ios/fp32-s128` from this repo and searches your own notes by meaning, 16.5 ms per query on an iPhone 18 Pro (iOS 27.2, 2026-10-09; median of 10 queries in one launch, whose record is not published).
30
 
31
  IBM's 97M-parameter **multilingual text embedder** — a ModernBERT encoder, 384-d CLS-pooled
32
  unit vectors, Japanese and English among its languages — as a static `.aimodel` for macOS 27
 
40
 
41
  **This is an encoder, not a generator** — one forward over the right-padded grid returns one
42
  unit vector. No autoregressive loop, no KV cache, no LM head. It runs as a plain `.aimodel`
43
+ through raw `AIModel.run` (like the vision encoders), not Apple's pipelined generate engine
44
+ (`coreai-pipelined`) that language models use.
45
 
46
  Architecture (`model_type: modernbert`): 12 layers, hidden 384, 12 heads × 32, GLU MLP 1536
47
  (SiLU), vocabulary 180,000, biasless everything (attention, MLP, LayerNorm ε 1e-5). Global
 
64
  the checkpoint. Raw whitespace is kept: sentence-transformers strips text before tokenizing,
65
  the upstream README's `AutoTokenizer` path does not, and the two disagree on `" 東京駅から…\n"`.
66
  The reference is the raw path.
67
+ - Tokenize with the checkpoint's `tokenizer.json` (in each variant folder's `tokenizer/`): regex
68
+ `Split(Isolated)` → `ByteLevel` (no prefix space) → byte BPE with **`ignore_merges = true`** (a whole
69
+ pre-token that is in the vocabulary wins; ` ક` is token 2999, not three). A BPE that ignores the flag
70
+ tokenizes differently.
71
  - Truncate the **body to S−2**, then wrap: `[CLS 179934] body… [SEP 179938]`, right-pad with
72
  **PAD 179935** and mask 0. Truncating after adding the specials loses SEP; padding with 0 is a
73
  different token. Both are silent.
 
94
  | w8 / fp32 table | 128 | 35/35 | 0.999410 | 5.67e-3 | 61 ms | 25.3 ms | 6.64 ms | 555 MB |
95
  | w8 / fp32 table | 512 | 35/35 | 0.999410 | 5.67e-3 | 447 ms | 138.7 ms | 23.07 ms | 553 MB |
96
 
97
+ Each row matched 4/4 retrieval top-1s with 0 clear-pair flips (defined under Numerics gate) and 0 repeat drift.
98
 
99
  **Mac** (M4 Max, Mac16,9), macOS 27.0 build 26A428, the JIT `.aimodel`, GPU-preferred, fp32.
100
+ The timing script recognized a few kinds of model job by their names and command lines and would not start
101
+ while one was running. It did not count other processes; running when it checked were GPU processes of other
102
+ apps, such as Chrome's, and two other jobs each using a full CPU core. 105 warm samples.
103
 
104
  | S | Gate | Min cosine vs HF | Max \|err\| | Load | First after load | **Warm median** |
105
  |---:|---|---:|---:|---:|---:|---:|
 
111
  only** (min cosine 0.999410, max |err| 5.67e-3, ranking exact); Mac GPU for w8 was not run.
112
 
113
  **iPhone 18 Pro** (iPhone19,2, h19p), iOS 27.0 build **24A437**, the JIT `.aimodel` bundles in `ios/`
114
+ (the same files as `macos/`), loaded 2026-09-26 by the zoo's [DecideGate](https://github.com/john-rocky/coreai-model-zoo/tree/main/apps/DecideGate) app in its load-only mode,
115
  GPU-preferred, without the increased-memory entitlement. Each first load was the first after a fresh
116
+ install of the app. Each call is one run on all-zero inputs. Each first load wrote a specialization of
117
+ about the bundle's size into the app container, and the load after a relaunch reused it. Each value below
118
+ is one measurement
119
  ([knowledge/jit-distribution.md](https://github.com/john-rocky/coreai-model-zoo/blob/main/knowledge/jit-distribution.md)).
120
+ That page has every column but the last, which comes from the runs' own records (not published).
121
+
122
+ | JIT bundle in `ios/` | MB | first load | first call | load after relaunch | call after relaunch |
123
+ |---|---:|---:|---:|---:|---:|
124
+ | `fp32-s128/granite97m_fp32_s128_bound.aimodel` | 390 | 1.01 s | 619 ms | 0.26 s | 26 ms |
125
+ | `fp32-s512/granite97m_fp32_s512_bound.aimodel` | 390 | 0.40 s | 88 ms | 0.26 s | 120 ms |
126
+ | `w8-fp32table-s128/granite97m_w8_fp32table_s128.aimodel` | 305 | 0.63 s | 132 ms | 0.21 s | 20 ms |
127
+ | `w8-fp32table-s512/granite97m_w8_fp32table_s512.aimodel` | 306 | 0.33 s | 93 ms | 0.21 s | 29 ms |
128
+
129
+ The iPhone rows above (the iPhone 17 Pro) ran the `h18p` export, now in `ios-h18p/`. On the iPhone 18 Pro,
130
+ each JIT bundle in `ios/` was loaded and called after a fresh install, and again after a relaunch (the table
131
+ above). Each call returned a 384-value float32 embedding with no non-finite values. On 2026-10-09 the sample app
132
+ above also embedded 9,859 sentences from two books, The Adventures of Sherlock Holmes and The Hound of the
133
+ Baskervilles, on an iPhone 18 Pro (iOS 27.2, 24B5099f) with `ios/fp32-s128` at revision `fdb16fc6` (the same
134
+ bundle and tokenizer files as now), GPU preferred. First load 0.44 s, first call 612 ms, 4.91 ms per sentence
135
+ over the 9,859, one run. On 2026-09-20 (JST) the bundle now in `ios-h18p/fp32-s128` had embedded the same
136
+ 9,859 sentences on the iPhone 17 Pro (iOS 27.0, 24A437): the corpus SHA-256 in that run's record (`3602b206…`)
137
+ is the part of the iPhone 18 Pro record's `key` before `@`. The two 9,859 × 384 matrices also have the same
138
+ SHA-256 (bit-identical). Records of both runs:
139
+ [`index-runs/iphone18pro-jit-fp32-s128-index.json`](https://huggingface.co/mlboydaisuke/Granite-Embedding-97M-Multilingual-R2-CoreAI/blob/main/index-runs/iphone18pro-jit-fp32-s128-index.json)
140
+ and
141
+ [`index-runs/iphone17pro-h18p-fp32-s128-index.json`](https://huggingface.co/mlboydaisuke/Granite-Embedding-97M-Multilingual-R2-CoreAI/blob/main/index-runs/iphone17pro-h18p-fp32-s128-index.json).
142
+ The iPhone 18 Pro record holds one query, 22.0 ms, run right after the index was built; the 16.5 ms per query
143
+ above is the median of 10 queries in a later launch. The iPhone 17 Pro record, written by another app, holds
144
+ only index metadata; that run's bundle, device, OS, date and thermal state come from its log and the app's
145
+ payload manifest, which are not published. The two per-sentence times, 8.27 ms on the iPhone 17 Pro and
146
+ 4.91 ms on the iPhone 18 Pro, come from different apps and are not comparable. The iPhone 17 Pro warmed from
147
+ fair to serious during the 2026-09-20 index run.
148
 
149
  The fixed grid computes every position, so pick the smallest grid that covers the text: S=128
150
  for queries and short notes, S=512 for passages. **fp32 is the default.** w8 is a storage
 
156
  One gate at every stage, the oracle being official HF eager CPU fp32 (transformers 4.57.6):
157
  per text cosine ≥ 0.999, max element error ≤ 0.02, L2-norm error ≤ 0.002; per query exact
158
  top-1 over the 12 documents, retrieval-score error ≤ 0.01, and no inversion of any document
159
+ pair the oracle separates by ≥ 0.001 (a clear-pair flip); repeat drift ≤ 1e-6. A wrong-pairing
160
+ control (every vector matched to the wrong text) must FAIL.
161
 
162
  - **Authoring** (`gate_granite_authoring.py`): the re-authored graph against every one of the 13
163
  saved hidden states, max |err| ≤ **1e-4** at fp32, both grids. Five mutations must trip it:
 
166
  which is why the layer gate exists. Whole-model **fp16 fails** this layer gate on both grids.
167
  - **Export**: the torch-exported, decomposed graph is gated before conversion, on both grids.
168
  - **Runtime**: Mac CPU and GPU (JIT), Mac h16c AOT, iPhone h18p AOT — the tables above; iPhone 18 Pro
169
+ JIT: not gated (a load and a zero-input call per bundle after a fresh install and again after a relaunch,
170
+ plus the 9,859-sentence run of `ios/fp32-s128`).
171
  - **w8**: the same gate at prepared, finalized and decomposed stages, 48 `lut_to_dense` ops
172
  counted, palettes hashed; the iOS w8 export reuses the Mac palettes byte for byte.
173
 
 
175
  (min cosine, max error, retrieval, timings, device/OS build), the tokenizer gate and the
176
  authoring gate, each with the sha256 of the full record it summarizes.
177
  Where the transcript quotes a record in this repo, the sha256 it gives is that of the file at revision `21db5168`.
178
+ Since then, the only change inside the records the transcript quotes is that a commit replaced absolute local
179
+ paths in some of them.
180
  So a record that commit changed has a different sha256 in its current version.
181
 
182
  ## ⬇️ Bundle
 
186
  manifest with per-file sha256, the runtime gate record). In `macos/` and `ios-h18p/` these records
187
  describe the bundle in the same folder. In `ios/` they do not: the files in `ios/<variant>/provenance/` and
188
  `ios/QUALIFICATION.md` are the same files as in `ios-h18p/`. They record the `h18p` AOT bundles that `ios/`
189
+ held before, not the JIT bundles it holds now; so do the gate transcript's iPhone rows, which name
190
+ `ios/<variant>`. An `ios/` bundle is byte-identical to the `macos/` bundle of the same variant, so its
191
+ per-file sha256 values are in `macos/<variant>/provenance/export-manifest.json`.
192
+ `coreai-kit.json` at the root maps platform → folder. CoreAIKit does not read it from the repo yet, and this
193
+ model is not in the kit catalog, so the file matters only if you pick a folder from it yourself.
194
+ The file's iOS entries point only at the `h18p` bundles in `ios-h18p/`, which only h18p iPhones accept
195
+ (the iPhone 18 Pro refuses them). Until those entries change, use `ios/` directly, as the sample app does.
196
 
197
  | Folder | Platform | Format | Bundle | Bytes |
198
  |---|---|---|---|---:|
 
228
  model. Running it today means: the Swift tokenizer from this repo's `host/` folder, a fixed
229
  grid, `AIModel` on the platform's folder. Enrolling it needs a `textEmbedding` driver that takes
230
  the pad id, a SEP-preserving truncation, a per-platform variant path and an AOT-aware loader —
231
+ [maintainer work](https://github.com/john-rocky/coreai-model-zoo/blob/main/CONTRIBUTING.md#what-blocks-a-merge-and-what-does-not), not a blocker on the bundle.
232
 
233
  ## The port in one lesson: gate the layers, not just the vector
234
 
 
242
 
243
  ## License and limits
244
 
245
+ Apache-2.0 at upstream revision `835ad1408…`; this repo carries IBM's unmodified card as
246
  `UPSTREAM_README.md` and a `LICENSE-NOTE.md` listing the changes (static graph, in-graph
247
+ pooling, optional w8 palettes, h18p compile). Not tested: phones other than the iPhone 17 Pro (which ran
248
+ the h18p bundles above) and the iPhone 18 Pro (only the JIT runs described above), iOS builds other than
249
+ 24A437 (27.0) and 24B5099f (27.2), other macOS builds, the numerics gate for the JIT bundles on an iPhone,
250
+ the Mac GPU with w8, the Neural Engine with these bundles (when the published fp32 S=128 bundle is compiled
251
+ on a Mac with the Neural Engine preferred, it forms no Neural Engine region and falls back to the GPU; see the
252
+ [zoo card](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/granite-embedding-97m/README.md)),
253
+ dynamic or batched shapes, S > 512, languages beyond the JA/EN fixtures, retrieval quality on a benchmark,
254
+ sustained thermals, true cache-cold load.
candidates.json DELETED
@@ -1,137 +0,0 @@
1
- {
2
- "published": false,
3
- "status": "DONE",
4
- "model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
5
- "default_macos": "fp32-s512",
6
- "default_ios": "fp32-s512",
7
- "variants": [
8
- {
9
- "platform": "macos",
10
- "variant": "fp32",
11
- "sequence_length": 128,
12
- "relative_path": "macos/fp32-s128",
13
- "bundle": "granite97m_fp32_s128_bound.aimodel",
14
- "model_bytes": 389989146,
15
- "tokenizer_bytes": 25315403,
16
- "gate": "results/r01_mac_gpu_s128_gate.json",
17
- "runtime_status": "PASS",
18
- "qualified_backend": "native CPU and GPU/MPSGraph",
19
- "compile_status": "portable export PASS",
20
- "architecture": "runtime JIT",
21
- "format": "JIT .aimodel"
22
- },
23
- {
24
- "platform": "macos",
25
- "variant": "fp32",
26
- "sequence_length": 512,
27
- "relative_path": "macos/fp32-s512",
28
- "bundle": "granite97m_fp32_s512_bound.aimodel",
29
- "model_bytes": 390431506,
30
- "tokenizer_bytes": 25315403,
31
- "gate": "results/r01_mac_gpu_s512_gate.json",
32
- "runtime_status": "PASS",
33
- "qualified_backend": "native CPU and GPU/MPSGraph",
34
- "compile_status": "portable export PASS",
35
- "architecture": "runtime JIT",
36
- "format": "JIT .aimodel"
37
- },
38
- {
39
- "platform": "macos",
40
- "variant": "w8-fp32table",
41
- "sequence_length": 128,
42
- "relative_path": "macos/w8-fp32table-s128",
43
- "bundle": "granite97m_w8_fp32table_s128.aimodel",
44
- "model_bytes": 305126985,
45
- "tokenizer_bytes": 25315403,
46
- "gate": "results/w8-fp32table-cpu-s128-gate.json",
47
- "runtime_status": "PASS",
48
- "qualified_backend": "native CPU only; W8 Mac GPU NOT RUN",
49
- "compile_status": "portable export PASS",
50
- "architecture": "runtime JIT",
51
- "format": "JIT .aimodel"
52
- },
53
- {
54
- "platform": "macos",
55
- "variant": "w8-fp32table",
56
- "sequence_length": 512,
57
- "relative_path": "macos/w8-fp32table-s512",
58
- "bundle": "granite97m_w8_fp32table_s512.aimodel",
59
- "model_bytes": 305569358,
60
- "tokenizer_bytes": 25315403,
61
- "gate": "results/w8-fp32table-cpu-s512-gate.json",
62
- "runtime_status": "PASS",
63
- "qualified_backend": "native CPU only; W8 Mac GPU NOT RUN",
64
- "compile_status": "portable export PASS",
65
- "architecture": "runtime JIT",
66
- "format": "JIT .aimodel"
67
- },
68
- {
69
- "platform": "ios",
70
- "variant": "fp32",
71
- "sequence_length": 128,
72
- "relative_path": "ios-h18p/fp32-s128",
73
- "bundle": "granite97m_fp32_s128_bound.h18p.aimodelc",
74
- "model_bytes": 390081410,
75
- "tokenizer_bytes": 25315403,
76
- "gate": "results/r04_iphone_fp32_s128_gate.json",
77
- "runtime_status": "PASS",
78
- "qualified_backend": "iPhone17Pro/iPhone18,1 iOS27.0 build24A437; h18p AOT MPSGraph/Metal GPU-preferred",
79
- "compile_status": "PASS",
80
- "architecture": "h18p only",
81
- "format": "AOT .aimodelc",
82
- "qualification_round": 4,
83
- "measurement_summary": "ios/fp32-s128/provenance/runtime-summary.json"
84
- },
85
- {
86
- "platform": "ios",
87
- "variant": "fp32",
88
- "sequence_length": 512,
89
- "relative_path": "ios-h18p/fp32-s512",
90
- "bundle": "granite97m_fp32_s512_bound.h18p.aimodelc",
91
- "model_bytes": 390308788,
92
- "tokenizer_bytes": 25315403,
93
- "gate": "results/r04_iphone_fp32_s512_gate.json",
94
- "runtime_status": "PASS",
95
- "qualified_backend": "iPhone17Pro/iPhone18,1 iOS27.0 build24A437; h18p AOT MPSGraph/Metal GPU-preferred",
96
- "compile_status": "PASS",
97
- "architecture": "h18p only",
98
- "format": "AOT .aimodelc",
99
- "qualification_round": 4,
100
- "measurement_summary": "ios/fp32-s512/provenance/runtime-summary.json"
101
- },
102
- {
103
- "platform": "ios",
104
- "variant": "w8-fp32table",
105
- "sequence_length": 128,
106
- "relative_path": "ios-h18p/w8-fp32table-s128",
107
- "bundle": "granite97m_w8_fp32table_s128_r02.h18p.aimodelc",
108
- "model_bytes": 305251774,
109
- "tokenizer_bytes": 25315403,
110
- "gate": "results/r04_iphone_compact_s128_gate.json",
111
- "runtime_status": "PASS",
112
- "qualified_backend": "iPhone17Pro/iPhone18,1 iOS27.0 build24A437; h18p AOT MPSGraph/Metal GPU-preferred",
113
- "compile_status": "PASS",
114
- "architecture": "h18p only",
115
- "format": "AOT .aimodelc",
116
- "qualification_round": 4,
117
- "measurement_summary": "ios/w8-fp32table-s128/provenance/runtime-summary.json"
118
- },
119
- {
120
- "platform": "ios",
121
- "variant": "w8-fp32table",
122
- "sequence_length": 512,
123
- "relative_path": "ios-h18p/w8-fp32table-s512",
124
- "bundle": "granite97m_w8_fp32table_s512_r02.h18p.aimodelc",
125
- "model_bytes": 305479184,
126
- "tokenizer_bytes": 25315403,
127
- "gate": "results/r04_iphone_compact_s512_gate.json",
128
- "runtime_status": "PASS",
129
- "qualified_backend": "iPhone17Pro/iPhone18,1 iOS27.0 build24A437; h18p AOT MPSGraph/Metal GPU-preferred",
130
- "compile_status": "PASS",
131
- "architecture": "h18p only",
132
- "format": "AOT .aimodelc",
133
- "qualification_round": 4,
134
- "measurement_summary": "ios/w8-fp32table-s512/provenance/runtime-summary.json"
135
- }
136
- ]
137
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index-runs/iphone17pro-h18p-fp32-s128-index.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "corpus_sha256" : "3602b2063562eaf34a37787e51d91f6e83cf2254f30b37209020f9e4a62b970e",
3
+ "dimension" : 384,
4
+ "documents_truncated_at_126_body_tokens" : 0,
5
+ "index_ms_per_sentence" : 8.273252894918349,
6
+ "index_total_seconds" : 81.56600029100001,
7
+ "matrix_sha256" : "9d12e6e796104d0bdcc86a6ddd4f7094933751a04326ab3e9197b95ff8f67aab",
8
+ "payload_manifest_sha256" : "3540a6db4d24f85a110c0abfea7d3af2f17a0263009be96ee706419ebc55681d",
9
+ "rows" : 9859,
10
+ "schema" : 1
11
+ }
index-runs/iphone18pro-jit-fp32-s128-index.json ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "app_build" : "1",
3
+ "architecture" : "h19p",
4
+ "arguments" : [
5
+ "--",
6
+ "-launchedBy",
7
+ "download_index_query-1791556910",
8
+ "-autoplay",
9
+ "1",
10
+ "-query",
11
+ "the woman who outwitted Sherlock Holmes",
12
+ "-hold",
13
+ "3",
14
+ "-log",
15
+ "1"
16
+ ],
17
+ "available_memory_mb_at_launch" : 3368.420280456543,
18
+ "book_index" : {
19
+ "built" : true,
20
+ "metadata" : {
21
+ "dimension" : 384,
22
+ "first20s_ms_per_sentence" : 4.610061529737206,
23
+ "first20s_sentences" : 4338,
24
+ "index_ms_per_sentence" : 4.9100090357034185,
25
+ "index_total_seconds" : 48.407779083,
26
+ "key" : "3602b2063562eaf34a37787e51d91f6e83cf2254f30b37209020f9e4a62b970e@fdb16fc6f4574a081ee04a597778d4b7f3b8a238",
27
+ "matrix_sha256" : "9d12e6e796104d0bdcc86a6ddd4f7094933751a04326ab3e9197b95ff8f67aab",
28
+ "rows" : 9859,
29
+ "schema" : 1,
30
+ "truncated_at_126_body_tokens" : 0
31
+ }
32
+ },
33
+ "compute" : "Core AI, GPU preferred (SpecializationOptions); per-operation placement not observed",
34
+ "device" : "iPhone19,2",
35
+ "download" : {
36
+ "bytes_on_disk" : 415304549,
37
+ "endpoint" : "default",
38
+ "expected_bytes" : 415304549,
39
+ "seconds" : 94.474900291
40
+ },
41
+ "download_errors" : [
42
+
43
+ ],
44
+ "footprint_mb_at_end" : 103.04906463623047,
45
+ "launch_epoch" : 1791556910,
46
+ "loads" : [
47
+ {
48
+ "after_download" : true,
49
+ "first_call_ms" : 611.756042,
50
+ "model_seconds" : 0.442859708,
51
+ "tokenizer_seconds" : 0.45627375000000003
52
+ }
53
+ ],
54
+ "messages" : [
55
+
56
+ ],
57
+ "notes_adds" : [
58
+
59
+ ],
60
+ "notes_restored" : 0,
61
+ "notes_total_at_end" : 0,
62
+ "os_build" : "24B5099f",
63
+ "os_version" : "Version 27.2 (Build 24B5099f)",
64
+ "peak_footprint_mb" : 212.22066497802734,
65
+ "queries" : [
66
+ {
67
+ "body_tokens" : 8,
68
+ "book_top8" : [
69
+ {
70
+ "id" : "1661-00001",
71
+ "label" : "The Adventures of Sherlock Holmes · A Scandal in Bohemia",
72
+ "score" : 0.94779515,
73
+ "source" : "book",
74
+ "text" : "To Sherlock Holmes she is always _the_ woman."
75
+ },
76
+ {
77
+ "id" : "1661-03579",
78
+ "label" : "The Adventures of Sherlock Holmes · The Adventure of the Speckled Band",
79
+ "score" : 0.9143239,
80
+ "source" : "book",
81
+ "text" : "Sherlock Holmes ran her over with one of his quick, all-comprehensive glances."
82
+ },
83
+ {
84
+ "id" : "1661-00597",
85
+ "label" : "The Adventures of Sherlock Holmes · A Scandal in Bohemia",
86
+ "score" : 0.9064857,
87
+ "source" : "book",
88
+ "text" : "And that was how a great scandal threatened to affect the kingdom of Bohemia, and how the best plans of Mr. Sherlock Holmes were beaten by a woman’s wit."
89
+ },
90
+ {
91
+ "id" : "1661-01179",
92
+ "label" : "The Adventures of Sherlock Holmes · A Case of Identity",
93
+ "score" : 0.9027028,
94
+ "source" : "book",
95
+ "text" : "Sherlock Holmes welcomed her with the easy courtesy for which he was remarkable, and, having closed the door and bowed her into an armchair, he looked her over in the minute and yet abstracted fashion which was peculiar to him."
96
+ },
97
+ {
98
+ "id" : "1661-03367",
99
+ "label" : "The Adventures of Sherlock Holmes · The Adventure of the Blue Carbuncle",
100
+ "score" : 0.90122724,
101
+ "source" : "book",
102
+ "text" : "Sherlock Holmes looked deeply chagrined."
103
+ },
104
+ {
105
+ "id" : "1661-04573",
106
+ "label" : "The Adventures of Sherlock Holmes · The Adventure of the Engineer’s Thumb",
107
+ "score" : 0.9004742,
108
+ "source" : "book",
109
+ "text" : "And Holmes’ fears came to be realised, for from that day to this no word has ever been heard either of the beautiful woman, the sinister German, or the morose Englishman."
110
+ },
111
+ {
112
+ "id" : "1661-01791",
113
+ "label" : "The Adventures of Sherlock Holmes · The Boscombe Valley Mystery",
114
+ "score" : 0.89972997,
115
+ "source" : "book",
116
+ "text" : "It was late before Sherlock Holmes returned."
117
+ },
118
+ {
119
+ "id" : "1661-02799",
120
+ "label" : "The Adventures of Sherlock Holmes · The Man with the Twisted Lip",
121
+ "score" : 0.8986592,
122
+ "source" : "book",
123
+ "text" : "Sherlock Holmes seemed to be embarrassed by the question."
124
+ }
125
+ ],
126
+ "embed_and_rank_ms" : 21.99725,
127
+ "note_top8" : [
128
+
129
+ ],
130
+ "query" : "the woman who outwitted Sherlock Holmes",
131
+ "scope" : "all",
132
+ "shown" : [
133
+ {
134
+ "id" : "1661-00001",
135
+ "label" : "The Adventures of Sherlock Holmes · A Scandal in Bohemia",
136
+ "score" : 0.94779515,
137
+ "source" : "book",
138
+ "text" : "To Sherlock Holmes she is always _the_ woman."
139
+ },
140
+ {
141
+ "id" : "1661-03579",
142
+ "label" : "The Adventures of Sherlock Holmes · The Adventure of the Speckled Band",
143
+ "score" : 0.9143239,
144
+ "source" : "book",
145
+ "text" : "Sherlock Holmes ran her over with one of his quick, all-comprehensive glances."
146
+ },
147
+ {
148
+ "id" : "1661-00597",
149
+ "label" : "The Adventures of Sherlock Holmes · A Scandal in Bohemia",
150
+ "score" : 0.9064857,
151
+ "source" : "book",
152
+ "text" : "And that was how a great scandal threatened to affect the kingdom of Bohemia, and how the best plans of Mr. Sherlock Holmes were beaten by a woman’s wit."
153
+ },
154
+ {
155
+ "id" : "1661-01179",
156
+ "label" : "The Adventures of Sherlock Holmes · A Case of Identity",
157
+ "score" : 0.9027028,
158
+ "source" : "book",
159
+ "text" : "Sherlock Holmes welcomed her with the easy courtesy for which he was remarkable, and, having closed the door and bowed her into an armchair, he looked her over in the minute and yet abstracted fashion which was peculiar to him."
160
+ },
161
+ {
162
+ "id" : "1661-03367",
163
+ "label" : "The Adventures of Sherlock Holmes · The Adventure of the Blue Carbuncle",
164
+ "score" : 0.90122724,
165
+ "source" : "book",
166
+ "text" : "Sherlock Holmes looked deeply chagrined."
167
+ },
168
+ {
169
+ "id" : "1661-04573",
170
+ "label" : "The Adventures of Sherlock Holmes · The Adventure of the Engineer’s Thumb",
171
+ "score" : 0.9004742,
172
+ "source" : "book",
173
+ "text" : "And Holmes’ fears came to be realised, for from that day to this no word has ever been heard either of the beautiful woman, the sinister German, or the morose Englishman."
174
+ },
175
+ {
176
+ "id" : "1661-01791",
177
+ "label" : "The Adventures of Sherlock Holmes · The Boscombe Valley Mystery",
178
+ "score" : 0.89972997,
179
+ "source" : "book",
180
+ "text" : "It was late before Sherlock Holmes returned."
181
+ },
182
+ {
183
+ "id" : "1661-02799",
184
+ "label" : "The Adventures of Sherlock Holmes · The Man with the Twisted Lip",
185
+ "score" : 0.8986592,
186
+ "source" : "book",
187
+ "text" : "Sherlock Holmes seemed to be embarrassed by the question."
188
+ }
189
+ ]
190
+ }
191
+ ],
192
+ "repo" : "mlboydaisuke\/Granite-Embedding-97M-Multilingual-R2-CoreAI",
193
+ "revision" : "fdb16fc6f4574a081ee04a597778d4b7f3b8a238",
194
+ "status" : "DONE",
195
+ "thermal_at_end" : "nominal",
196
+ "thermal_at_launch" : "nominal"
197
+ }
ios-h18p/QUALIFICATION.md CHANGED
@@ -1,5 +1,5 @@
1
  # iOS AOT qualification — PASS
2
 
3
- FP32 and W8/FP32-table S128/S512 each passed35 HF cases per grid on iPhone17Pro/iPhone18,1, iOS27.0 build24A437, h18p, GPU-preferred MPSGraph/Metal. Control-first, raw-text token/mask checks, numerical/retrieval/repeat/negative gates all pass. Only this architecture/OS is qualified.
4
 
5
- Timing: iPhone idle under Round04 policy; personal widgets resident; caches retained. Caches were not cleared. Never execute these bundles on Mac. See each variant/provenance/runtime-gate.json and runtime-summary.json.
 
1
  # iOS AOT qualification — PASS
2
 
3
+ This file describes the h18p AOT bundles in ios-h18p/ (the copy in ios/ is the same file). FP32 and W8/FP32-table S128/S512 each passed with 35 HF texts per grid on an iPhone 17 Pro (iPhone18,1), iOS 27.0 build 24A437, h18p, GPU-preferred MPSGraph/Metal. For each of FP32 and W8/FP32-table, a first run of three texts at S128 passed before its S128 and S512 runs. In every one of these runs, the wrong-pairing control (the same vectors paired with the wrong texts) had to fail, and did. That shows the numerical check can fail. Token IDs and masks made from the raw text matched HF. The numerical, retrieval and repeat checks passed. Only this architecture/OS is qualified.
4
 
5
+ Timing: none of our other apps, such as benchmarks or tests, was running on the iPhone. App extensions such as widgets kept running and were not counted; personal apps were not stopped or changed. Caches were kept, not cleared. Never execute the h18p bundles on a Mac. See each variant/provenance/runtime-gate.json and runtime-summary.json.
ios-h18p/fp32-s128/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s128_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s128_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
ios-h18p/fp32-s512/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s512_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s512_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
ios-h18p/w8-fp32table-s128/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s128_r02.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s128_r02.h18p.aimodelc",
55
  "output_dtype": "float32"
ios-h18p/w8-fp32table-s512/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s512_r02.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s512_r02.h18p.aimodelc",
55
  "output_dtype": "float32"
ios/QUALIFICATION.md CHANGED
@@ -1,5 +1,5 @@
1
  # iOS AOT qualification — PASS
2
 
3
- FP32 and W8/FP32-table S128/S512 each passed35 HF cases per grid on iPhone17Pro/iPhone18,1, iOS27.0 build24A437, h18p, GPU-preferred MPSGraph/Metal. Control-first, raw-text token/mask checks, numerical/retrieval/repeat/negative gates all pass. Only this architecture/OS is qualified.
4
 
5
- Timing: iPhone idle under Round04 policy; personal widgets resident; caches retained. Caches were not cleared. Never execute these bundles on Mac. See each variant/provenance/runtime-gate.json and runtime-summary.json.
 
1
  # iOS AOT qualification — PASS
2
 
3
+ This file describes the h18p AOT bundles in ios-h18p/ (the copy in ios/ is the same file). FP32 and W8/FP32-table S128/S512 each passed with 35 HF texts per grid on an iPhone 17 Pro (iPhone18,1), iOS 27.0 build 24A437, h18p, GPU-preferred MPSGraph/Metal. For each of FP32 and W8/FP32-table, a first run of three texts at S128 passed before its S128 and S512 runs. In every one of these runs, the wrong-pairing control (the same vectors paired with the wrong texts) had to fail, and did. That shows the numerical check can fail. Token IDs and masks made from the raw text matched HF. The numerical, retrieval and repeat checks passed. Only this architecture/OS is qualified.
4
 
5
+ Timing: none of our other apps, such as benchmarks or tests, was running on the iPhone. App extensions such as widgets kept running and were not counted; personal apps were not stopped or changed. Caches were kept, not cleared. Never execute the h18p bundles on a Mac. See each variant/provenance/runtime-gate.json and runtime-summary.json.
ios/fp32-s128/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s128_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s128_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
ios/fp32-s512/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s512_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "fp32",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-fp32/models/granite97m_fp32_s512_bound.h18p.aimodelc",
55
  "output_dtype": "float32"
ios/w8-fp32table-s128/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s128_r02.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s128_r02.h18p.aimodelc",
55
  "output_dtype": "float32"
ios/w8-fp32table-s512/provenance/runtime-summary.json CHANGED
@@ -49,7 +49,7 @@
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
- "timing_environment": "iPhone idle under Round04 policy; personal widgets resident; caches retained",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s512_r02.h18p.aimodelc",
55
  "output_dtype": "float32"
 
49
  "architecture": "h18p",
50
  "app_build": "2026091902",
51
  "variant": "w8-fp32table",
52
+ "timing_environment": "none of our other apps, such as benchmarks or tests, was running on the iPhone; app extensions such as widgets kept running and were not counted; personal apps were not stopped or changed; caches were kept, not cleared",
53
  "aot_detection": "h18p .aimodelc; main-h18p.mlirb present; portable main.mlirb absent; automatic AIModel loader",
54
  "artifact": "r04-compact/models/granite97m_w8_fp32table_s512_r02.h18p.aimodelc",
55
  "output_dtype": "float32"