Image-Text-to-Text
MLX
Safetensors
inkling2_loop
apple-silicon
Mixture of Experts
dspark
speculative-decoding
mlx-vlm
conversational
4-bit precision
Instructions to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("netprojects/Inkling-2-Mini-LayerFit-MLX-4bit") config = load_config("netprojects/Inkling-2-Mini-LayerFit-MLX-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default netprojects/Inkling-2-Mini-LayerFit-MLX-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
LayerFit weights (per-layer recipe in quant-recipe.json), card and NOTICE
Browse files- NOTICE +9 -11
- README.md +43 -10
- config.json +0 -0
- model-00001-of-00004.safetensors +2 -2
- model-00002-of-00004.safetensors +2 -2
- model-00003-of-00004.safetensors +2 -2
- model-00004-of-00004.safetensors +2 -2
- model.safetensors.index.json +0 -0
- quant-recipe.json +424 -0
NOTICE
CHANGED
|
@@ -1,16 +1,14 @@
|
|
| 1 |
-
Inkling 2 Mini
|
| 2 |
|
| 3 |
-
This
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
-
Changes made here: the weights were converted to MLX format
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
to affine integer formats, and the attention, embedding, output and vision linear layers were quantized as described in
|
| 13 |
-
the model card. The DSpark draft (mtp.safetensors), tokenizer, chat template and processor files are included unchanged.
|
| 14 |
|
| 15 |
Conversion by NetProjects (Internet Projects Ltd), https://netprojects.com.
|
| 16 |
Not affiliated with Thinking Machines Lab.
|
|
|
|
| 1 |
+
Inkling 2 Mini LayerFit MLX build
|
| 2 |
|
| 3 |
+
This build is derived from thinkingmachines/Inkling-2-Mini (revision 6e7c824), by Thinking Machines Lab,
|
| 4 |
+
released under the Apache License, Version 2.0 (see LICENSE). Use of the model is also governed by
|
| 5 |
+
Thinking Machines' Model Acceptable Use Policy (https://thinkingmachines.ai/model-acceptable-use-policy/).
|
| 6 |
|
| 7 |
+
Changes made here: the weights were converted to MLX format. The routed experts were re-quantised (affine)
|
| 8 |
+
from their released NVFP4 / MXFP8 values, and attention, embeddings, the output layer and the vision encoder
|
| 9 |
+
were quantised (affine), with a per-layer bit allocation found by NetProjects' LayerFit search
|
| 10 |
+
(see quant-recipe.json). Thinking Machines' DSpark speculative-decoding draft is bundled as mtp.safetensors.
|
| 11 |
+
No weights were otherwise changed.
|
|
|
|
|
|
|
| 12 |
|
| 13 |
Conversion by NetProjects (Internet Projects Ltd), https://netprojects.com.
|
| 14 |
Not affiliated with Thinking Machines Lab.
|
README.md
CHANGED
|
@@ -15,13 +15,13 @@ tags:
|
|
| 15 |
- mlx-vlm
|
| 16 |
---
|
| 17 |
|
| 18 |
-
# Inkling 2 Mini for Apple Silicon (MLX, 4-bit, + DSpark)
|
| 19 |
|
| 20 |
✅ Works with stock mlx-vlm (main now, next release) · OpenAI tool calls via [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx)
|
| 21 |
|
| 22 |
[thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (revision `6e7c824`) for MLX on
|
| 23 |
Apple Silicon, with its DSpark speculative-decoding draft bundled (`mtp.safetensors`) and its vision encoder included.
|
| 24 |
-
|
| 25 |
|
| 26 |
Inkling 2 Mini is Thinking Machines' looped mixture-of-experts model: 26.4B parameters, about 3.4B active per token,
|
| 27 |
24 layers of which the middle twelve run three times (48 layer passes per token), text and image input, up to 1M tokens of context.
|
|
@@ -48,14 +48,45 @@ Each pick leaves room for macOS and a long prompt (the download is at most about
|
|
| 48 |
| Build | Size | Same next token as Thinking Machines' code | KL vs their code | GSM8K (50 questions) | Peak memory, 8K-token prompt |
|
| 49 |
|---|---|---|---|---|---|
|
| 50 |
| [netprojects/Inkling-2-Mini-MLX-4-8bit](https://huggingface.co/netprojects/Inkling-2-Mini-MLX-4-8bit) (recommended) | 19.5 GB + 0.64 GB draft | 98.4% | 0.0018 | 47/50 | 27.8 GB |
|
| 51 |
-
| [netprojects/Inkling-2-Mini-LayerFit-MLX-3bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-3bit) | 14.1 GB + 0.64 GB draft | 95.5% | 0.
|
| 52 |
| [netprojects/Inkling-2-Mini-LayerFit-MLX-2.5bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-2.5bit) | 10.8 GB + 0.64 GB draft | 91.0% | 0.0656 | 46/50 | 18.25 GB |
|
| 53 |
| [netprojects/Inkling-2-Mini-LayerFit-MLX-2bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-2bit) | 9.5 GB + 0.64 GB draft | 90.2% | 0.1066 | 47/50 | 17.05 GB |
|
| 54 |
-
| [netprojects/Inkling-2-Mini-LayerFit-MLX-4bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-4bit) | 16.5 GB + 0.64 GB draft |
|
| 55 |
|
| 56 |
"Thinking Machines' code" is their Transformers implementation of Inkling 2 Mini, run on the released weights; the
|
| 57 |
columns are explained under "What was checked".
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
## Install
|
| 60 |
|
| 61 |
Inkling 2 Mini is supported in MLX-VLM itself since 21 November 2026 (not yet in a PyPI release). Use MLX-VLM from main
|
|
@@ -126,7 +157,9 @@ MacBook Pro M5 Max (128 GB), idle, 21 November 2026; median of 3 runs. Decode: 5
|
|
| 126 |
| 4bit (this build) | 1535 / 1412 / 1104 | 43.6 | 70.9 (×1.63, block 4) |
|
| 127 |
| 3bit | 1386 / 1351 / 1075 | 44.4 | 75.2 (×1.69, block 4) |
|
| 128 |
| 2.5bit | not measured | not measured | not measured |
|
| 129 |
-
| 2bit
|
|
|
|
|
|
|
| 130 |
|
| 131 |
The draft's default block size (8) is slower on this model; use 3 or 4 as below.
|
| 132 |
|
|
@@ -152,18 +185,18 @@ harnesses and settings; a selection of their table):
|
|
| 152 |
|
| 153 |
## What was checked
|
| 154 |
|
| 155 |
-
On
|
| 156 |
|
| 157 |
- **Against Thinking Machines' code.** Their Transformers implementation (pull request #51050) ran on the CPU with the
|
| 158 |
released weights, on 12 short chat texts (488 answer positions). This build gave the same next token at
|
| 159 |
-
|
| 160 |
-
- **GSM8K, 50 fixed test questions** (reasoning `none`, greedy):
|
| 161 |
- **Tool calling** (reasoning `none`): an agent prompt with `bash` and `read` tools produced a well-formed call in Inkling's
|
| 162 |
format, which `mlx_vlm.server` returns as OpenAI `tool_calls`.
|
| 163 |
- **Coding:** 3/3 short Python tasks passed their asserts. **Thinking** (reasoning `low`): 2/2
|
| 164 |
questions answered correctly after one closed thinking block. **Vision:** named the red square and blue circle of a test image.
|
| 165 |
-
- **Memory
|
| 166 |
-
- **DSpark:** the bundled draft
|
| 167 |
|
| 168 |
Known limitation of the current server: when the model calls a tool, `content` can also carry a short sentence of its
|
| 169 |
reasoning and the tool name.
|
|
|
|
| 15 |
- mlx-vlm
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# Inkling 2 Mini for Apple Silicon (MLX, 4-bit LayerFit, + DSpark)
|
| 19 |
|
| 20 |
✅ Works with stock mlx-vlm (main now, next release) · OpenAI tool calls via [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx)
|
| 21 |
|
| 22 |
[thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (revision `6e7c824`) for MLX on
|
| 23 |
Apple Silicon, with its DSpark speculative-decoding draft bundled (`mtp.safetensors`) and its vision encoder included.
|
| 24 |
+
This build uses standard MLX affine quantization with a per-layer recipe found by our LayerFit search: each group of layers gets its own bits, chosen by measuring how much each choice changes the model's output. The routed experts, re-quantized from their released NVFP4 / MXFP8 values, are 4-bit or 5-bit (group 64) depending on the layer and projection, with the up projection of layer 19 at 3-bit (group 128) and the gate projection of layer 18 at 3-bit. Attention is 8-bit (group 64) in layers 0–18 and 6-bit in layers 19–23. Embeddings are 5-bit, the output layer is 6-bit and the vision encoder is 4-bit (all group 64). The full per-layer recipe is in `quant-recipe.json`. Size: 16.5 GB plus the 0.64 GB draft, the same as the plain 4-bit build it replaces; the 4/8-bit build keeps the released expert values exactly.
|
| 25 |
|
| 26 |
Inkling 2 Mini is Thinking Machines' looped mixture-of-experts model: 26.4B parameters, about 3.4B active per token,
|
| 27 |
24 layers of which the middle twelve run three times (48 layer passes per token), text and image input, up to 1M tokens of context.
|
|
|
|
| 48 |
| Build | Size | Same next token as Thinking Machines' code | KL vs their code | GSM8K (50 questions) | Peak memory, 8K-token prompt |
|
| 49 |
|---|---|---|---|---|---|
|
| 50 |
| [netprojects/Inkling-2-Mini-MLX-4-8bit](https://huggingface.co/netprojects/Inkling-2-Mini-MLX-4-8bit) (recommended) | 19.5 GB + 0.64 GB draft | 98.4% | 0.0018 | 47/50 | 27.8 GB |
|
| 51 |
+
| [netprojects/Inkling-2-Mini-LayerFit-MLX-3bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-3bit) | 14.1 GB + 0.64 GB draft | 95.5% | 0.0225 | 45/50 | 21.4 GB |
|
| 52 |
| [netprojects/Inkling-2-Mini-LayerFit-MLX-2.5bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-2.5bit) | 10.8 GB + 0.64 GB draft | 91.0% | 0.0656 | 46/50 | 18.25 GB |
|
| 53 |
| [netprojects/Inkling-2-Mini-LayerFit-MLX-2bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-2bit) | 9.5 GB + 0.64 GB draft | 90.2% | 0.1066 | 47/50 | 17.05 GB |
|
| 54 |
+
| [netprojects/Inkling-2-Mini-LayerFit-MLX-4bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-4bit) | 16.5 GB + 0.64 GB draft | 97.7% | 0.0101 | 46/50 | 23.6 GB |
|
| 55 |
|
| 56 |
"Thinking Machines' code" is their Transformers implementation of Inkling 2 Mini, run on the released weights; the
|
| 57 |
columns are explained under "What was checked".
|
| 58 |
|
| 59 |
+
<!-- layerfit-card:start -->
|
| 60 |
+
## LayerFit
|
| 61 |
+
|
| 62 |
+
LayerFit is how we build our small quants. A plain build squeezes every layer the same way, but layers are not equal:
|
| 63 |
+
some lose a lot when squeezed, others barely notice. LayerFit measures each group of layers on its own, then searches for
|
| 64 |
+
the recipe that stays closest to the original model at a fixed size, and spends the bits where they matter. The result is
|
| 65 |
+
a normal MLX build: it loads in stock MLX-VLM, with no custom runtime. At the same 16.5 GB, this build is much closer to Thinking Machines' code than the plain 4-bit files it replaced (mean KL 0.0101 instead of 0.0291); see "What changed".
|
| 66 |
+
<!-- layerfit-card:end -->
|
| 67 |
+
|
| 68 |
+
## What changed (26 November 2026)
|
| 69 |
+
|
| 70 |
+
The files in this repository were replaced by a new 4-bit LayerFit build (it was called `netprojects/Inkling-2-Mini-MLX-4bit`
|
| 71 |
+
before; the old name redirects here). The earlier build was plain affine 4-bit (group 64) everywhere. The new build chooses the bits for each group of layers
|
| 72 |
+
(the recipe is in `quant-recipe.json`) at the same size, 16.5 GB. It loads in stock MLX-VLM like before and includes the
|
| 73 |
+
same DSpark draft.
|
| 74 |
+
|
| 75 |
+
| | Earlier files | New files |
|
| 76 |
+
|---|---|---|
|
| 77 |
+
| Same next token as Thinking Machines' code | 95.9% | 97.7% |
|
| 78 |
+
| KL vs their code | 0.0291 | 0.0101 |
|
| 79 |
+
| Greedy answers matching theirs, 3 prompts (tokens out of 24) | 4, 24, 24 | 4, 14, 24 |
|
| 80 |
+
| GSM8K (50 questions) | 47/50 | 46/50 |
|
| 81 |
+
| Our LayerFit test texts, against our 4/8-bit build: same next token / KL | 98.6% / 0.0064 | 99.1% / 0.0025 |
|
| 82 |
+
|
| 83 |
+
The first four rows use the same 12 chat texts and 50 questions as before (the earlier numbers are the ones this card
|
| 84 |
+
showed). The last row comes from the separate, larger set of texts the LayerFit search is scored on, so it is not
|
| 85 |
+
comparable with the rows above. Greedy answers differ in single tokens where the top two choices are very close, so that
|
| 86 |
+
row moves both ways. The earlier files are still available at revision
|
| 87 |
+
[`7b7f6ee19afc`](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-4bit/tree/7b7f6ee19afc15d30557d8160bb32551f379df94). If you downloaded this build before 26 November 2026, download it
|
| 88 |
+
again to get the new files.
|
| 89 |
+
|
| 90 |
## Install
|
| 91 |
|
| 92 |
Inkling 2 Mini is supported in MLX-VLM itself since 21 November 2026 (not yet in a PyPI release). Use MLX-VLM from main
|
|
|
|
| 157 |
| 4bit (this build) | 1535 / 1412 / 1104 | 43.6 | 70.9 (×1.63, block 4) |
|
| 158 |
| 3bit | 1386 / 1351 / 1075 | 44.4 | 75.2 (×1.69, block 4) |
|
| 159 |
| 2.5bit | not measured | not measured | not measured |
|
| 160 |
+
| 2bit | not measured | not measured | not measured |
|
| 161 |
+
|
| 162 |
+
The 4bit and 3bit rows, and the inkling2-mlx speeds below, were measured on the earlier 4-bit and 3-bit files. The LayerFit files that replaced them on 26 November 2026 are the same size but keep attention at 6 to 8 bits, so their speeds can differ slightly; they have not been re-measured yet.
|
| 163 |
|
| 164 |
The draft's default block size (8) is slower on this model; use 3 or 4 as below.
|
| 165 |
|
|
|
|
| 185 |
|
| 186 |
## What was checked
|
| 187 |
|
| 188 |
+
On the same MacBook Pro M5 Max (128 GB) as the other builds, 26 November 2026, for the LayerFit files of this build, with [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx) v0.2.4 (MLX-VLM plus Inkling's tool-call parser). The speeds above were measured on the earlier files.
|
| 189 |
|
| 190 |
- **Against Thinking Machines' code.** Their Transformers implementation (pull request #51050) ran on the CPU with the
|
| 191 |
released weights, on 12 short chat texts (488 answer positions). This build gave the same next token at
|
| 192 |
+
97.7% of positions (mean KL 0.0101), and its greedy answers to 3 prompts matched theirs for the first 4, 14, 24 of 24 tokens.
|
| 193 |
+
- **GSM8K, 50 fixed test questions** (reasoning `none`, greedy): 46/50.
|
| 194 |
- **Tool calling** (reasoning `none`): an agent prompt with `bash` and `read` tools produced a well-formed call in Inkling's
|
| 195 |
format, which `mlx_vlm.server` returns as OpenAI `tool_calls`.
|
| 196 |
- **Coding:** 3/3 short Python tasks passed their asserts. **Thinking** (reasoning `low`): 2/2
|
| 197 |
questions answered correctly after one closed thinking block. **Vision:** named the red square and blue circle of a test image.
|
| 198 |
+
- **Memory** (inkling2-mlx v0.2.4 defaults): weights 16.5 GB; peak 22.67 GB with a 4K-token prompt, 23.59 GB with an 8K-token prompt and 29.41 GB with a 32K-token prompt. With a smaller prefill step the peak drops (measured on the earlier files, which are the same size): 17.9 / 18.2 GB at `prefill_step_size=512` and 16.9 / 17.1 GB at `prefill_step_size=256` (4K / 8K-token prompts, plus 0.64 GB if the DSpark draft is loaded), which fits the default GPU memory limit of a 32 GB Mac: pass `prefill_step_size=256` to `generate`, or `--prefill-step-size 256` to `mlx_vlm.server`.
|
| 199 |
+
- **DSpark:** the bundled draft is the same file as before. On the earlier files it loaded with this build and its greedy output followed the model's own except at near-ties (divergences only where the top two tokens were within 0.2 logits); this was not re-run on the new files. Speeds are under "Speed".
|
| 200 |
|
| 201 |
Known limitation of the current server: when the model calls a tool, `content` can also carry a short sentence of its
|
| 202 |
reasoning and the tool name.
|
config.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d570fcc7a8bdc7432e9955eff5f4e14a30333ac197d55f7202b5d4c004b9ffb9
|
| 3 |
+
size 5335167488
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40a434cf72eaef4c38f07b7c0578cbecfa0ad8fcf2de01870054d60aa0af1923
|
| 3 |
+
size 5347109594
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6280c40006cda42abff7e1eea641632c364b08e069e31fd24b731b19e3e506e
|
| 3 |
+
size 5258695766
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61c0dadcb199e2e03ff6422335e4aa81dac0e5fa05b5b51cbb97566b339d19ae
|
| 3 |
+
size 559203979
|
model.safetensors.index.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
quant-recipe.json
ADDED
|
@@ -0,0 +1,424 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"method": "LayerFit (NetProjects), inkling_autoquant 0.6.0",
|
| 3 |
+
"format": "aBgG = affine quantization, B bits, group size G",
|
| 4 |
+
"metrics_vs_our_4-8bit_build": {
|
| 5 |
+
"kl_mean": 0.00254,
|
| 6 |
+
"kl_p99": 0.0361,
|
| 7 |
+
"top1": 99.12,
|
| 8 |
+
"kl_non_english": 0.00316,
|
| 9 |
+
"kl_by_kind": {
|
| 10 |
+
"code": 0.00122,
|
| 11 |
+
"de": 0.00276,
|
| 12 |
+
"el": 0.00493,
|
| 13 |
+
"en": 0.00233,
|
| 14 |
+
"es": 0.00431,
|
| 15 |
+
"fr": 0.00269,
|
| 16 |
+
"it": 0.00451,
|
| 17 |
+
"ja": 0.00247,
|
| 18 |
+
"math": 0.00143,
|
| 19 |
+
"ru": 0.0014,
|
| 20 |
+
"tool": 0.00304,
|
| 21 |
+
"zh": 0.00221
|
| 22 |
+
},
|
| 23 |
+
"size_gb": 16.5,
|
| 24 |
+
"size_bytes": 16499935743
|
| 25 |
+
},
|
| 26 |
+
"recipe": [
|
| 27 |
+
[
|
| 28 |
+
"embed",
|
| 29 |
+
"a5g64"
|
| 30 |
+
],
|
| 31 |
+
[
|
| 32 |
+
"L0.attn",
|
| 33 |
+
"a8g64"
|
| 34 |
+
],
|
| 35 |
+
[
|
| 36 |
+
"L1.attn",
|
| 37 |
+
"a8g64"
|
| 38 |
+
],
|
| 39 |
+
[
|
| 40 |
+
"L2.attn",
|
| 41 |
+
"a8g64"
|
| 42 |
+
],
|
| 43 |
+
[
|
| 44 |
+
"L3.attn",
|
| 45 |
+
"a8g64"
|
| 46 |
+
],
|
| 47 |
+
[
|
| 48 |
+
"L4.attn",
|
| 49 |
+
"a8g64"
|
| 50 |
+
],
|
| 51 |
+
[
|
| 52 |
+
"L5.attn",
|
| 53 |
+
"a8g64"
|
| 54 |
+
],
|
| 55 |
+
[
|
| 56 |
+
"L6.attn",
|
| 57 |
+
"a8g64"
|
| 58 |
+
],
|
| 59 |
+
[
|
| 60 |
+
"L7.attn",
|
| 61 |
+
"a8g64"
|
| 62 |
+
],
|
| 63 |
+
[
|
| 64 |
+
"L8.attn",
|
| 65 |
+
"a8g64"
|
| 66 |
+
],
|
| 67 |
+
[
|
| 68 |
+
"L9.attn",
|
| 69 |
+
"a8g64"
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
"L10.attn",
|
| 73 |
+
"a8g64"
|
| 74 |
+
],
|
| 75 |
+
[
|
| 76 |
+
"L11.attn",
|
| 77 |
+
"a8g64"
|
| 78 |
+
],
|
| 79 |
+
[
|
| 80 |
+
"L12.attn",
|
| 81 |
+
"a8g64"
|
| 82 |
+
],
|
| 83 |
+
[
|
| 84 |
+
"L13.attn",
|
| 85 |
+
"a8g64"
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
"L14.attn",
|
| 89 |
+
"a8g64"
|
| 90 |
+
],
|
| 91 |
+
[
|
| 92 |
+
"L15.attn",
|
| 93 |
+
"a8g64"
|
| 94 |
+
],
|
| 95 |
+
[
|
| 96 |
+
"L16.attn",
|
| 97 |
+
"a8g64"
|
| 98 |
+
],
|
| 99 |
+
[
|
| 100 |
+
"L17.attn",
|
| 101 |
+
"a8g64"
|
| 102 |
+
],
|
| 103 |
+
[
|
| 104 |
+
"L18.attn",
|
| 105 |
+
"a8g64"
|
| 106 |
+
],
|
| 107 |
+
[
|
| 108 |
+
"L19.attn",
|
| 109 |
+
"a6g64"
|
| 110 |
+
],
|
| 111 |
+
[
|
| 112 |
+
"L20.attn",
|
| 113 |
+
"a6g64"
|
| 114 |
+
],
|
| 115 |
+
[
|
| 116 |
+
"L21.attn",
|
| 117 |
+
"a6g64"
|
| 118 |
+
],
|
| 119 |
+
[
|
| 120 |
+
"L22.attn",
|
| 121 |
+
"a6g64"
|
| 122 |
+
],
|
| 123 |
+
[
|
| 124 |
+
"L23.attn",
|
| 125 |
+
"a6g64"
|
| 126 |
+
],
|
| 127 |
+
[
|
| 128 |
+
"L0.experts.down",
|
| 129 |
+
"a4g64"
|
| 130 |
+
],
|
| 131 |
+
[
|
| 132 |
+
"L0.experts.gate",
|
| 133 |
+
"a4g64"
|
| 134 |
+
],
|
| 135 |
+
[
|
| 136 |
+
"L0.experts.up",
|
| 137 |
+
"a4g64"
|
| 138 |
+
],
|
| 139 |
+
[
|
| 140 |
+
"L1.experts.down",
|
| 141 |
+
"a5g64"
|
| 142 |
+
],
|
| 143 |
+
[
|
| 144 |
+
"L1.experts.gate",
|
| 145 |
+
"a4g64"
|
| 146 |
+
],
|
| 147 |
+
[
|
| 148 |
+
"L1.experts.up",
|
| 149 |
+
"a4g64"
|
| 150 |
+
],
|
| 151 |
+
[
|
| 152 |
+
"L2.experts.down",
|
| 153 |
+
"a4g64"
|
| 154 |
+
],
|
| 155 |
+
[
|
| 156 |
+
"L2.experts.gate",
|
| 157 |
+
"a5g64"
|
| 158 |
+
],
|
| 159 |
+
[
|
| 160 |
+
"L2.experts.up",
|
| 161 |
+
"a4g64"
|
| 162 |
+
],
|
| 163 |
+
[
|
| 164 |
+
"L3.experts.down",
|
| 165 |
+
"a5g64"
|
| 166 |
+
],
|
| 167 |
+
[
|
| 168 |
+
"L3.experts.gate",
|
| 169 |
+
"a4g64"
|
| 170 |
+
],
|
| 171 |
+
[
|
| 172 |
+
"L3.experts.up",
|
| 173 |
+
"a5g64"
|
| 174 |
+
],
|
| 175 |
+
[
|
| 176 |
+
"L4.experts.down",
|
| 177 |
+
"a4g64"
|
| 178 |
+
],
|
| 179 |
+
[
|
| 180 |
+
"L4.experts.gate",
|
| 181 |
+
"a4g64"
|
| 182 |
+
],
|
| 183 |
+
[
|
| 184 |
+
"L4.experts.up",
|
| 185 |
+
"a4g64"
|
| 186 |
+
],
|
| 187 |
+
[
|
| 188 |
+
"L5.experts.down",
|
| 189 |
+
"a5g64"
|
| 190 |
+
],
|
| 191 |
+
[
|
| 192 |
+
"L5.experts.gate",
|
| 193 |
+
"a4g64"
|
| 194 |
+
],
|
| 195 |
+
[
|
| 196 |
+
"L5.experts.up",
|
| 197 |
+
"a4g64"
|
| 198 |
+
],
|
| 199 |
+
[
|
| 200 |
+
"L6.experts.down",
|
| 201 |
+
"a5g64"
|
| 202 |
+
],
|
| 203 |
+
[
|
| 204 |
+
"L6.experts.gate",
|
| 205 |
+
"a4g64"
|
| 206 |
+
],
|
| 207 |
+
[
|
| 208 |
+
"L6.experts.up",
|
| 209 |
+
"a5g64"
|
| 210 |
+
],
|
| 211 |
+
[
|
| 212 |
+
"L7.experts.down",
|
| 213 |
+
"a5g64"
|
| 214 |
+
],
|
| 215 |
+
[
|
| 216 |
+
"L7.experts.gate",
|
| 217 |
+
"a5g64"
|
| 218 |
+
],
|
| 219 |
+
[
|
| 220 |
+
"L7.experts.up",
|
| 221 |
+
"a5g64"
|
| 222 |
+
],
|
| 223 |
+
[
|
| 224 |
+
"L8.experts.down",
|
| 225 |
+
"a5g64"
|
| 226 |
+
],
|
| 227 |
+
[
|
| 228 |
+
"L8.experts.gate",
|
| 229 |
+
"a5g64"
|
| 230 |
+
],
|
| 231 |
+
[
|
| 232 |
+
"L8.experts.up",
|
| 233 |
+
"a5g64"
|
| 234 |
+
],
|
| 235 |
+
[
|
| 236 |
+
"L9.experts.down",
|
| 237 |
+
"a5g64"
|
| 238 |
+
],
|
| 239 |
+
[
|
| 240 |
+
"L9.experts.gate",
|
| 241 |
+
"a5g64"
|
| 242 |
+
],
|
| 243 |
+
[
|
| 244 |
+
"L9.experts.up",
|
| 245 |
+
"a5g64"
|
| 246 |
+
],
|
| 247 |
+
[
|
| 248 |
+
"L10.experts.down",
|
| 249 |
+
"a4g64"
|
| 250 |
+
],
|
| 251 |
+
[
|
| 252 |
+
"L10.experts.gate",
|
| 253 |
+
"a5g64"
|
| 254 |
+
],
|
| 255 |
+
[
|
| 256 |
+
"L10.experts.up",
|
| 257 |
+
"a5g64"
|
| 258 |
+
],
|
| 259 |
+
[
|
| 260 |
+
"L11.experts.down",
|
| 261 |
+
"a5g64"
|
| 262 |
+
],
|
| 263 |
+
[
|
| 264 |
+
"L11.experts.gate",
|
| 265 |
+
"a5g64"
|
| 266 |
+
],
|
| 267 |
+
[
|
| 268 |
+
"L11.experts.up",
|
| 269 |
+
"a5g64"
|
| 270 |
+
],
|
| 271 |
+
[
|
| 272 |
+
"L12.experts.down",
|
| 273 |
+
"a5g64"
|
| 274 |
+
],
|
| 275 |
+
[
|
| 276 |
+
"L12.experts.gate",
|
| 277 |
+
"a5g64"
|
| 278 |
+
],
|
| 279 |
+
[
|
| 280 |
+
"L12.experts.up",
|
| 281 |
+
"a5g64"
|
| 282 |
+
],
|
| 283 |
+
[
|
| 284 |
+
"L13.experts.down",
|
| 285 |
+
"a4g64"
|
| 286 |
+
],
|
| 287 |
+
[
|
| 288 |
+
"L13.experts.gate",
|
| 289 |
+
"a5g64"
|
| 290 |
+
],
|
| 291 |
+
[
|
| 292 |
+
"L13.experts.up",
|
| 293 |
+
"a4g64"
|
| 294 |
+
],
|
| 295 |
+
[
|
| 296 |
+
"L14.experts.down",
|
| 297 |
+
"a4g64"
|
| 298 |
+
],
|
| 299 |
+
[
|
| 300 |
+
"L14.experts.gate",
|
| 301 |
+
"a4g64"
|
| 302 |
+
],
|
| 303 |
+
[
|
| 304 |
+
"L14.experts.up",
|
| 305 |
+
"a4g64"
|
| 306 |
+
],
|
| 307 |
+
[
|
| 308 |
+
"L15.experts.down",
|
| 309 |
+
"a4g64"
|
| 310 |
+
],
|
| 311 |
+
[
|
| 312 |
+
"L15.experts.gate",
|
| 313 |
+
"a4g64"
|
| 314 |
+
],
|
| 315 |
+
[
|
| 316 |
+
"L15.experts.up",
|
| 317 |
+
"a4g64"
|
| 318 |
+
],
|
| 319 |
+
[
|
| 320 |
+
"L16.experts.down",
|
| 321 |
+
"a5g64"
|
| 322 |
+
],
|
| 323 |
+
[
|
| 324 |
+
"L16.experts.gate",
|
| 325 |
+
"a5g64"
|
| 326 |
+
],
|
| 327 |
+
[
|
| 328 |
+
"L16.experts.up",
|
| 329 |
+
"a4g64"
|
| 330 |
+
],
|
| 331 |
+
[
|
| 332 |
+
"L17.experts.down",
|
| 333 |
+
"a5g64"
|
| 334 |
+
],
|
| 335 |
+
[
|
| 336 |
+
"L17.experts.gate",
|
| 337 |
+
"a5g64"
|
| 338 |
+
],
|
| 339 |
+
[
|
| 340 |
+
"L17.experts.up",
|
| 341 |
+
"a4g64"
|
| 342 |
+
],
|
| 343 |
+
[
|
| 344 |
+
"L18.experts.down",
|
| 345 |
+
"a4g64"
|
| 346 |
+
],
|
| 347 |
+
[
|
| 348 |
+
"L18.experts.gate",
|
| 349 |
+
"a3g64"
|
| 350 |
+
],
|
| 351 |
+
[
|
| 352 |
+
"L18.experts.up",
|
| 353 |
+
"a4g64"
|
| 354 |
+
],
|
| 355 |
+
[
|
| 356 |
+
"L19.experts.down",
|
| 357 |
+
"a4g64"
|
| 358 |
+
],
|
| 359 |
+
[
|
| 360 |
+
"L19.experts.gate",
|
| 361 |
+
"a4g64"
|
| 362 |
+
],
|
| 363 |
+
[
|
| 364 |
+
"L19.experts.up",
|
| 365 |
+
"a3g128"
|
| 366 |
+
],
|
| 367 |
+
[
|
| 368 |
+
"L20.experts.down",
|
| 369 |
+
"a4g64"
|
| 370 |
+
],
|
| 371 |
+
[
|
| 372 |
+
"L20.experts.gate",
|
| 373 |
+
"a4g64"
|
| 374 |
+
],
|
| 375 |
+
[
|
| 376 |
+
"L20.experts.up",
|
| 377 |
+
"a4g64"
|
| 378 |
+
],
|
| 379 |
+
[
|
| 380 |
+
"L21.experts.down",
|
| 381 |
+
"a4g64"
|
| 382 |
+
],
|
| 383 |
+
[
|
| 384 |
+
"L21.experts.gate",
|
| 385 |
+
"a4g64"
|
| 386 |
+
],
|
| 387 |
+
[
|
| 388 |
+
"L21.experts.up",
|
| 389 |
+
"a4g64"
|
| 390 |
+
],
|
| 391 |
+
[
|
| 392 |
+
"L22.experts.down",
|
| 393 |
+
"a4g64"
|
| 394 |
+
],
|
| 395 |
+
[
|
| 396 |
+
"L22.experts.gate",
|
| 397 |
+
"a4g64"
|
| 398 |
+
],
|
| 399 |
+
[
|
| 400 |
+
"L22.experts.up",
|
| 401 |
+
"a4g64"
|
| 402 |
+
],
|
| 403 |
+
[
|
| 404 |
+
"L23.experts.down",
|
| 405 |
+
"a4g64"
|
| 406 |
+
],
|
| 407 |
+
[
|
| 408 |
+
"L23.experts.gate",
|
| 409 |
+
"a4g64"
|
| 410 |
+
],
|
| 411 |
+
[
|
| 412 |
+
"L23.experts.up",
|
| 413 |
+
"a4g64"
|
| 414 |
+
],
|
| 415 |
+
[
|
| 416 |
+
"head",
|
| 417 |
+
"a6g64"
|
| 418 |
+
],
|
| 419 |
+
[
|
| 420 |
+
"vision",
|
| 421 |
+
"a4g64"
|
| 422 |
+
]
|
| 423 |
+
]
|
| 424 |
+
}
|