Expert predictor v5 for Inkling 2 Mini
Browse files- .gitattributes +4 -0
- README.md +75 -40
- checks/pred-v5.vec +3 -0
- checks/start-v5.vec +3 -0
- inkling2-pred-v5.moepred +3 -0
- inkling2-start-v5.moepred +3 -0
.gitattributes
CHANGED
|
@@ -37,3 +37,7 @@ checks/pred-v3.vec filter=lfs diff=lfs merge=lfs -text
|
|
| 37 |
checks/start-v3.vec filter=lfs diff=lfs merge=lfs -text
|
| 38 |
inkling2-pred-v3.moepred filter=lfs diff=lfs merge=lfs -text
|
| 39 |
inkling2-start-v3.moepred filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
checks/start-v3.vec filter=lfs diff=lfs merge=lfs -text
|
| 38 |
inkling2-pred-v3.moepred filter=lfs diff=lfs merge=lfs -text
|
| 39 |
inkling2-start-v3.moepred filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
checks/pred-v5.vec filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
checks/start-v5.vec filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
inkling2-pred-v5.moepred filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
inkling2-start-v5.moepred filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -16,6 +16,13 @@ tags:
|
|
| 16 |
keeps that model's experts in system RAM and caches some of them in VRAM loads it to decide which experts to keep on
|
| 17 |
the GPU. It doesn't generate text and can't be run, chatted with, merged or fine-tuned.
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
| | |
|
| 20 |
|---|---|
|
| 21 |
| **For the model** | [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (arch `inkling2_loop`: 24 MoE layers, 128 routed experts, 8 per token; layers 6β17 run three passes a token) |
|
|
@@ -23,6 +30,7 @@ the GPU. It doesn't generate text and can't be run, chatted with, merged or fine
|
|
| 23 |
| **Measured with** | that Q8_0, [unsloth/Inkling-2-Mini-GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) `Mainline_Support/UD-Q4_K_XL`, and a Q4_K_M made from the Q8_0 |
|
| 24 |
| **Works with** | the [Polaris llama.cpp fork](https://github.com/Lanilen/llama.cpp) (branch `polaris`): `--moe-cache-predictor` in the hot spare cache mode |
|
| 25 |
| **Won't work with** | upstream llama.cpp, Ollama, LM Studio or any other engine; any other model, including Inkling 2 |
|
|
|
|
| 26 |
| **Size** | 12.4 MiB and 7.8 MiB (the start file), float32 |
|
| 27 |
|
| 28 |
## What it does
|
|
@@ -49,7 +57,7 @@ It reads:
|
|
| 49 |
|
| 50 |
The model is a 2-layer MLP (4621 β 512 β 128, GELU) and one low-rank head per horizon. A head's logits for layer *l*,
|
| 51 |
expert *e* are a bias, plus a per-bucket weighting of the log count maps, plus a rank-128 projection of the MLP's
|
| 52 |
-
output. A softmax over each layer's 128 experts gives the prediction. One prediction is
|
| 53 |
|
| 54 |
The **start file** predicts from a turn's text before its prompt runs (the counts and the mean of the turn's token
|
| 55 |
embeddings), so the experts upload while the prompt computes.
|
|
@@ -58,9 +66,9 @@ embeddings), so the experts upload while the prompt computes.
|
|
| 58 |
|
| 59 |
| File | What it is |
|
| 60 |
|---|---|
|
| 61 |
-
| `inkling2-pred-
|
| 62 |
-
| `inkling2-start-
|
| 63 |
-
| `checks/pred-
|
| 64 |
|
| 65 |
The files are GGUF containers (`general.architecture` = `moe-predictor`, version 1). They're named `.moepred` so that
|
| 66 |
tools that open GGUF models don't offer to run them. The fork reads them by path, whatever the extension. They name the
|
|
@@ -79,23 +87,24 @@ GOMP_SPINCOUNT=30000000 GGML_CPU_MMID_FLAT=128 LLAMA_GRAPH_CACHE=8 \
|
|
| 79 |
llama-server -m Inkling-2-Mini-UD-Q4_K_XL.gguf \
|
| 80 |
-ngl 99 -ot _exps=CPU --no-op-offload -t 6 -c 16384 -b 512 -ub 512 \
|
| 81 |
--moe-cache-mode hot-spare --moe-cache-mib 3500 --moe-cache-resize --moe-cache-batch 16384 \
|
| 82 |
-
--moe-cache-predictor inkling2-pred-
|
| 83 |
--moe-cache-predictor-device Vulkan0 --moe-cache-refill 0 --moe-cache-predictor-answer-gain 8
|
| 84 |
```
|
| 85 |
|
| 86 |
-
-
|
|
|
|
| 87 |
- `--no-op-offload` is needed on NVIDIA GPUs: without it a prompt reserves 8.5β10 GB of VRAM for copies of the looped
|
| 88 |
layers' experts, and the driver refuses it.
|
| 89 |
- `-t 6` is that CPU's performance cores; use your CPU's count of them.
|
| 90 |
- `--moe-cache-mib` follows the free VRAM: about the free memory less 4.5 GB with this file.
|
| 91 |
- [docs/inkling2-mini.md](https://github.com/Lanilen/llama.cpp/blob/polaris/docs/inkling2-mini.md) has why each
|
| 92 |
setting, the sizes for 6 and 8 GB cards, the quants, and an RX 480 setup.
|
| 93 |
-
- It assumes one conversation at a time (`-np 1`).
|
| 94 |
- To check that a file loads and computes what it should:
|
| 95 |
|
| 96 |
```bash
|
| 97 |
-
llama-moe-predictor-check inkling2-pred-
|
| 98 |
-
llama-moe-predictor-check inkling2-start-
|
| 99 |
```
|
| 100 |
|
| 101 |
How the cache uses it: [docs/moe-hot-spare.md](https://github.com/Lanilen/llama.cpp/blob/polaris/docs/moe-hot-spare.md#a-learned-predictor---moe-cache-predictor).
|
|
@@ -105,46 +114,71 @@ so you can train one for another model or quant.
|
|
| 105 |
|
| 106 |
## Results
|
| 107 |
|
| 108 |
-
**Offline, on held-out conversations** (every 5th conversation of each source,
|
| 109 |
of the next 128 tokens' expert selections that the experts it ranks highest would serve, at 25 per layer (what a
|
| 110 |
5000 MiB cache holds of the Q8_0: 20% of a layer's experts). *Pooled* gives the layers their 600 slots between them,
|
| 111 |
as the cache does, so the looped layers hold more:
|
| 112 |
|
| 113 |
| tokens into the answer | recent selections (decayed) | this predictor | best possible in hindsight | pooled: decayed | pooled: this predictor | pooled: hindsight |
|
| 114 |
|---|---|---|---|---|---|---|
|
| 115 |
-
| 0 (the answer's start) | 54.
|
| 116 |
-
| 64 | 60.
|
| 117 |
-
| 256 | 59.
|
| 118 |
|
| 119 |
-
At 43 experts a layer (a 4-bit quant in the same 5000 MiB), pooled:
|
| 120 |
-
88.
|
| 121 |
|
| 122 |
**Live** on one AMD Radeon RX 480 (8 GB) with a Threadripper 1920X, a 5000 MiB hot spare, llama-server with the chat
|
| 123 |
template, temperature 0, 256 tokens a request. The share of the selections the cache served, and the generation speed:
|
| 124 |
|
| 125 |
| request | the cache without a predictor | with the predictor | generation |
|
| 126 |
|---|---|---|---|
|
| 127 |
-
| Q8_0, cold | 55.8% | **
|
| 128 |
-
| Q8_0, a conversation's second turn | 53.3% | **
|
| 129 |
-
| Q4_K_M, cold | 66.3% | **
|
| 130 |
-
| Q4_K_M, a conversation's second turn | 66.6% | **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
without the predictor. These are two machines' numbers; the gain depends on how much of the model fits in VRAM and on
|
| 135 |
-
how slow the CPU's experts are against the rest of a token.
|
| 136 |
|
| 137 |
## Training data
|
| 138 |
|
| 139 |
The predictor was trained on expert-routing traces: which experts Inkling 2 Mini (ggml-org's Q8_0, in llama.cpp)
|
| 140 |
-
selected for each token and pass, plus the inputs of layers 8 and 16 every 16 tokens. The traces cover
|
| 141 |
-
conversations,
|
| 142 |
|
| 143 |
-
- **
|
| 144 |
-
multi-turn sessions,
|
| 145 |
-
- **
|
| 146 |
-
|
| 147 |
-
|
| 148 |
|
| 149 |
The file holds only the predictor's own weights: no text, no tokens and none of Inkling's weights.
|
| 150 |
|
|
@@ -174,29 +208,30 @@ The file holds only the predictor's own weights: no text, no tokens and none of
|
|
| 174 |
|
| 175 |
## Training
|
| 176 |
|
| 177 |
-
- **Split:** every 5th conversation of each source is held out (
|
| 178 |
-
- **Run:** PyTorch, 6 epochs,
|
| 179 |
- **The loop:** each layer's target is the selections of all its passes, and its loss is weighed by its passes.
|
| 180 |
- **Export:** to GGUF, then checked against PyTorch on 24 test vectors each (`checks/`): the largest difference
|
| 181 |
-
|
| 182 |
- **Scripts:** tracing, the corpus, training and export are in
|
| 183 |
[`tools/moe-predictor`](https://github.com/Lanilen/llama.cpp/tree/polaris/tools/moe-predictor).
|
| 184 |
|
| 185 |
## Limitations
|
| 186 |
|
| 187 |
-
- **
|
| 188 |
-
[Flash-Next's predictor](https://huggingface.co/Lanilen/Qwen3.8-Flash-Next-Expert-Predictor)
|
| 189 |
-
|
|
|
|
| 190 |
- **One model.** It's tied to Inkling 2 Mini's layers, loop, expert count, hidden size and router. Inkling 2, or a
|
| 191 |
retrained or fine-tuned Mini, needs a predictor trained on its own traces.
|
| 192 |
-
- **Quants.** It was trained on the Q8_0's routing and measured on the Q8_0
|
| 193 |
-
route a little differently.
|
| 194 |
- **A current build.** Build the fork's `polaris` as of this file's release or later. Older builds either ignore a
|
| 195 |
predictor for a looped model, or count a looped layer's prediction like a layer that runs once and serve fewer of
|
| 196 |
the selections. Unsloth's mainline files also need upstream llama.cpp's #32704, which the fork has from the same
|
| 197 |
release.
|
| 198 |
-
- **
|
| 199 |
-
|
| 200 |
- **One conversation at a time:** the counts follow a single conversation (`-np 1`).
|
| 201 |
- **It doesn't change outputs.** It only decides where experts are computed. The GPU and the CPU round differently, so
|
| 202 |
text at temperature 0 can still differ slightly from a run with another cache state, as with any cache setting.
|
|
|
|
| 16 |
keeps that model's experts in system RAM and caches some of them in VRAM loads it to decide which experts to keep on
|
| 17 |
the GPU. It doesn't generate text and can't be run, chatted with, merged or fine-tuned.
|
| 18 |
|
| 19 |
+
**Made for chat, not raw completion.** The predictor is made for requests that go through the model's chat template:
|
| 20 |
+
llama-server's chat endpoint (`/v1/chat/completions`) or `llama-cli` in conversation mode. There it serves 7β10 points
|
| 21 |
+
more of the expert selections and generates 2.6β3.2% faster. On raw completion, a text continued without the template
|
| 22 |
+
(`llama-completion -no-cnv`, or llama-server's `/completion` endpoint), it does the opposite: the cache serves fewer
|
| 23 |
+
of the selections and generates about 3% slower than without it, so leave `--moe-cache-predictor` out for that
|
| 24 |
+
([Raw completion](#raw-completion)).
|
| 25 |
+
|
| 26 |
| | |
|
| 27 |
|---|---|
|
| 28 |
| **For the model** | [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (arch `inkling2_loop`: 24 MoE layers, 128 routed experts, 8 per token; layers 6β17 run three passes a token) |
|
|
|
|
| 30 |
| **Measured with** | that Q8_0, [unsloth/Inkling-2-Mini-GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) `Mainline_Support/UD-Q4_K_XL`, and a Q4_K_M made from the Q8_0 |
|
| 31 |
| **Works with** | the [Polaris llama.cpp fork](https://github.com/Lanilen/llama.cpp) (branch `polaris`): `--moe-cache-predictor` in the hot spare cache mode |
|
| 32 |
| **Won't work with** | upstream llama.cpp, Ollama, LM Studio or any other engine; any other model, including Inkling 2 |
|
| 33 |
+
| **Version** | 5 (2026-11-23), trained on 718 traces; version 3 is in this repository's history |
|
| 34 |
| **Size** | 12.4 MiB and 7.8 MiB (the start file), float32 |
|
| 35 |
|
| 36 |
## What it does
|
|
|
|
| 57 |
|
| 58 |
The model is a 2-layer MLP (4621 β 512 β 128, GELU) and one low-rank head per horizon. A head's logits for layer *l*,
|
| 59 |
expert *e* are a bias, plus a per-bucket weighting of the log count maps, plus a rank-128 projection of the MLP's
|
| 60 |
+
output. A softmax over each layer's 128 experts gives the prediction. One prediction is 0.4β0.6 ms on the CPU.
|
| 61 |
|
| 62 |
The **start file** predicts from a turn's text before its prompt runs (the counts and the mean of the turn's token
|
| 63 |
embeddings), so the experts upload while the prompt computes.
|
|
|
|
| 66 |
|
| 67 |
| File | What it is |
|
| 68 |
|---|---|
|
| 69 |
+
| `inkling2-pred-v5.moepred` | **The predictor.** Pass it with `--moe-cache-predictor`. |
|
| 70 |
+
| `inkling2-start-v5.moepred` | The start file. Pass it with `--moe-cache-predictor-start`. |
|
| 71 |
+
| `checks/pred-v5.vec`, `checks/start-v5.vec` | Test vectors from the exporter: inputs and the expected outputs of the original PyTorch model. |
|
| 72 |
|
| 73 |
The files are GGUF containers (`general.architecture` = `moe-predictor`, version 1). They're named `.moepred` so that
|
| 74 |
tools that open GGUF models don't offer to run them. The fork reads them by path, whatever the extension. They name the
|
|
|
|
| 87 |
llama-server -m Inkling-2-Mini-UD-Q4_K_XL.gguf \
|
| 88 |
-ngl 99 -ot _exps=CPU --no-op-offload -t 6 -c 16384 -b 512 -ub 512 \
|
| 89 |
--moe-cache-mode hot-spare --moe-cache-mib 3500 --moe-cache-resize --moe-cache-batch 16384 \
|
| 90 |
+
--moe-cache-predictor inkling2-pred-v5.moepred --moe-cache-predictor-start inkling2-start-v5.moepred \
|
| 91 |
--moe-cache-predictor-device Vulkan0 --moe-cache-refill 0 --moe-cache-predictor-answer-gain 8
|
| 92 |
```
|
| 93 |
|
| 94 |
+
- With version 3 it generated at 27β28.5 tokens a second and read a 1.3k-token prompt at 65β70, in 8.3 GB of VRAM.
|
| 95 |
+
Version 5 has the same size and cost; on that machine it hasn't been measured yet.
|
| 96 |
- `--no-op-offload` is needed on NVIDIA GPUs: without it a prompt reserves 8.5β10 GB of VRAM for copies of the looped
|
| 97 |
layers' experts, and the driver refuses it.
|
| 98 |
- `-t 6` is that CPU's performance cores; use your CPU's count of them.
|
| 99 |
- `--moe-cache-mib` follows the free VRAM: about the free memory less 4.5 GB with this file.
|
| 100 |
- [docs/inkling2-mini.md](https://github.com/Lanilen/llama.cpp/blob/polaris/docs/inkling2-mini.md) has why each
|
| 101 |
setting, the sizes for 6 and 8 GB cards, the quants, and an RX 480 setup.
|
| 102 |
+
- It assumes one conversation at a time (`-np 1`), through the chat template.
|
| 103 |
- To check that a file loads and computes what it should:
|
| 104 |
|
| 105 |
```bash
|
| 106 |
+
llama-moe-predictor-check inkling2-pred-v5.moepred checks/pred-v5.vec
|
| 107 |
+
llama-moe-predictor-check inkling2-start-v5.moepred checks/start-v5.vec
|
| 108 |
```
|
| 109 |
|
| 110 |
How the cache uses it: [docs/moe-hot-spare.md](https://github.com/Lanilen/llama.cpp/blob/polaris/docs/moe-hot-spare.md#a-learned-predictor---moe-cache-predictor).
|
|
|
|
| 114 |
|
| 115 |
## Results
|
| 116 |
|
| 117 |
+
**Offline, on held-out conversations** (every 5th conversation of each source, 306 answers). The hit rate is the share
|
| 118 |
of the next 128 tokens' expert selections that the experts it ranks highest would serve, at 25 per layer (what a
|
| 119 |
5000 MiB cache holds of the Q8_0: 20% of a layer's experts). *Pooled* gives the layers their 600 slots between them,
|
| 120 |
as the cache does, so the looped layers hold more:
|
| 121 |
|
| 122 |
| tokens into the answer | recent selections (decayed) | this predictor | best possible in hindsight | pooled: decayed | pooled: this predictor | pooled: hindsight |
|
| 123 |
|---|---|---|---|---|---|---|
|
| 124 |
+
| 0 (the answer's start) | 54.1% | **62.8%** | 70.2% | 59.8% | **67.7%** | 74.7% |
|
| 125 |
+
| 64 | 60.2% | **62.1%** | 69.9% | 65.5% | **67.4%** | 74.5% |
|
| 126 |
+
| 256 | 59.7% | **61.4%** | 69.5% | 65.3% | **66.9%** | 74.2% |
|
| 127 |
|
| 128 |
+
At 43 experts a layer (a 4-bit quant in the same 5000 MiB), pooled: 75.5% β 82.2% at the answer's start, against
|
| 129 |
+
88.6% in hindsight. Version 3 scores 66.2% pooled at the start on the same answers.
|
| 130 |
|
| 131 |
**Live** on one AMD Radeon RX 480 (8 GB) with a Threadripper 1920X, a 5000 MiB hot spare, llama-server with the chat
|
| 132 |
template, temperature 0, 256 tokens a request. The share of the selections the cache served, and the generation speed:
|
| 133 |
|
| 134 |
| request | the cache without a predictor | with the predictor | generation |
|
| 135 |
|---|---|---|---|
|
| 136 |
+
| Q8_0, cold | 55.8% | **63.5%** | 11.96 β 12.47 tok/s |
|
| 137 |
+
| Q8_0, a conversation's second turn | 53.3% | **63.0%** | 11.99 β 12.38 tok/s |
|
| 138 |
+
| Q4_K_M, cold | 66.3% | **73.4%** | 14.05 β 14.41 tok/s |
|
| 139 |
+
| Q4_K_M, a conversation's second turn | 66.6% | **75.9%** | 14.31 β 14.54 tok/s |
|
| 140 |
+
|
| 141 |
+
Over nine chat answers, generation is 3.2% faster with the Q8_0 and 2.6% with the Q4_K_M. The speed gains less than the
|
| 142 |
+
hits: there a token waits more on the GPU's many small ops than on the CPU's experts. With UD-Q4_K_XL on the RTX
|
| 143 |
+
4070 Ti setup above, version 3 served 66.0% of the selections against 62.7% without a predictor. These are two
|
| 144 |
+
machines' numbers; the gain depends on how much of the model fits in VRAM and on how slow the CPU's experts are against
|
| 145 |
+
the rest of a token.
|
| 146 |
+
|
| 147 |
+
### Raw completion
|
| 148 |
+
|
| 149 |
+
On the same RX 480, a document continued without the chat template (`llama-completion -no-cnv`, 255 tokens), the
|
| 150 |
+
predictor costs:
|
| 151 |
+
|
| 152 |
+
| | the cache without a predictor | with the predictor |
|
| 153 |
+
|---|---|---|
|
| 154 |
+
| Q8_0, selections served | **66.7%** | 61.8% |
|
| 155 |
+
| Q8_0, time a token | **77.5 ms** | 80.1 ms |
|
| 156 |
+
| Q4_K_M, selections served | **80.3%** | 76.7% |
|
| 157 |
+
|
| 158 |
+
Every version measured does this (versions 3, 4 and 5: 79.3, 79.8 and 80.1 ms a token at Q8_0), and 400 more raw-text
|
| 159 |
+
traces in version 5's training didn't change it. The reasons:
|
| 160 |
+
|
| 161 |
+
- **There is no turn to predict across.** The predictor's gain comes at the start of an answer, where the next experts
|
| 162 |
+
differ from the last ones: a new question, after a prompt, after another answer. A continued document keeps its
|
| 163 |
+
prompt's topic, so the experts the cache already ranks by recent use are the ones the continuation needs.
|
| 164 |
+
- **It starts from a full predicted set.** Without a predictor, a cold cache fills its free slots with what the text
|
| 165 |
+
uses as it goes. With one, it loads the set it predicts and then changes it only within its upload budget, so its
|
| 166 |
+
misses at the start stay longer.
|
| 167 |
|
| 168 |
+
So the predictor is made for the chat template: that is how its training sessions were run and where it pays. For raw
|
| 169 |
+
completion, run the hot spare without `--moe-cache-predictor` and `--moe-cache-predictor-start`.
|
|
|
|
|
|
|
| 170 |
|
| 171 |
## Training data
|
| 172 |
|
| 173 |
The predictor was trained on expert-routing traces: which experts Inkling 2 Mini (ggml-org's Q8_0, in llama.cpp)
|
| 174 |
+
selected for each token and pass, plus the inputs of layers 8 and 16 every 16 tokens. The traces cover 718
|
| 175 |
+
conversations, 2.03M tokens and 2,879 answers, recorded with the model whole on AMD Radeon AI PRO R9700s:
|
| 176 |
|
| 177 |
+
- **213 sessions the model wrote itself:** its own answers to the first messages of the datasets below, in synthetic
|
| 178 |
+
multi-turn sessions through the chat template, 149 of them with `reasoning_effort` 0.1 and 64 at its default.
|
| 179 |
+
- **25 conversations read as given** (teacher-forced) from the same datasets.
|
| 180 |
+
- **480 sessions of raw text,** without the chat template, as `llama-completion` runs it: 240 starts of documents from
|
| 181 |
+
the datasets below for the model to continue and 240 bare requests, 512 tokens each.
|
| 182 |
|
| 183 |
The file holds only the predictor's own weights: no text, no tokens and none of Inkling's weights.
|
| 184 |
|
|
|
|
| 208 |
|
| 209 |
## Training
|
| 210 |
|
| 211 |
+
- **Split:** every 5th conversation of each source is held out (306 answers); the other 2,573 answers train it.
|
| 212 |
+
- **Run:** PyTorch, 6 epochs, 157 seconds on one R9700 (ROCm), and the start file 12 epochs in 19 more.
|
| 213 |
- **The loop:** each layer's target is the selections of all its passes, and its loss is weighed by its passes.
|
| 214 |
- **Export:** to GGUF, then checked against PyTorch on 24 test vectors each (`checks/`): the largest difference
|
| 215 |
+
3.0e-7 for the predictor and 2.2e-7 for the start file.
|
| 216 |
- **Scripts:** tracing, the corpus, training and export are in
|
| 217 |
[`tools/moe-predictor`](https://github.com/Lanilen/llama.cpp/tree/polaris/tools/moe-predictor).
|
| 218 |
|
| 219 |
## Limitations
|
| 220 |
|
| 221 |
+
- **Few long conversations.** 718 traces against the 1,181 behind
|
| 222 |
+
[Flash-Next's predictor](https://huggingface.co/Lanilen/Qwen3.8-Flash-Next-Expert-Predictor). From version 3's 161
|
| 223 |
+
traces to version 5's, chat gained 1β2.5 points of hits and under 1% of speed. Few conversations are long: the
|
| 224 |
+
recording lost the GPU on conversations past 37k tokens.
|
| 225 |
- **One model.** It's tied to Inkling 2 Mini's layers, loop, expert count, hidden size and router. Inkling 2, or a
|
| 226 |
retrained or fine-tuned Mini, needs a predictor trained on its own traces.
|
| 227 |
+
- **Quants.** It was trained on the Q8_0's routing and measured on the Q8_0 and a Q4_K_M (and UD-Q4_K_XL with version 3).
|
| 228 |
+
Other quants route a little differently.
|
| 229 |
- **A current build.** Build the fork's `polaris` as of this file's release or later. Older builds either ignore a
|
| 230 |
predictor for a looped model, or count a looped layer's prediction like a layer that runs once and serve fewer of
|
| 231 |
the selections. Unsloth's mainline files also need upstream llama.cpp's #32704, which the fork has from the same
|
| 232 |
release.
|
| 233 |
+
- **The chat template.** It is made for requests through the chat template. On raw completion it makes the cache
|
| 234 |
+
slower ([Raw completion](#raw-completion)): leave it out there.
|
| 235 |
- **One conversation at a time:** the counts follow a single conversation (`-np 1`).
|
| 236 |
- **It doesn't change outputs.** It only decides where experts are computed. The GPU and the CPU round differently, so
|
| 237 |
text at temperature 0 can still differ slightly from a run with another cache state, as with any cache setting.
|
checks/pred-v5.vec
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8cdd1b9f08aa81d33ade9da016fb45581a729fd45865f14f82024375f41ca6aa
|
| 3 |
+
size 3686528
|
checks/start-v5.vec
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0159bbb69c49e923ce4803c31845058db60f4cb92a45e45e2bbecf14be38031c
|
| 3 |
+
size 2285696
|
inkling2-pred-v5.moepred
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ee75ec679c7aaee58bc59f1f75a106e853956ac9c38267b87f8770518a00993
|
| 3 |
+
size 12972096
|
inkling2-start-v5.moepred
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:221dd44d37217763514d3217ca26cddfa8db02df0fe4f99b9e53991a0ff88224
|
| 3 |
+
size 8188928
|