Fix provenance and publish reproducible LFM2.5 conversion recipe
Browse filesCorrect coreai-model-zoo attribution to the public community repository, pin the public exporter/runtime inputs, reduce the required patch set to the two patches this graph uses, scope performance to the published evidence, remove leaked local paths from bundle metadata, and add the exact 2.6B conversion wrapper and gates.
- README.md +66 -45
- RECIPE.md +45 -19
- aimodelc-h16c/metadata.json +3 -3
- lfm2.5-2.6b-coreai-conversion-e0e375b.tar.gz +3 -0
- metadata.json +3 -3
README.md
CHANGED
|
@@ -33,48 +33,56 @@ tags:
|
|
| 33 |
- liquid
|
| 34 |
- edge
|
| 35 |
- int8
|
| 36 |
-
-
|
| 37 |
---
|
| 38 |
|
| 39 |
-
# LFM2.5-2.6B — Core AI (int8)
|
| 40 |
|
| 41 |
An int8 Core AI conversion of **[LiquidAI/LFM2.5-2.6B](https://huggingface.co/LiquidAI/LFM2.5-2.6B)**
|
| 42 |
for Apple silicon. This repository contains no trained weights of its own: it is a quantized
|
| 43 |
format conversion of Liquid AI's model, and all model credit belongs to **Liquid AI**.
|
| 44 |
|
| 45 |
-
> **
|
| 46 |
-
>
|
| 47 |
-
>
|
| 48 |
-
>
|
| 49 |
-
>
|
| 50 |
|
| 51 |
Converted from source revision `dca1825886789bd40b94368f53b1d9ada4c94598`. Both upstream
|
| 52 |
safetensors shards were SHA-256 verified against that revision before conversion.
|
| 53 |
|
| 54 |
-
##
|
| 55 |
|
| 56 |
-
|
| 57 |
-
|
|
|
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
`coreai-pipelined-per-token-inputs`, `-static-inputs`, `-extra-states`,
|
| 62 |
-
`coreai-prefix-cache` and `coreai-shared-product`.
|
| 63 |
-
- Re-exporting additionally needs that repository's LFM2 **overlay**, which is what teaches the
|
| 64 |
-
converter this architecture at all.
|
| 65 |
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
-
|
| 72 |
-
|
| 73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
| 78 |
|
| 79 |
## Which file do I want?
|
| 80 |
|
|
@@ -105,6 +113,7 @@ Full SHA-256 of each file as published.
|
|
| 105 |
| `aimodelc-h16c/…h16c.aimodelc/…/resources.bin` | 3468949676 | `793907c101a01331ffa72aff7c9db5049c89a02ea03acee3174513a93c394e22` | same weights, AOT compiled | **`h16c` only** | faster cold load |
|
| 106 |
| `aimodelc-h16c/…h16c.aimodelc/…/original_model_0.mpsgraph` | 363905 | `74a24870a8853bf797a6f12f40e7fcb988de014d98166da772b24cab643d5d4f` | compiled graph | `h16c` only | part of the above |
|
| 107 |
| `tokenizer/tokenizer.json` | 17905598 | `695be7802a0e4b8a81048f0ff5ebb7fc811a0ba5a6be63dbb24deb5a81096f41` | upstream, unmodified | — | required |
|
|
|
|
| 108 |
|
| 109 |
- **The two `tokenizer/tokenizer.json` copies are byte-identical** (same hash above). The one
|
| 110 |
under `aimodelc-h16c/tokenizer/` is a **convenience copy**; you do not need both.
|
|
@@ -132,24 +141,19 @@ ordering — do not read the embedding row's 123 as "better". int4 is excluded o
|
|
| 132 |
size: a minimum cosine of 0.51–0.80 is a different model. **Rejected variants are documented and
|
| 133 |
deliberately not uploaded.** Full detail in [`RECIPE.md`](RECIPE.md).
|
| 134 |
|
| 135 |
-
## Performance
|
| 136 |
|
| 137 |
Decode here is **memory-bandwidth bound** — throughput tracks bytes read per token.
|
| 138 |
|
| 139 |
| Measurement | Protocol | Result |
|
| 140 |
| --- | --- | --- |
|
| 141 |
-
|
|
| 142 |
-
|
|
| 143 |
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
to competing memory traffic is the obvious candidate, but the machine never went quiet again
|
| 149 |
-
during the session, so it was never isolated and another regression cannot be ruled out.
|
| 150 |
-
|
| 151 |
-
Treat 138 as what this recipe has done on an idle M4 Max and 108 as what it did under the stated
|
| 152 |
-
load, and **measure on your own hardware rather than trusting either.**
|
| 153 |
|
| 154 |
For reference, on the same Mac, MLX reported ~100 tok/s at 8-bit and ~60 tok/s at BF16. Those
|
| 155 |
were throughput-only observations; MLX quality was not measured, so no quality comparison against
|
|
@@ -166,11 +170,14 @@ variants are in **[`RECIPE.md`](RECIPE.md)**. Summary:
|
|
| 166 |
Source model : LiquidAI/LFM2.5-2.6B @ dca1825886789bd40b94368f53b1d9ada4c94598 (public)
|
| 167 |
Converter : github.com/apple/coreai-models @ b1cb71b8522d99408059fa0b98b8742171bcb0b8 (public)
|
| 168 |
Runtime : github.com/apple/coreai-models @ 5ed9981303b38d5a44aa6b45509bc4f6945029f5 (public)
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
|
|
|
|
|
|
| 172 |
Toolchain : macOS 27.0 (26A5388g), Xcode 27.0 (27A5228h), Python 3.11.15,
|
| 173 |
-
torch 2.9.0,
|
|
|
|
| 174 |
```
|
| 175 |
|
| 176 |
**Verify a rebuild by the gates and the storage budget, not by hashing.** The exporter names each
|
|
@@ -194,6 +201,15 @@ With a runtime built as described above, the asset is driven as a pipelined Core
|
|
| 194 |
model with `COREAI_CHUNK_THRESHOLD=1`, greedy decoding, using the model's own chat template at
|
| 195 |
`tokenizer/chat_template.jinja`. Operational notes:
|
| 196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
- **macOS 27.0+** on **Apple silicon**. Validated on M4 Max.
|
| 198 |
- Runs on the **GPU** via an `MPSGraph` delegate. This is **not** an ANE asset: the KV dimension
|
| 199 |
is dynamic, and `--preferred-compute` does not change the emitted delegate.
|
|
@@ -219,7 +235,8 @@ Four **separate** questions, not interchangeable:
|
|
| 219 |
|
| 220 |
## Limitations and negative results
|
| 221 |
|
| 222 |
-
-
|
|
|
|
| 223 |
- No task-benchmark evaluation; quality is a 125-position regression probe.
|
| 224 |
- Multilingual support is inherited from upstream and was **not** re-verified per language; the
|
| 225 |
probe is English.
|
|
@@ -240,6 +257,10 @@ upstream license, and claims **no authorship of the model**.
|
|
| 240 |
[here](https://huggingface.co/LiquidAI/LFM2.5-2.6B/blob/dca1825886789bd40b94368f53b1d9ada4c94598/LICENSE),
|
| 241 |
included verbatim as [`LICENSE.upstream`](LICENSE.upstream). Your use of these weights is
|
| 242 |
governed by it.
|
| 243 |
-
-
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
- This repository contributes the conversion recipe, the gates, and the measurements.
|
|
|
|
| 33 |
- liquid
|
| 34 |
- edge
|
| 35 |
- int8
|
| 36 |
+
- community-model-zoo
|
| 37 |
---
|
| 38 |
|
| 39 |
+
# LFM2.5-2.6B — Core AI (int8)
|
| 40 |
|
| 41 |
An int8 Core AI conversion of **[LiquidAI/LFM2.5-2.6B](https://huggingface.co/LiquidAI/LFM2.5-2.6B)**
|
| 42 |
for Apple silicon. This repository contains no trained weights of its own: it is a quantized
|
| 43 |
format conversion of Liquid AI's model, and all model credit belongs to **Liquid AI**.
|
| 44 |
|
| 45 |
+
> **Runtime status:** runnable with public tooling, but not with an unmodified
|
| 46 |
+
> `apple/coreai-models` checkout. LFM's fixed-shape convolution state requires two patches from
|
| 47 |
+
> the public, community-maintained
|
| 48 |
+
> [`john-rocky/coreai-model-zoo`](https://github.com/john-rocky/coreai-model-zoo). Exact public
|
| 49 |
+
> commits and commands are below.
|
| 50 |
|
| 51 |
Converted from source revision `dca1825886789bd40b94368f53b1d9ada4c94598`. Both upstream
|
| 52 |
safetensors shards were SHA-256 verified against that revision before conversion.
|
| 53 |
|
| 54 |
+
## Runtime requirements
|
| 55 |
|
| 56 |
+
This graph has the normal growing key/value cache plus one fixed-shape `conv_state`. The stock
|
| 57 |
+
pipelined engine handles only the KV pair. Apply these **two** public community patches—no
|
| 58 |
+
per-token-input, static-input, or prefix-cache patch is required for this model:
|
| 59 |
|
| 60 |
+
1. `apps/coreai-shared-product.patch`
|
| 61 |
+
2. `apps/coreai-pipelined-extra-states.patch`
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
+
Both come from
|
| 64 |
+
[`john-rocky/coreai-model-zoo@95a29d41`](https://github.com/john-rocky/coreai-model-zoo/tree/95a29d41affed3bdf3ea5992ece094a908e21a04),
|
| 65 |
+
a public community repository maintained by Daisuke Majima (`john-rocky`). It is not an Apple
|
| 66 |
+
repository. The patches target Apple's public
|
| 67 |
+
[`coreai-models`](https://github.com/apple/coreai-models) runtime at
|
| 68 |
+
`5ed9981303b38d5a44aa6b45509bc4f6945029f5`.
|
| 69 |
|
| 70 |
+
```bash
|
| 71 |
+
git clone https://github.com/apple/coreai-models.git
|
| 72 |
+
git -C coreai-models checkout 5ed9981303b38d5a44aa6b45509bc4f6945029f5
|
| 73 |
+
|
| 74 |
+
git clone https://github.com/john-rocky/coreai-model-zoo.git
|
| 75 |
+
git -C coreai-model-zoo checkout 95a29d41affed3bdf3ea5992ece094a908e21a04
|
| 76 |
+
|
| 77 |
+
git -C coreai-models apply ../coreai-model-zoo/apps/coreai-shared-product.patch
|
| 78 |
+
git -C coreai-models apply ../coreai-model-zoo/apps/coreai-pipelined-extra-states.patch
|
| 79 |
+
swift build --package-path coreai-models -c release --product llm-runner
|
| 80 |
+
```
|
| 81 |
|
| 82 |
+
The public community zoo also supplies the LFM2 exporter and its `coreai-models` overlay. The
|
| 83 |
+
small toolkit published here contains the 2.6B-specific wrapper, tokenizer/config corrections,
|
| 84 |
+
quality gates, and locked Python environment used for this artifact. Full reproduction details
|
| 85 |
+
are in [`RECIPE.md`](RECIPE.md).
|
| 86 |
|
| 87 |
## Which file do I want?
|
| 88 |
|
|
|
|
| 113 |
| `aimodelc-h16c/…h16c.aimodelc/…/resources.bin` | 3468949676 | `793907c101a01331ffa72aff7c9db5049c89a02ea03acee3174513a93c394e22` | same weights, AOT compiled | **`h16c` only** | faster cold load |
|
| 114 |
| `aimodelc-h16c/…h16c.aimodelc/…/original_model_0.mpsgraph` | 363905 | `74a24870a8853bf797a6f12f40e7fcb988de014d98166da772b24cab643d5d4f` | compiled graph | `h16c` only | part of the above |
|
| 115 |
| `tokenizer/tokenizer.json` | 17905598 | `695be7802a0e4b8a81048f0ff5ebb7fc811a0ba5a6be63dbb24deb5a81096f41` | upstream, unmodified | — | required |
|
| 116 |
+
| `lfm2.5-2.6b-coreai-conversion-e0e375b.tar.gz` | 57118 | `665285044be7c0171e1b737167b9892f2799bc2e01e3c5441212887903456f2d` | exact wrapper + gates at local conversion commit `e0e375b` | — | reproduction |
|
| 117 |
|
| 118 |
- **The two `tokenizer/tokenizer.json` copies are byte-identical** (same hash above). The one
|
| 119 |
under `aimodelc-h16c/tokenizer/` is a **convenience copy**; you do not need both.
|
|
|
|
| 141 |
size: a minimum cosine of 0.51–0.80 is a different model. **Rejected variants are documented and
|
| 142 |
deliberately not uploaded.** Full detail in [`RECIPE.md`](RECIPE.md).
|
| 143 |
|
| 144 |
+
## Performance
|
| 145 |
|
| 146 |
Decode here is **memory-bandwidth bound** — throughput tracks bytes read per token.
|
| 147 |
|
| 148 |
| Measurement | Protocol | Result |
|
| 149 |
| --- | --- | --- |
|
| 150 |
+
| This published artifact | 128 prompt tokens, 256 generated, greedy, 5 trials, M4 Max | **107.98 decode tok/s**, sd 0.500; **111.86 prompt tok/s** |
|
| 151 |
+
| Earlier development build of the same recipe | separate runs on the same M4 Max | 138.15 decode tok/s |
|
| 152 |
|
| 153 |
+
Only **107.98 tok/s** is attached to the published artifact in `evidence/benchmark.json`. The
|
| 154 |
+
earlier 138.15 result was not reproduced after publication, so it is retained as historical
|
| 155 |
+
context rather than advertised as this download's performance. The workload is
|
| 156 |
+
memory-bandwidth-bound and was measured while the machine was busy; measure on your own hardware.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
|
| 158 |
For reference, on the same Mac, MLX reported ~100 tok/s at 8-bit and ~60 tok/s at BF16. Those
|
| 159 |
were throughput-only observations; MLX quality was not measured, so no quality comparison against
|
|
|
|
| 170 |
Source model : LiquidAI/LFM2.5-2.6B @ dca1825886789bd40b94368f53b1d9ada4c94598 (public)
|
| 171 |
Converter : github.com/apple/coreai-models @ b1cb71b8522d99408059fa0b98b8742171bcb0b8 (public)
|
| 172 |
Runtime : github.com/apple/coreai-models @ 5ed9981303b38d5a44aa6b45509bc4f6945029f5 (public)
|
| 173 |
+
Community LFM2 exporter, overlay and two runtime patches:
|
| 174 |
+
github.com/john-rocky/coreai-model-zoo
|
| 175 |
+
@ 95a29d41affed3bdf3ea5992ece094a908e21a04 (public)
|
| 176 |
+
2.6B wrapper : lfm2.5-2.6b-coreai-conversion-e0e375b.tar.gz
|
| 177 |
+
SHA-256 665285044be7c0171e1b737167b9892f2799bc2e01e3c5441212887903456f2d
|
| 178 |
Toolchain : macOS 27.0 (26A5388g), Xcode 27.0 (27A5228h), Python 3.11.15,
|
| 179 |
+
torch 2.9.0, coreai-core 1.0.0b2, coreai-torch 0.4.1,
|
| 180 |
+
coreai-opt 0.2.1, coremltools 9.0
|
| 181 |
```
|
| 182 |
|
| 183 |
**Verify a rebuild by the gates and the storage budget, not by hashing.** The exporter names each
|
|
|
|
| 201 |
model with `COREAI_CHUNK_THRESHOLD=1`, greedy decoding, using the model's own chat template at
|
| 202 |
`tokenizer/chat_template.jinja`. Operational notes:
|
| 203 |
|
| 204 |
+
```bash
|
| 205 |
+
COREAI_CHUNK_THRESHOLD=1 coreai-models/.build/release/llm-runner \
|
| 206 |
+
--model ./LFM2.5-2.6B-CoreAI \
|
| 207 |
+
--prompt "The capital of France is" \
|
| 208 |
+
--max-tokens 64 --temperature 0 \
|
| 209 |
+
--inference-engine-variant coreai-pipelined \
|
| 210 |
+
--warmup exact --warmup-length 1
|
| 211 |
+
```
|
| 212 |
+
|
| 213 |
- **macOS 27.0+** on **Apple silicon**. Validated on M4 Max.
|
| 214 |
- Runs on the **GPU** via an `MPSGraph` delegate. This is **not** an ANE asset: the KV dimension
|
| 215 |
is dynamic, and `--preferred-compute` does not change the emitted delegate.
|
|
|
|
| 235 |
|
| 236 |
## Limitations and negative results
|
| 237 |
|
| 238 |
+
- Requires the two public community runtime patches listed above; it does not run on an
|
| 239 |
+
unmodified `apple/coreai-models` runtime.
|
| 240 |
- No task-benchmark evaluation; quality is a 125-position regression probe.
|
| 241 |
- Multilingual support is inherited from upstream and was **not** re-verified per language; the
|
| 242 |
probe is English.
|
|
|
|
| 257 |
[here](https://huggingface.co/LiquidAI/LFM2.5-2.6B/blob/dca1825886789bd40b94368f53b1d9ada4c94598/LICENSE),
|
| 258 |
included verbatim as [`LICENSE.upstream`](LICENSE.upstream). Your use of these weights is
|
| 259 |
governed by it.
|
| 260 |
+
- Official Apple tooling: [`apple/coreai-models`](https://github.com/apple/coreai-models),
|
| 261 |
+
`coreai-core`, `coreai-torch`, and `coreai-opt`.
|
| 262 |
+
- Community conversion/runtime work: public
|
| 263 |
+
[`john-rocky/coreai-model-zoo`](https://github.com/john-rocky/coreai-model-zoo), maintained
|
| 264 |
+
by **Daisuke Majima**, under its BSD-3-Clause license. Its repository includes third-party
|
| 265 |
+
notices for portions derived from Apple's BSD-licensed `coreai-models` project.
|
| 266 |
- This repository contributes the conversion recipe, the gates, and the measurements.
|
RECIPE.md
CHANGED
|
@@ -1,37 +1,63 @@
|
|
| 1 |
# Conversion recipe
|
| 2 |
|
| 3 |
-
This document is the reproducibility record for the published asset.
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
redistribute code that is not mine or hand you something that cannot run. A precise
|
| 11 |
-
description is more useful than either.
|
| 12 |
|
| 13 |
## Prerequisites
|
| 14 |
|
| 15 |
| Component | Pin | Public? |
|
| 16 |
| --- | --- | --- |
|
| 17 |
| `LiquidAI/LFM2.5-2.6B` | `dca1825886789bd40b94368f53b1d9ada4c94598` | yes |
|
| 18 |
-
| `github.com/apple/coreai-models
|
| 19 |
-
| `github.com/apple/coreai-models
|
| 20 |
-
| `coreai-
|
| 21 |
-
|
|
|
|
|
| 22 |
|
| 23 |
Toolchain used: macOS 27.0 (build `26A5388g`), Xcode 27.0 (`27A5228h`), Python 3.11.15,
|
| 24 |
torch 2.9.0, coremltools 9.0.
|
| 25 |
|
| 26 |
-
The zoo is
|
| 27 |
|
| 28 |
- **Conversion** needs the zoo's overlay, because that overlay is what carries the LFM2
|
| 29 |
-
authoring module (`models/macos/lfm2.py`)
|
| 30 |
-
architecture.
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
`coreai-
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
## Quantization
|
| 37 |
|
|
|
|
| 1 |
# Conversion recipe
|
| 2 |
|
| 3 |
+
This document is the reproducibility record for the published asset. The conversion used
|
| 4 |
+
Apple's public `coreai-models` project, the public community-maintained
|
| 5 |
+
`john-rocky/coreai-model-zoo`, and the 2.6B-specific wrapper and gates shipped here as
|
| 6 |
+
`lfm2.5-2.6b-coreai-conversion-e0e375b.tar.gz`.
|
| 7 |
|
| 8 |
+
The toolkit contains only the wrapper, targeted configuration fixes, gates, and locked Python
|
| 9 |
+
environment from this conversion workspace. It does not vendor either upstream repository.
|
|
|
|
|
|
|
| 10 |
|
| 11 |
## Prerequisites
|
| 12 |
|
| 13 |
| Component | Pin | Public? |
|
| 14 |
| --- | --- | --- |
|
| 15 |
| `LiquidAI/LFM2.5-2.6B` | `dca1825886789bd40b94368f53b1d9ada4c94598` | yes |
|
| 16 |
+
| [`apple/coreai-models`](https://github.com/apple/coreai-models) (converter base) | `b1cb71b8522d99408059fa0b98b8742171bcb0b8` | yes, official Apple |
|
| 17 |
+
| [`apple/coreai-models`](https://github.com/apple/coreai-models) (runtime base) | `5ed9981303b38d5a44aa6b45509bc4f6945029f5` | yes, official Apple |
|
| 18 |
+
| [`john-rocky/coreai-model-zoo`](https://github.com/john-rocky/coreai-model-zoo) — LFM2 exporter/overlay and runtime patches | `95a29d41affed3bdf3ea5992ece094a908e21a04` | yes, community-maintained |
|
| 19 |
+
| 2.6B conversion toolkit in this repository | `e0e375b`; SHA-256 `665285044be7c0171e1b737167b9892f2799bc2e01e3c5441212887903456f2d` | yes |
|
| 20 |
+
| `coreai-core` / `coreai-torch` / `coreai-opt` | `1.0.0b2` / `0.4.1` / `0.2.1` | yes |
|
| 21 |
|
| 22 |
Toolchain used: macOS 27.0 (build `26A5388g`), Xcode 27.0 (`27A5228h`), Python 3.11.15,
|
| 23 |
torch 2.9.0, coremltools 9.0.
|
| 24 |
|
| 25 |
+
The public community zoo is required in both directions:
|
| 26 |
|
| 27 |
- **Conversion** needs the zoo's overlay, because that overlay is what carries the LFM2
|
| 28 |
+
authoring module (`models/macos/lfm2.py`)—Apple's converter base alone does not know this
|
| 29 |
+
architecture. The shipped wrapper additionally fixes the nested LFM2.5 RoPE configuration,
|
| 30 |
+
local-checkpoint loading, tokenizer staging, and the measured attention-precision choice.
|
| 31 |
+
- **Inference** needs exactly two zoo patches:
|
| 32 |
+
`apps/coreai-shared-product.patch` followed by
|
| 33 |
+
`apps/coreai-pipelined-extra-states.patch`. The extra-state patch carries LFM's fixed-shape
|
| 34 |
+
convolution state beside the growing KV pair. This model does not require the zoo's
|
| 35 |
+
per-token-input, static-input, or prefix-cache patches.
|
| 36 |
+
|
| 37 |
+
### Recreate the converter workspace
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
tar -xzf lfm2.5-2.6b-coreai-conversion-e0e375b.tar.gz
|
| 41 |
+
cd lfm2.5-2.6b-coreai-conversion-e0e375b
|
| 42 |
+
|
| 43 |
+
git clone https://github.com/apple/coreai-models.git /path/to/coreai-models
|
| 44 |
+
git -C /path/to/coreai-models checkout b1cb71b8522d99408059fa0b98b8742171bcb0b8
|
| 45 |
+
|
| 46 |
+
git clone https://github.com/john-rocky/coreai-model-zoo.git /path/to/coreai-model-zoo
|
| 47 |
+
git -C /path/to/coreai-model-zoo checkout 95a29d41affed3bdf3ea5992ece094a908e21a04
|
| 48 |
+
|
| 49 |
+
COREAI_MODELS_REPO=/path/to/coreai-models \
|
| 50 |
+
COREAI_ZOO_REPO=/path/to/coreai-model-zoo \
|
| 51 |
+
bash scripts/setup-vendor.sh
|
| 52 |
+
|
| 53 |
+
uv run python scripts/export_bundle.py --mode int8hu -- --head-sym --tag _attnfp16
|
| 54 |
+
uv run python scripts/authored_parity.py
|
| 55 |
+
uv run python scripts/quant_reference.py --mode int8hu -- --head-sym --tag _attnfp16
|
| 56 |
+
uv run python scripts/gate_bundle.py --bundle <exported-bundle>
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
The source checkpoint itself is not included in the toolkit; obtain
|
| 60 |
+
`LiquidAI/LFM2.5-2.6B` at the pinned revision under its upstream license.
|
| 61 |
|
| 62 |
## Quantization
|
| 63 |
|
aimodelc-h16c/metadata.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"main": "lfm2_5_2_6b_decode_int8hu_attnfp16_block32_sym.h16c.aimodelc"
|
| 7 |
},
|
| 8 |
"language": {
|
| 9 |
-
"tokenizer": "
|
| 10 |
"vocab_size": 128000,
|
| 11 |
"max_context_length": 4096,
|
| 12 |
"embedded_tokenizer": true,
|
|
@@ -18,11 +18,11 @@
|
|
| 18 |
},
|
| 19 |
"source": {
|
| 20 |
"model_definition": "torch",
|
| 21 |
-
"hf_model_id": "/
|
| 22 |
},
|
| 23 |
"compression": null,
|
| 24 |
"compilation": {
|
| 25 |
"date": "2026-08-05T18:32:10.998903+00:00",
|
| 26 |
"targets": []
|
| 27 |
}
|
| 28 |
-
}
|
|
|
|
| 6 |
"main": "lfm2_5_2_6b_decode_int8hu_attnfp16_block32_sym.h16c.aimodelc"
|
| 7 |
},
|
| 8 |
"language": {
|
| 9 |
+
"tokenizer": "tokenizer",
|
| 10 |
"vocab_size": 128000,
|
| 11 |
"max_context_length": 4096,
|
| 12 |
"embedded_tokenizer": true,
|
|
|
|
| 18 |
},
|
| 19 |
"source": {
|
| 20 |
"model_definition": "torch",
|
| 21 |
+
"hf_model_id": "LiquidAI/LFM2.5-2.6B"
|
| 22 |
},
|
| 23 |
"compression": null,
|
| 24 |
"compilation": {
|
| 25 |
"date": "2026-08-05T18:32:10.998903+00:00",
|
| 26 |
"targets": []
|
| 27 |
}
|
| 28 |
+
}
|
lfm2.5-2.6b-coreai-conversion-e0e375b.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:665285044be7c0171e1b737167b9892f2799bc2e01e3c5441212887903456f2d
|
| 3 |
+
size 57118
|
metadata.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"main": "lfm2_5_2_6b_decode_int8hu_attnfp16_block32_sym.aimodel"
|
| 7 |
},
|
| 8 |
"language": {
|
| 9 |
-
"tokenizer": "
|
| 10 |
"vocab_size": 128000,
|
| 11 |
"max_context_length": 4096,
|
| 12 |
"embedded_tokenizer": true,
|
|
@@ -18,11 +18,11 @@
|
|
| 18 |
},
|
| 19 |
"source": {
|
| 20 |
"model_definition": "torch",
|
| 21 |
-
"hf_model_id": "/
|
| 22 |
},
|
| 23 |
"compression": null,
|
| 24 |
"compilation": {
|
| 25 |
"date": "2026-08-05T18:32:10.998903+00:00",
|
| 26 |
"targets": []
|
| 27 |
}
|
| 28 |
-
}
|
|
|
|
| 6 |
"main": "lfm2_5_2_6b_decode_int8hu_attnfp16_block32_sym.aimodel"
|
| 7 |
},
|
| 8 |
"language": {
|
| 9 |
+
"tokenizer": "tokenizer",
|
| 10 |
"vocab_size": 128000,
|
| 11 |
"max_context_length": 4096,
|
| 12 |
"embedded_tokenizer": true,
|
|
|
|
| 18 |
},
|
| 19 |
"source": {
|
| 20 |
"model_definition": "torch",
|
| 21 |
+
"hf_model_id": "LiquidAI/LFM2.5-2.6B"
|
| 22 |
},
|
| 23 |
"compression": null,
|
| 24 |
"compilation": {
|
| 25 |
"date": "2026-08-05T18:32:10.998903+00:00",
|
| 26 |
"targets": []
|
| 27 |
}
|
| 28 |
+
}
|