mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 07:18:50 +00:00
Inkling elastic experts: settings register entries and the docs paragraph
The eight new STRATA_INK_* names (ELASTIC_EXPERTS, ELASTIC_MIN_EXP_MIB, ELASTIC_HEAT, VRAM_GUARD, VRAM_LOW_MIB, VRAM_HIGH_MIB, TC_ATTN_KV8, TC_ATTN_MIN_CTX) are in terminal/data/settings-register.json with their status, and docs/SETTINGS.md is regenerated. docs/INKLING_KV.md describes the elastic expert pool, the guard and the measured numbers (KL included).
This commit is contained in:
1 parent
2ea6cff44f
commit
4b6c028fb9
3 files changed
+601
-288
No files matched your search
@@ -49,6 +49,22 @@ request stopped 1.2 to 1.8 GB short of the context that had been planned ("VRAM
|
||||
request ends with a message that says how much is free and what to do, and the engine stays up;
|
||||
- several slots, layer split and cards without virtual memory keep the earlier growth; `STRATA_INK_KV_VMM=0` takes it back on any card.
|
||||
|
||||
## The elastic expert pool (0.2.25)
|
||||
|
||||
On an NVIDIA card with virtual memory, one slot, the experts live in one virtual address range (`d_sec4`, or the hybrid engine's slot pool) packed in the pack's own order,
|
||||
the 3x-looped core layers first, the 1x layers last. The global K/V does not reserve its full size up front and does not go to host RAM when the card is short: it grows through
|
||||
its own virtual memory, and when the card has less than the K/V needs (256 MiB stay free), whole 2 MiB chunks of the coldest experts go to the K/V. An expert that leaves is copied to a
|
||||
pinned host arena first and then computed by the card itself after a copy-in (the exact lane: the same bits as when it was on the card), staged inside the decode graph; with
|
||||
`STRATA_INK_EXACT=0` the CPU computes it and the answer can differ in rounding. When the conversation ends the K/V goes back to its start size and the experts return.
|
||||
Measured against 0.2.24 behaviour (K/V on host RAM), decode tokens per second, drafter off, SQ-10, FP8 K/V: RTX 4060 Ti 16 GB 200K deep 8.3 -> 27.0; RTX 5070 12 GB 128K deep 8.1 -> 42.7,
|
||||
262K deep 4.1 -> 27.8; short contexts are unchanged. Hybrid loads (the pack does not fit) 4.5 -> 20.5 at 128K, but their prompt processing is not bit-identical to the old placement
|
||||
(it never was between placements: the batched cold-expert path depends on which experts are cold). Teacher-forced KL at 128K against the all-resident run: 0.0032 for the old placement, 0.0032 for the elastic one (0.0002 between the two).
|
||||
|
||||
A live guard (`STRATA_INK_VRAM_GUARD=0` turns it off) watches the card's free memory (on Windows also the other programs' memory through the adapter counters): when another program takes
|
||||
memory the pool gives experts back to the OS (shed), and when it is given back the experts return. `STRATA_INK_ELASTIC_EXPERTS=0` goes back to one allocation and the old K/V
|
||||
placement; `STRATA_INK_ELASTIC_MIN_EXP_MIB` (default 1536) is the floor of experts that stay on the card; `STRATA_INK_VRAM_LOW_MIB` / `_HIGH_MIB` (192 / 512) are the guard's watermarks.
|
||||
RTX 50 16 GB COMPACT, several slots, layer split, AMD and Intel keep their earlier behaviour (see the notes for what is covered).
|
||||
|
||||
## The default context is 128K (0.2.25)
|
||||
|
||||
A start that names no context gets 128K (131072 tokens) on every machine, 8 GB cards included: where the K/V of 128K does not fit the card it goes to host RAM (2.15 GB at 128K
|
||||
|
||||
+7
-3
@@ -10,7 +10,7 @@ debugging and are kept in `terminal/data/settings-register.json`.
|
||||
A number or a word is set like any environment variable, for example `STRATA_KVA=1`. In the Terminal, `strata launch --set NAME=value`
|
||||
puts it in the model's run configuration.
|
||||
|
||||
## Switches you can turn on (457)
|
||||
## Switches you can turn on (459)
|
||||
|
||||
Off unless you set them. The last column says where each one is described.
|
||||
|
||||
@@ -137,6 +137,7 @@ Off unless you set them. The last column says where each one is described.
|
||||
| `STRATA_INK_DFLASH2_FORCE` | on / off | NVIDIA and AMD | [MODELS.md](MODELS.md) |
|
||||
| `STRATA_INK_DYNAMIC_PINNED_MIB` | number | NVIDIA and AMD | [DETAILS.md](DETAILS.md) |
|
||||
| `STRATA_INK_ELASTIC_1M` | text | NVIDIA and AMD | [INKLING_SM120.md](INKLING_SM120.md) |
|
||||
| `STRATA_INK_ELASTIC_HEAT` | on / off | NVIDIA and AMD | - |
|
||||
| `STRATA_INK_FAST_KERNELS` | on / off | NVIDIA and AMD | [AMD_HIP.md](AMD_HIP.md) |
|
||||
| `STRATA_INK_INTELARC` | text | Intel Arc | - |
|
||||
| `STRATA_INK_INTELARC_EXACT` | text | Intel Arc | - |
|
||||
@@ -228,6 +229,7 @@ Off unless you set them. The last column says where each one is described.
|
||||
| `STRATA_INK_STRIXHALO_ZEN5` | text | AMD | - |
|
||||
| `STRATA_INK_TAIL_SKIP` | on / off | NVIDIA and AMD | [INKLING_TURBO.md](INKLING_TURBO.md) |
|
||||
| `STRATA_INK_TC_ATTN_DEPTH` | on / off | NVIDIA and AMD | [INKLING_SM120.md](INKLING_SM120.md) |
|
||||
| `STRATA_INK_TC_ATTN_KV8` | on / off | NVIDIA and AMD | - |
|
||||
| `STRATA_INK_TC_ATTN_NBUF` | on / off | NVIDIA and AMD | [INKLING_SM120.md](INKLING_SM120.md) |
|
||||
| `STRATA_INK_TC_ATTN_SPLITS` | number | NVIDIA and AMD | - |
|
||||
| `STRATA_INK_TOPUP_MAXB` | number | AMD | - |
|
||||
@@ -474,7 +476,7 @@ Off unless you set them. The last column says where each one is described.
|
||||
| `STRATA_WATCHDOG_S` | text | NVIDIA and AMD, Intel Arc | [DETAILS.md](DETAILS.md) |
|
||||
| `STRATA_WDDM_BUDGET` | number | AMD, Intel Arc | [AMD_HIP.md](AMD_HIP.md) |
|
||||
|
||||
## Switches that go back to earlier behaviour (156)
|
||||
## Switches that go back to earlier behaviour (158)
|
||||
|
||||
These behaviours are on by default. Setting the switch returns the earlier behaviour; the notes in the register say which
|
||||
version made it the default.
|
||||
@@ -516,6 +518,7 @@ version made it the default.
|
||||
| `STRATA_INK_5090_DRAFTPOL` | text | NVIDIA | v0.2.24 | - |
|
||||
| `STRATA_INK_5090_PF_ATOMIC` | on / off | NVIDIA and AMD | v0.2.24 | - |
|
||||
| `STRATA_INK_CHUNK_AUTO` | number | NVIDIA and AMD | v0.2.21 | - |
|
||||
| `STRATA_INK_ELASTIC_EXPERTS` | on / off | NVIDIA and AMD | - | [INKLING_KV.md](INKLING_KV.md) |
|
||||
| `STRATA_INK_EXACT_GRAPH` | on / off | NVIDIA and AMD | v0.2.21 | - |
|
||||
| `STRATA_INK_EXACT_ROWS` | on / off | AMD | v0.2.21 | - |
|
||||
| `STRATA_INK_GGUF_CHUNK256` | on / off | NVIDIA and AMD | v0.2.23 | - |
|
||||
@@ -544,6 +547,7 @@ version made it the default.
|
||||
| `STRATA_INK_SM120_PFQ` | on / off | NVIDIA | v0.2.23 | - |
|
||||
| `STRATA_INK_SPLIT` | on / off | NVIDIA and AMD | v0.2.21 | - |
|
||||
| `STRATA_INK_TIER` | on / off | NVIDIA and AMD | v0.2.21 | - |
|
||||
| `STRATA_INK_VRAM_GUARD` | on / off | NVIDIA and AMD | - | [INKLING_KV.md](INKLING_KV.md) |
|
||||
| `STRATA_IQ_MT_MIN` | on / off | NVIDIA and AMD, CPU | v0.2.16 | [BATCHING.md](BATCHING.md), [DETAILS.md](DETAILS.md), [OLDER_GPUS.md](OLDER_GPUS.md) |
|
||||
| `STRATA_KEEP_MAPPING` | on / off | NVIDIA and AMD | v0.2.16 | - |
|
||||
| `STRATA_KV_HOST_DMA` | on / off | NVIDIA and AMD, Intel Arc | v0.2.16 | [TROUBLESHOOTING.md](TROUBLESHOOTING.md) |
|
||||
@@ -564,7 +568,7 @@ version made it the default.
|
||||
| `STRATA_METAL_MTP_OVERLAP` | on / off | Mac | v0.2.16 | - |
|
||||
| `STRATA_METAL_MTP_Q8` | on / off | Mac | v0.2.16 | [MAC.md](MAC.md) |
|
||||
| `STRATA_METAL_WRAP_PLE` | on / off | Mac | v0.2.16 | - |
|
||||
| `STRATA_MLA_MMA` | on / off | NVIDIA and AMD | v0.2.24 | - |
|
||||
| `STRATA_MLA_MMA` | on / off | NVIDIA and AMD | - | - |
|
||||
| `STRATA_MMVQ_A2` | number | Intel Arc | v0.2.16 | [INTEL.md](INTEL.md) |
|
||||
| `STRATA_MMVQ_IL` | on / off | NVIDIA and AMD | v0.2.16 | [MMVQ_IL_TABLE.md](MMVQ_IL_TABLE.md), [OLDER_GPUS.md](OLDER_GPUS.md), [README.md](bench-results/2026-10-07-v100-decode-kernels/README.md) |
|
||||
| `STRATA_MMVQ_IL_SM80` | text | NVIDIA and AMD | v0.2.16 | [DETAILS.md](DETAILS.md), [MMVQ_IL_TABLE.md](MMVQ_IL_TABLE.md), [release-notes-0.2.7.md](release-notes-0.2.7.md) |
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user