Sync with mlboydaisuke/Granite-Embedding-97M-Multilingual-R2-CoreAI at bb021203
Browse files- LICENSE-NOTE.md +1 -1
- README.md +74 -34
- candidates.json +0 -137
- index-runs/iphone17pro-h18p-fp32-s128-index.json +11 -0
- index-runs/iphone18pro-jit-fp32-s128-index.json +197 -0
- ios-h18p/QUALIFICATION.md +2 -2
- ios-h18p/fp32-s128/provenance/export-manifest.json +1 -1
- ios-h18p/fp32-s128/provenance/runtime-summary.json +1 -1
- ios-h18p/fp32-s512/provenance/export-manifest.json +1 -1
- ios-h18p/fp32-s512/provenance/runtime-summary.json +1 -1
- ios-h18p/w8-fp32table-s128/provenance/export-manifest.json +3 -3
- ios-h18p/w8-fp32table-s128/provenance/runtime-summary.json +1 -1
- ios-h18p/w8-fp32table-s512/provenance/export-manifest.json +3 -3
- ios-h18p/w8-fp32table-s512/provenance/runtime-summary.json +1 -1
- ios/QUALIFICATION.md +2 -2
- ios/fp32-s128/provenance/export-manifest.json +1 -1
- ios/fp32-s128/provenance/runtime-summary.json +1 -1
- ios/fp32-s512/provenance/export-manifest.json +1 -1
- ios/fp32-s512/provenance/runtime-summary.json +1 -1
- ios/w8-fp32table-s128/provenance/export-manifest.json +3 -3
- ios/w8-fp32table-s128/provenance/runtime-summary.json +1 -1
- ios/w8-fp32table-s512/provenance/export-manifest.json +3 -3
- ios/w8-fp32table-s512/provenance/runtime-summary.json +1 -1
- macos/fp32-s128/provenance/export-manifest.json +1 -1
- macos/fp32-s128/provenance/runtime-gate.json +1 -1
- macos/fp32-s512/provenance/export-manifest.json +1 -1
- macos/fp32-s512/provenance/runtime-gate.json +1 -1
- macos/w8-fp32table-s128/provenance/export-manifest.json +1 -1
- macos/w8-fp32table-s128/provenance/runtime-gate.json +4 -4
- macos/w8-fp32table-s512/provenance/export-manifest.json +1 -1
- macos/w8-fp32table-s512/provenance/runtime-gate.json +4 -4
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
|
|
|
|
| 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
|
@@ -29,6 +29,8 @@ This model has no row on [DeviceMark](https://devicemark.github.io/), the on-dev
|
|
| 29 |
|
| 30 |
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).
|
| 31 |
|
|
|
|
|
|
|
| 32 |
IBM's 97M-parameter **multilingual text embedder** — a ModernBERT encoder, 384-d CLS-pooled
|
| 33 |
unit vectors, Japanese and English among its languages — as a static `.aimodel` for macOS 27
|
| 34 |
and iOS 27, with bundles compiled ahead of time for the iPhone 17 Pro beside it.
|
|
@@ -41,7 +43,8 @@ is a parity instrument (35 texts, 4 queries, 12 documents), not a benchmark.
|
|
| 41 |
|
| 42 |
**This is an encoder, not a generator** — one forward over the right-padded grid returns one
|
| 43 |
unit vector. No autoregressive loop, no KV cache, no LM head. It runs as a plain `.aimodel`
|
| 44 |
-
through raw `AIModel.run` (like the vision encoders), not
|
|
|
|
| 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,9 +67,10 @@ S = 128 or 512 (export-time choice); batch = 1
|
|
| 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
|
| 68 |
-
space) → byte BPE with **`ignore_merges = true`** (a whole
|
| 69 |
-
wins; ` ક` is token 2999, not three). A BPE that ignores the flag
|
|
|
|
| 70 |
- Truncate the **body to S−2**, then wrap: `[CLS 179934] body… [SEP 179938]`, right-pad with
|
| 71 |
**PAD 179935** and mask 0. Truncating after adding the specials loses SEP; padding with 0 is a
|
| 72 |
different token. Both are silent.
|
|
@@ -93,10 +97,12 @@ hashing included. Measured 2026-09-19.
|
|
| 93 |
| w8 / fp32 table | 128 | 35/35 | 0.999410 | 5.67e-3 | 61 ms | 25.3 ms | 6.64 ms | 555 MB |
|
| 94 |
| w8 / fp32 table | 512 | 35/35 | 0.999410 | 5.67e-3 | 447 ms | 138.7 ms | 23.07 ms | 553 MB |
|
| 95 |
|
| 96 |
-
Each row matched 4/4 retrieval top-1s with 0 clear-pair flips and 0 repeat drift.
|
| 97 |
|
| 98 |
**Mac** (M4 Max, Mac16,9), macOS 27.0 build 26A428, the JIT `.aimodel`, GPU-preferred, fp32.
|
| 99 |
-
The
|
|
|
|
|
|
|
| 100 |
|
| 101 |
| S | Gate | Min cosine vs HF | Max \|err\| | Load | First after load | **Warm median** |
|
| 102 |
|---:|---|---:|---:|---:|---:|---:|
|
|
@@ -104,27 +110,44 @@ The driver refused to run while any foreign accelerator job was present; 105 war
|
|
| 104 |
| 512 | 35/35 | 0.99999999999887 | 2.98e-7 | 470 ms | 264 ms | **4.89 ms** |
|
| 105 |
|
| 106 |
The Mac h16c AOT twin also passed 70/70 (same numerics), but its timings were taken with another
|
| 107 |
-
|
| 108 |
only** (min cosine 0.999410, max |err| 5.67e-3, ranking exact); Mac GPU for w8 was not run.
|
| 109 |
|
| 110 |
**iPhone 18 Pro** (iPhone19,2, h19p), iOS 27.0 build **24A437**, the JIT `.aimodel` bundles in `ios/`
|
| 111 |
-
(the same files as `macos/`), loaded 2026-09-26 by the zoo's DecideGate app in its load-only mode,
|
| 112 |
GPU-preferred, without the increased-memory entitlement. Each first load was the first after a fresh
|
| 113 |
-
install of the app.
|
| 114 |
-
about the bundle's size into the app container, and the load after a relaunch reused it.
|
| 115 |
-
|
| 116 |
([knowledge/jit-distribution.md](https://github.com/john-rocky/coreai-model-zoo/blob/main/knowledge/jit-distribution.md)).
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
|
| 120 |
-
|
|
| 121 |
-
| `fp32-
|
| 122 |
-
| `
|
| 123 |
-
| `w8-fp32table-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
The fixed grid computes every position, so pick the smallest grid that covers the text: S=128
|
| 130 |
for queries and short notes, S=512 for passages. **fp32 is the default.** w8 is a storage
|
|
@@ -136,8 +159,8 @@ option only — 22% smaller, not faster here — because the 180,000×384 fp32 v
|
|
| 136 |
One gate at every stage, the oracle being official HF eager CPU fp32 (transformers 4.57.6):
|
| 137 |
per text cosine ≥ 0.999, max element error ≤ 0.02, L2-norm error ≤ 0.002; per query exact
|
| 138 |
top-1 over the 12 documents, retrieval-score error ≤ 0.01, and no inversion of any document
|
| 139 |
-
pair the oracle separates by ≥ 0.001; repeat drift ≤ 1e-6. A wrong-pairing
|
| 140 |
-
matched to the wrong text) must FAIL.
|
| 141 |
|
| 142 |
- **Authoring** (`gate_granite_authoring.py`): the re-authored graph against every one of the 13
|
| 143 |
saved hidden states, max |err| ≤ **1e-4** at fp32, both grids. Five mutations must trip it:
|
|
@@ -146,20 +169,33 @@ matched to the wrong text) must FAIL.
|
|
| 146 |
which is why the layer gate exists. Whole-model **fp16 fails** this layer gate on both grids.
|
| 147 |
- **Export**: the torch-exported, decomposed graph is gated before conversion, on both grids.
|
| 148 |
- **Runtime**: Mac CPU and GPU (JIT), Mac h16c AOT, iPhone h18p AOT — the tables above; iPhone 18 Pro
|
| 149 |
-
JIT: load and
|
|
|
|
| 150 |
- **w8**: the same gate at prepared, finalized and decomposed stages, 48 `lut_to_dense` ops
|
| 151 |
counted, palettes hashed; the iOS w8 export reuses the Mac palettes byte for byte.
|
| 152 |
|
| 153 |
[`models/granite-embedding-97m/gate-granite-embedding-97m.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/granite-embedding-97m/gate-granite-embedding-97m.json) in the zoo is the transcript: the eight runtime rows
|
| 154 |
(min cosine, max error, retrieval, timings, device/OS build), the tokenizer gate and the
|
| 155 |
authoring gate, each with the sha256 of the full record it summarizes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
## ⬇️ Bundle
|
| 158 |
|
| 159 |
-
This repo — one folder per variant, each
|
| 160 |
35 HF fixtures with ids, masks and embeddings — the parity test) and `provenance/` (export
|
| 161 |
-
manifest with per-file sha256, the runtime gate record). `
|
| 162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
|
| 164 |
| Folder | Platform | Format | Bundle | Bytes |
|
| 165 |
|---|---|---|---|---:|
|
|
@@ -195,7 +231,7 @@ the special tokens (losing SEP), applies its own BPE without `ignore_merges`, di
|
|
| 195 |
model. Running it today means: the Swift tokenizer from this repo's `host/` folder, a fixed
|
| 196 |
grid, `AIModel` on the platform's folder. Enrolling it needs a `textEmbedding` driver that takes
|
| 197 |
the pad id, a SEP-preserving truncation, a per-platform variant path and an AOT-aware loader —
|
| 198 |
-
|
| 199 |
|
| 200 |
## The port in one lesson: gate the layers, not just the vector
|
| 201 |
|
|
@@ -209,9 +245,13 @@ epsilon because the converter's `F.normalize` decomposition drops it.
|
|
| 209 |
|
| 210 |
## License and limits
|
| 211 |
|
| 212 |
-
Apache-2.0 at
|
| 213 |
`UPSTREAM_README.md` and a `LICENSE-NOTE.md` listing the changes (static graph, in-graph
|
| 214 |
-
pooling, optional w8 palettes, h18p compile). Not tested: phones other than the iPhone 17 Pro (
|
| 215 |
-
h18p
|
| 216 |
-
|
| 217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
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).
|
| 31 |
|
| 32 |
+
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).
|
| 33 |
+
|
| 34 |
IBM's 97M-parameter **multilingual text embedder** — a ModernBERT encoder, 384-d CLS-pooled
|
| 35 |
unit vectors, Japanese and English among its languages — as a static `.aimodel` for macOS 27
|
| 36 |
and iOS 27, with bundles compiled ahead of time for the iPhone 17 Pro beside it.
|
|
|
|
| 43 |
|
| 44 |
**This is an encoder, not a generator** — one forward over the right-padded grid returns one
|
| 45 |
unit vector. No autoregressive loop, no KV cache, no LM head. It runs as a plain `.aimodel`
|
| 46 |
+
through raw `AIModel.run` (like the vision encoders), not Apple's engine for language models
|
| 47 |
+
(its `coreai-sequential` and `coreai-pipelined` variants).
|
| 48 |
|
| 49 |
Architecture (`model_type: modernbert`): 12 layers, hidden 384, 12 heads × 32, GLU MLP 1536
|
| 50 |
(SiLU), vocabulary 180,000, biasless everything (attention, MLP, LayerNorm ε 1e-5). Global
|
|
|
|
| 67 |
the checkpoint. Raw whitespace is kept: sentence-transformers strips text before tokenizing,
|
| 68 |
the upstream README's `AutoTokenizer` path does not, and the two disagree on `" 東京駅から…\n"`.
|
| 69 |
The reference is the raw path.
|
| 70 |
+
- Tokenize with the checkpoint's `tokenizer.json` (in each variant folder's `tokenizer/`): regex
|
| 71 |
+
`Split(Isolated)` → `ByteLevel` (no prefix space) → byte BPE with **`ignore_merges = true`** (a whole
|
| 72 |
+
pre-token that is in the vocabulary wins; ` ક` is token 2999, not three). A BPE that ignores the flag
|
| 73 |
+
tokenizes differently.
|
| 74 |
- Truncate the **body to S−2**, then wrap: `[CLS 179934] body… [SEP 179938]`, right-pad with
|
| 75 |
**PAD 179935** and mask 0. Truncating after adding the specials loses SEP; padding with 0 is a
|
| 76 |
different token. Both are silent.
|
|
|
|
| 97 |
| w8 / fp32 table | 128 | 35/35 | 0.999410 | 5.67e-3 | 61 ms | 25.3 ms | 6.64 ms | 555 MB |
|
| 98 |
| w8 / fp32 table | 512 | 35/35 | 0.999410 | 5.67e-3 | 447 ms | 138.7 ms | 23.07 ms | 553 MB |
|
| 99 |
|
| 100 |
+
Each row matched 4/4 retrieval top-1s with 0 clear-pair flips (defined under Numerics gate) and 0 repeat drift.
|
| 101 |
|
| 102 |
**Mac** (M4 Max, Mac16,9), macOS 27.0 build 26A428, the JIT `.aimodel`, GPU-preferred, fp32.
|
| 103 |
+
The timing script recognized a few kinds of model job by their names and command lines and would not start
|
| 104 |
+
while one was running. It did not count other processes; running when it checked were GPU processes of other
|
| 105 |
+
apps, such as Chrome's, and two other jobs each using a full CPU core. 105 warm samples.
|
| 106 |
|
| 107 |
| S | Gate | Min cosine vs HF | Max \|err\| | Load | First after load | **Warm median** |
|
| 108 |
|---:|---|---:|---:|---:|---:|---:|
|
|
|
|
| 110 |
| 512 | 35/35 | 0.99999999999887 | 2.98e-7 | 470 ms | 264 ms | **4.89 ms** |
|
| 111 |
|
| 112 |
The Mac h16c AOT twin also passed 70/70 (same numerics), but its timings were taken with another
|
| 113 |
+
job's GPU evaluation running and are not reported. The w8 variant on Mac is gated on **CPU
|
| 114 |
only** (min cosine 0.999410, max |err| 5.67e-3, ranking exact); Mac GPU for w8 was not run.
|
| 115 |
|
| 116 |
**iPhone 18 Pro** (iPhone19,2, h19p), iOS 27.0 build **24A437**, the JIT `.aimodel` bundles in `ios/`
|
| 117 |
+
(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,
|
| 118 |
GPU-preferred, without the increased-memory entitlement. Each first load was the first after a fresh
|
| 119 |
+
install of the app. Each call is one run on all-zero inputs. Each first load wrote a specialization of
|
| 120 |
+
about the bundle's size into the app container, and the load after a relaunch reused it. Each value below
|
| 121 |
+
is one measurement
|
| 122 |
([knowledge/jit-distribution.md](https://github.com/john-rocky/coreai-model-zoo/blob/main/knowledge/jit-distribution.md)).
|
| 123 |
+
That page has every column but the last, which comes from the runs' own records (not published).
|
| 124 |
+
|
| 125 |
+
| JIT bundle in `ios/` | MB | first load | first call | load after relaunch | call after relaunch |
|
| 126 |
+
|---|---:|---:|---:|---:|---:|
|
| 127 |
+
| `fp32-s128/granite97m_fp32_s128_bound.aimodel` | 390 | 1.01 s | 619 ms | 0.26 s | 26 ms |
|
| 128 |
+
| `fp32-s512/granite97m_fp32_s512_bound.aimodel` | 390 | 0.40 s | 88 ms | 0.26 s | 120 ms |
|
| 129 |
+
| `w8-fp32table-s128/granite97m_w8_fp32table_s128.aimodel` | 305 | 0.63 s | 132 ms | 0.21 s | 20 ms |
|
| 130 |
+
| `w8-fp32table-s512/granite97m_w8_fp32table_s512.aimodel` | 306 | 0.33 s | 93 ms | 0.21 s | 29 ms |
|
| 131 |
+
|
| 132 |
+
The iPhone rows above (the iPhone 17 Pro) ran the `h18p` export, now in `ios-h18p/`. On the iPhone 18 Pro,
|
| 133 |
+
each JIT bundle in `ios/` was loaded and called after a fresh install, and again after a relaunch (the table
|
| 134 |
+
above). Each call returned a 384-value float32 embedding with no non-finite values. On 2026-10-09 the sample app
|
| 135 |
+
above also embedded 9,859 sentences from two books, The Adventures of Sherlock Holmes and The Hound of the
|
| 136 |
+
Baskervilles, on an iPhone 18 Pro (iOS 27.2, 24B5099f) with `ios/fp32-s128` at revision `fdb16fc6` (the same
|
| 137 |
+
bundle and tokenizer files as now), GPU preferred. First load 0.44 s, first call 612 ms, 4.91 ms per sentence
|
| 138 |
+
over the 9,859, one run. On 2026-09-20 (JST) the bundle now in `ios-h18p/fp32-s128` had embedded the same
|
| 139 |
+
9,859 sentences on the iPhone 17 Pro (iOS 27.0, 24A437): the corpus SHA-256 in that run's record (`3602b206…`)
|
| 140 |
+
is the part of the iPhone 18 Pro record's `key` before `@`. The two 9,859 × 384 matrices also have the same
|
| 141 |
+
SHA-256 (bit-identical). Records of both runs:
|
| 142 |
+
[`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)
|
| 143 |
+
and
|
| 144 |
+
[`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).
|
| 145 |
+
The iPhone 18 Pro record holds one query, 22.0 ms, run right after the index was built; the 16.5 ms per query
|
| 146 |
+
above is the median of 10 queries in a later launch. The iPhone 17 Pro record, written by another app, holds
|
| 147 |
+
only index metadata; that run's bundle, device, OS, date and thermal state come from its log and the app's
|
| 148 |
+
payload manifest, which are not published. The two per-sentence times, 8.27 ms on the iPhone 17 Pro and
|
| 149 |
+
4.91 ms on the iPhone 18 Pro, come from different apps and are not comparable. The iPhone 17 Pro warmed from
|
| 150 |
+
fair to serious during the 2026-09-20 index run.
|
| 151 |
|
| 152 |
The fixed grid computes every position, so pick the smallest grid that covers the text: S=128
|
| 153 |
for queries and short notes, S=512 for passages. **fp32 is the default.** w8 is a storage
|
|
|
|
| 159 |
One gate at every stage, the oracle being official HF eager CPU fp32 (transformers 4.57.6):
|
| 160 |
per text cosine ≥ 0.999, max element error ≤ 0.02, L2-norm error ≤ 0.002; per query exact
|
| 161 |
top-1 over the 12 documents, retrieval-score error ≤ 0.01, and no inversion of any document
|
| 162 |
+
pair the oracle separates by ≥ 0.001 (a clear-pair flip); repeat drift ≤ 1e-6. A wrong-pairing
|
| 163 |
+
control (every vector matched to the wrong text) must FAIL.
|
| 164 |
|
| 165 |
- **Authoring** (`gate_granite_authoring.py`): the re-authored graph against every one of the 13
|
| 166 |
saved hidden states, max |err| ≤ **1e-4** at fp32, both grids. Five mutations must trip it:
|
|
|
|
| 169 |
which is why the layer gate exists. Whole-model **fp16 fails** this layer gate on both grids.
|
| 170 |
- **Export**: the torch-exported, decomposed graph is gated before conversion, on both grids.
|
| 171 |
- **Runtime**: Mac CPU and GPU (JIT), Mac h16c AOT, iPhone h18p AOT — the tables above; iPhone 18 Pro
|
| 172 |
+
JIT: not gated (a load and a zero-input call per bundle after a fresh install and again after a relaunch,
|
| 173 |
+
plus the 9,859-sentence run of `ios/fp32-s128`).
|
| 174 |
- **w8**: the same gate at prepared, finalized and decomposed stages, 48 `lut_to_dense` ops
|
| 175 |
counted, palettes hashed; the iOS w8 export reuses the Mac palettes byte for byte.
|
| 176 |
|
| 177 |
[`models/granite-embedding-97m/gate-granite-embedding-97m.json`](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/granite-embedding-97m/gate-granite-embedding-97m.json) in the zoo is the transcript: the eight runtime rows
|
| 178 |
(min cosine, max error, retrieval, timings, device/OS build), the tokenizer gate and the
|
| 179 |
authoring gate, each with the sha256 of the full record it summarizes.
|
| 180 |
+
Where the transcript quotes a record in this repo, the sha256 it gives is that of the file at revision `21db5168`.
|
| 181 |
+
Since then, the only change inside the records the transcript quotes is that a commit replaced absolute local
|
| 182 |
+
paths in some of them.
|
| 183 |
+
So a record that commit changed has a different sha256 in its current version.
|
| 184 |
|
| 185 |
## ⬇️ Bundle
|
| 186 |
|
| 187 |
+
This repo — one folder per variant, each holding the bundle, `tokenizer/`, `reference.json` (the
|
| 188 |
35 HF fixtures with ids, masks and embeddings — the parity test) and `provenance/` (export
|
| 189 |
+
manifest with per-file sha256, the runtime gate record). In `macos/` and `ios-h18p/` these records
|
| 190 |
+
describe the bundle in the same folder. In `ios/` they do not: the files in `ios/<variant>/provenance/` and
|
| 191 |
+
`ios/QUALIFICATION.md` are the same files as in `ios-h18p/`. They record the `h18p` AOT bundles that `ios/`
|
| 192 |
+
held before, not the JIT bundles it holds now; so do the gate transcript's iPhone rows, which name
|
| 193 |
+
`ios/<variant>`. An `ios/` bundle is byte-identical to the `macos/` bundle of the same variant, so its
|
| 194 |
+
per-file sha256 values are in `macos/<variant>/provenance/export-manifest.json`.
|
| 195 |
+
`coreai-kit.json` at the root maps platform → folder. CoreAIKit does not read it from the repo yet, and this
|
| 196 |
+
model is not in the kit catalog, so the file matters only if you pick a folder from it yourself.
|
| 197 |
+
The file's iOS entries point only at the `h18p` bundles in `ios-h18p/`, which only h18p iPhones accept
|
| 198 |
+
(the iPhone 18 Pro refuses them). Until those entries change, use `ios/` directly, as the sample app does.
|
| 199 |
|
| 200 |
| Folder | Platform | Format | Bundle | Bytes |
|
| 201 |
|---|---|---|---|---:|
|
|
|
|
| 231 |
model. Running it today means: the Swift tokenizer from this repo's `host/` folder, a fixed
|
| 232 |
grid, `AIModel` on the platform's folder. Enrolling it needs a `textEmbedding` driver that takes
|
| 233 |
the pad id, a SEP-preserving truncation, a per-platform variant path and an AOT-aware loader —
|
| 234 |
+
[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.
|
| 235 |
|
| 236 |
## The port in one lesson: gate the layers, not just the vector
|
| 237 |
|
|
|
|
| 245 |
|
| 246 |
## License and limits
|
| 247 |
|
| 248 |
+
Apache-2.0 at upstream revision `835ad1408…`; this repo carries IBM's unmodified card as
|
| 249 |
`UPSTREAM_README.md` and a `LICENSE-NOTE.md` listing the changes (static graph, in-graph
|
| 250 |
+
pooling, optional w8 palettes, h18p compile). Not tested: phones other than the iPhone 17 Pro (which ran
|
| 251 |
+
the h18p bundles above) and the iPhone 18 Pro (only the JIT runs described above), iOS builds other than
|
| 252 |
+
24A437 (27.0) and 24B5099f (27.2), other macOS builds, the numerics gate for the JIT bundles on an iPhone,
|
| 253 |
+
the Mac GPU with w8, the Neural Engine with these bundles (when the published fp32 S=128 bundle is compiled
|
| 254 |
+
on a Mac with the Neural Engine preferred, it forms no Neural Engine region and falls back to the GPU; see the
|
| 255 |
+
[zoo card](https://github.com/john-rocky/coreai-model-zoo/blob/main/models/granite-embedding-97m/README.md)),
|
| 256 |
+
dynamic or batched shapes, S > 512, languages beyond the JA/EN fixtures, retrieval quality on a benchmark,
|
| 257 |
+
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
|
| 4 |
|
| 5 |
-
Timing: iPhone
|
|
|
|
| 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/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/ios-aot/granite97m_fp32_s128_bound.h18p.aimodelc",
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
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
|
| 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/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/ios-aot/granite97m_fp32_s512_bound.h18p.aimodelc",
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
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
|
| 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/export-manifest.json
CHANGED
|
@@ -52,14 +52,14 @@
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
-
"artifact": "/
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
-
"executable": "/
|
| 62 |
-
"prefix": "/
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
|
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
+
"artifact": "<work>/exports/ios-aot/granite97m_w8_fp32table_s128_r02.h18p.aimodelc",
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
+
"executable": "<work>/.venv-quant/bin/python",
|
| 62 |
+
"prefix": "<work>/.venv-quant",
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
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
|
| 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/export-manifest.json
CHANGED
|
@@ -52,14 +52,14 @@
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
-
"artifact": "/
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
-
"executable": "/
|
| 62 |
-
"prefix": "/
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
|
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
+
"artifact": "<work>/exports/ios-aot/granite97m_w8_fp32table_s512_r02.h18p.aimodelc",
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
+
"executable": "<work>/.venv-quant/bin/python",
|
| 62 |
+
"prefix": "<work>/.venv-quant",
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
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
|
| 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
|
| 4 |
|
| 5 |
-
Timing: iPhone
|
|
|
|
| 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/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/ios-aot/granite97m_fp32_s128_bound.h18p.aimodelc",
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
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
|
| 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/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/ios-aot/granite97m_fp32_s512_bound.h18p.aimodelc",
|
| 5 |
"intended_runtime": "ios",
|
| 6 |
"format": "AOT .aimodelc",
|
| 7 |
"aot": true,
|
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
|
| 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/export-manifest.json
CHANGED
|
@@ -52,14 +52,14 @@
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
-
"artifact": "/
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
-
"executable": "/
|
| 62 |
-
"prefix": "/
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
|
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
+
"artifact": "<work>/exports/ios-aot/granite97m_w8_fp32table_s128_r02.h18p.aimodelc",
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
+
"executable": "<work>/.venv-quant/bin/python",
|
| 62 |
+
"prefix": "<work>/.venv-quant",
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
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
|
| 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/export-manifest.json
CHANGED
|
@@ -52,14 +52,14 @@
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
-
"artifact": "/
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
-
"executable": "/
|
| 62 |
-
"prefix": "/
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
|
|
|
| 52 |
"compute_dtype": "float32"
|
| 53 |
},
|
| 54 |
"status": "PASS",
|
| 55 |
+
"artifact": "<work>/exports/ios-aot/granite97m_w8_fp32table_s512_r02.h18p.aimodelc",
|
| 56 |
"intended_runtime": "ios",
|
| 57 |
"format": "AOT .aimodelc",
|
| 58 |
"aot": true,
|
| 59 |
"environment": {
|
| 60 |
"python": "3.11.13 (main, Sep 2 2025, 14:10:56) [Clang 20.1.4 ]",
|
| 61 |
+
"executable": "<work>/.venv-quant/bin/python",
|
| 62 |
+
"prefix": "<work>/.venv-quant",
|
| 63 |
"versions": {
|
| 64 |
"coreai-core": "1.0.0b2",
|
| 65 |
"coreai-torch": "0.4.1",
|
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
|
| 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"
|
macos/fp32-s128/provenance/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/macos/granite97m_fp32_s128_bound.aimodel",
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
macos/fp32-s128/provenance/runtime-gate.json
CHANGED
|
@@ -631,7 +631,7 @@
|
|
| 631 |
"gpu",
|
| 632 |
"neuralEngine"
|
| 633 |
],
|
| 634 |
-
"artifact": "/
|
| 635 |
"artifact_verification": "PASS",
|
| 636 |
"backend": "gpu_preferred",
|
| 637 |
"backend_observation": "GPU preference; actual per-op placement not exposed by this runner",
|
|
|
|
| 631 |
"gpu",
|
| 632 |
"neuralEngine"
|
| 633 |
],
|
| 634 |
+
"artifact": "<work>/exports/macos/granite97m_fp32_s128_bound.aimodel",
|
| 635 |
"artifact_verification": "PASS",
|
| 636 |
"backend": "gpu_preferred",
|
| 637 |
"backend_observation": "GPU preference; actual per-op placement not exposed by this runner",
|
macos/fp32-s512/provenance/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/macos/granite97m_fp32_s512_bound.aimodel",
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
macos/fp32-s512/provenance/runtime-gate.json
CHANGED
|
@@ -631,7 +631,7 @@
|
|
| 631 |
"gpu",
|
| 632 |
"neuralEngine"
|
| 633 |
],
|
| 634 |
-
"artifact": "/
|
| 635 |
"artifact_verification": "PASS",
|
| 636 |
"backend": "gpu_preferred",
|
| 637 |
"backend_observation": "GPU preference; actual per-op placement not exposed by this runner",
|
|
|
|
| 631 |
"gpu",
|
| 632 |
"neuralEngine"
|
| 633 |
],
|
| 634 |
+
"artifact": "<work>/exports/macos/granite97m_fp32_s512_bound.aimodel",
|
| 635 |
"artifact_verification": "PASS",
|
| 636 |
"backend": "gpu_preferred",
|
| 637 |
"backend_observation": "GPU preference; actual per-op placement not exposed by this runner",
|
macos/w8-fp32table-s128/provenance/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/macos/granite97m_w8_fp32table_s128.aimodel",
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
macos/w8-fp32table-s128/provenance/runtime-gate.json
CHANGED
|
@@ -630,7 +630,7 @@
|
|
| 630 |
"allowed_compute_units": [
|
| 631 |
"cpu"
|
| 632 |
],
|
| 633 |
-
"artifact": "/
|
| 634 |
"artifact_files": [
|
| 635 |
{
|
| 636 |
"bytes": 32,
|
|
@@ -9991,7 +9991,7 @@
|
|
| 9991 |
"preprocessing_verified_fixture_count": 35,
|
| 9992 |
"requested_backend": "cpuOnly",
|
| 9993 |
"runner": "GraniteBorrowedCPU",
|
| 9994 |
-
"runner_binary_path": "/
|
| 9995 |
"runner_binary_sha256": "7010b3927ab065cd28f45a82b5e5a495d20977d0697090fe538d26c87eff3982",
|
| 9996 |
"runner_schema_version": 2,
|
| 9997 |
"runner_source_sha256": "6cb8246cfffc7ab76f065ff963a23064091ac0994255ab83e534ad19728822db",
|
|
@@ -10002,12 +10002,12 @@
|
|
| 10002 |
"tokenizer_config_sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 10003 |
"tokenizer_files": [
|
| 10004 |
{
|
| 10005 |
-
"path": "/
|
| 10006 |
"sha256": "4f2842d568e2724370aec203652a42ac783c7937f8347a1a2cc7506d71f1582f",
|
| 10007 |
"size_bytes": 25301672
|
| 10008 |
},
|
| 10009 |
{
|
| 10010 |
-
"path": "/
|
| 10011 |
"sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 10012 |
"size_bytes": 12860
|
| 10013 |
}
|
|
|
|
| 630 |
"allowed_compute_units": [
|
| 631 |
"cpu"
|
| 632 |
],
|
| 633 |
+
"artifact": "<work>/exports/macos/granite97m_w8_fp32table_s128.aimodel",
|
| 634 |
"artifact_files": [
|
| 635 |
{
|
| 636 |
"bytes": 32,
|
|
|
|
| 9991 |
"preprocessing_verified_fixture_count": 35,
|
| 9992 |
"requested_backend": "cpuOnly",
|
| 9993 |
"runner": "GraniteBorrowedCPU",
|
| 9994 |
+
"runner_binary_path": "<work>/bin/rawtext_cpu_runner",
|
| 9995 |
"runner_binary_sha256": "7010b3927ab065cd28f45a82b5e5a495d20977d0697090fe538d26c87eff3982",
|
| 9996 |
"runner_schema_version": 2,
|
| 9997 |
"runner_source_sha256": "6cb8246cfffc7ab76f065ff963a23064091ac0994255ab83e534ad19728822db",
|
|
|
|
| 10002 |
"tokenizer_config_sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 10003 |
"tokenizer_files": [
|
| 10004 |
{
|
| 10005 |
+
"path": "<work>/model/source/tokenizer.json",
|
| 10006 |
"sha256": "4f2842d568e2724370aec203652a42ac783c7937f8347a1a2cc7506d71f1582f",
|
| 10007 |
"size_bytes": 25301672
|
| 10008 |
},
|
| 10009 |
{
|
| 10010 |
+
"path": "<work>/model/source/tokenizer_config.json",
|
| 10011 |
"sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 10012 |
"size_bytes": 12860
|
| 10013 |
}
|
macos/w8-fp32table-s512/provenance/export-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
-
"artifact": "/
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
|
|
|
| 1 |
{
|
| 2 |
"status": "PASS",
|
| 3 |
"model_sha": "835ad14087e140460703cf0fae09f97d469d65c2",
|
| 4 |
+
"artifact": "<work>/exports/macos/granite97m_w8_fp32table_s512.aimodel",
|
| 5 |
"intended_runtime": "macos",
|
| 6 |
"format": "portable .aimodel source IR",
|
| 7 |
"aot": false,
|
macos/w8-fp32table-s512/provenance/runtime-gate.json
CHANGED
|
@@ -630,7 +630,7 @@
|
|
| 630 |
"allowed_compute_units": [
|
| 631 |
"cpu"
|
| 632 |
],
|
| 633 |
-
"artifact": "/
|
| 634 |
"artifact_files": [
|
| 635 |
{
|
| 636 |
"bytes": 32,
|
|
@@ -36871,7 +36871,7 @@
|
|
| 36871 |
"preprocessing_verified_fixture_count": 35,
|
| 36872 |
"requested_backend": "cpuOnly",
|
| 36873 |
"runner": "GraniteBorrowedCPU",
|
| 36874 |
-
"runner_binary_path": "/
|
| 36875 |
"runner_binary_sha256": "7010b3927ab065cd28f45a82b5e5a495d20977d0697090fe538d26c87eff3982",
|
| 36876 |
"runner_schema_version": 2,
|
| 36877 |
"runner_source_sha256": "6cb8246cfffc7ab76f065ff963a23064091ac0994255ab83e534ad19728822db",
|
|
@@ -36882,12 +36882,12 @@
|
|
| 36882 |
"tokenizer_config_sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 36883 |
"tokenizer_files": [
|
| 36884 |
{
|
| 36885 |
-
"path": "/
|
| 36886 |
"sha256": "4f2842d568e2724370aec203652a42ac783c7937f8347a1a2cc7506d71f1582f",
|
| 36887 |
"size_bytes": 25301672
|
| 36888 |
},
|
| 36889 |
{
|
| 36890 |
-
"path": "/
|
| 36891 |
"sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 36892 |
"size_bytes": 12860
|
| 36893 |
}
|
|
|
|
| 630 |
"allowed_compute_units": [
|
| 631 |
"cpu"
|
| 632 |
],
|
| 633 |
+
"artifact": "<work>/exports/macos/granite97m_w8_fp32table_s512.aimodel",
|
| 634 |
"artifact_files": [
|
| 635 |
{
|
| 636 |
"bytes": 32,
|
|
|
|
| 36871 |
"preprocessing_verified_fixture_count": 35,
|
| 36872 |
"requested_backend": "cpuOnly",
|
| 36873 |
"runner": "GraniteBorrowedCPU",
|
| 36874 |
+
"runner_binary_path": "<work>/bin/rawtext_cpu_runner",
|
| 36875 |
"runner_binary_sha256": "7010b3927ab065cd28f45a82b5e5a495d20977d0697090fe538d26c87eff3982",
|
| 36876 |
"runner_schema_version": 2,
|
| 36877 |
"runner_source_sha256": "6cb8246cfffc7ab76f065ff963a23064091ac0994255ab83e534ad19728822db",
|
|
|
|
| 36882 |
"tokenizer_config_sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 36883 |
"tokenizer_files": [
|
| 36884 |
{
|
| 36885 |
+
"path": "<work>/model/source/tokenizer.json",
|
| 36886 |
"sha256": "4f2842d568e2724370aec203652a42ac783c7937f8347a1a2cc7506d71f1582f",
|
| 36887 |
"size_bytes": 25301672
|
| 36888 |
},
|
| 36889 |
{
|
| 36890 |
+
"path": "<work>/model/source/tokenizer_config.json",
|
| 36891 |
"sha256": "6ed69389e30a8ecabfce2f9ebcdf0c908b34056f24d994340f2f216521c057d5",
|
| 36892 |
"size_bytes": 12860
|
| 36893 |
}
|