diff --git a/README.md b/README.md index 183ba25..c43e5a8 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,8 @@ unbiased-strata --engine -m [llama-server option (`--host`, `--port`, `--api-key`, `--alias`, `--temp`, `--top-k`, `--top-p`, `--min-p`, `--reasoning-format`, `--chat-template-kwargs`, `--sse-ping-interval`, ...); everything after `--` goes to the engine, which is started as a child process with `--serve` added and spoken to over its line protocol -([docs/BACKENDS.md](docs/BACKENDS.md)). The server answers `/v1/chat/completions` (streaming and not), `/v1/models`, +([docs/BACKENDS.md](docs/BACKENDS.md)). Where the model ends up (GPU cache, pinned RAM, SSD) and the three expert +modes: [docs/MEMORY_LAYOUT.md](docs/MEMORY_LAYOUT.md). The server answers `/v1/chat/completions` (streaming and not), `/v1/models`, `/health`, `/props`, `/tokenize`, `/detokenize`, as llama.cpp's server does, one request at a time. ``` @@ -100,8 +101,9 @@ build/bin/unbiased-strata --engine build/bin/strata \ `strata-poly` reads a GGUF as it is. `strata` needs a pack directory and an MTP draft directory made once, offline except for the draft download, with upstream's tools (`tools/requirements.txt`: numpy, regex; `gguf-py` comes from the -submodule). This is what upstream's installer ran; it has not been re-run in this fork, which used the pack and MTP -directory upstream's installer made on 2026-10-05 (`docs/MODEL-FILES.md`). +submodule). This is what upstream's installer ran. Re-run in this fork on 2026-10-20 on three hosts; the MTP directory +came out byte-identical each time, so it is published, with the commands and hashes, at +https://huggingface.co/robertkarl/UnbiasedStrataPacks: copy it instead of fetching and quantizing. ``` python tools/iq_pack.py --gguf --out # --compat-bf16 for Unsloth files diff --git a/docs/MEMORY_LAYOUT.md b/docs/MEMORY_LAYOUT.md new file mode 100644 index 0000000..9397e24 --- /dev/null +++ b/docs/MEMORY_LAYOUT.md @@ -0,0 +1,74 @@ +# Where the model lives: GPU, RAM, SSD + +Qwen3.8 Flash-Next GSQ-RCO on a 16 GB VRAM frame, measured 2026-10-20 (Coder IQ1_M, RTX 3090, arena mode). + +![Strata memory layout, arena mode](strata-visualized.png) + +(`strata-mem-layout.excalidraw` is the source of the drawing.) + +The model is two GGUF shards: shard 1 (29.6 GB for Coder) holds the experts, dense layers and attention; shard 2 +(28.8 GB, the same file for every GSQ-RCO quant) is the n-gram table. The engine never holds all of it anywhere. + +## GPU + +| what | Coder, `--vram-reserve-mib 8700` on a 24 GB card | +|---|---| +| expert cache | 9.28 GiB, 4,881 slots: the experts ranked highest in `--expert-profile`, pre-filled at start | +| dense layers, attention weights | the non-expert part of shard 1 | +| MTP draft layer | 820 MiB (`--mtp`) | +| KV cache, resident part | `--kv-resident 32768` cells of the 131,072-cell context, rotated q4_0 | +| prompt path | borrows 2,223 of the cache's slots (4.18 GiB) during prefill; not extra memory | + +`--vram-reserve-mib N` is the binding cap: the cache sizes itself to what is left, and `--expert-cache N` is +clamped to it. Peak during a 99k-token prompt: 16,024 MiB. + +## RAM + +What is in RAM depends on the expert mode. The cache in VRAM is the same in all three; the difference is where a +cache miss is served from. + +| mode | flag | in RAM | a miss is | +|---|---|---|---| +| arena (default) | none | the whole expert set, page-locked with `cudaHostRegister` (23.4 GiB for Coder, ~30 GiB for IQ2_XS) | a DMA read over PCIe; the GPU computes every expert | +| resident | `--resident-experts` | only the complement of the GPU cache, page-locked (24 GiB for IQ2_XS at 7,389 slots) | the same, for what fits; the memory probe sizes the copy with 4 GiB of headroom | +| mmap | `--mmap-experts` | nothing on purpose; the shards are mapped and the page cache holds what was touched | a page fault on the decode path, computed by the CPU pool | + +Two more residents in every mode: the KV cells that are not in VRAM, in 0.84 GiB of pinned RAM, streamed in on +demand; and the engine itself (about 2 GiB over the arena: 26.4 GiB RSS for Coder). + +Measured on the same 3090 with 40 % of Coder's experts in VRAM: arena 67-99 tok/s decode, mmap 20 tok/s. The mmap +mode is for a machine whose GPU holds most of the experts; a 16 GB frame is not that machine. + +`--resident-experts` falls back to mmap, silently, when the memory probe fails. It fails inside RunPod containers +(cgroup v1 with a hybrid `0::/docker/...` line, [issue #16](https://github.com/robertkarl/UnbiasedStrata/issues/16)). +The arena mode reads the limit through the memory guard instead and works there. + +## SSD, and the page-cache trap + +The n-gram table (shard 2, 28.8 GB) is read a few rows per token. `--ple-io direct`, the default, reads them +unbuffered: the table never occupies RAM. `--ple-io mmap` maps it and `--ple-io ram` copies it; both are for drives +too slow for the direct reads. + +With `mmap`, the hot rows accumulate in the page cache, which is the strip at the bottom of the RAM box in the drawing. +On a box with RAM to spare that strip grows until the table's working set is in memory, and the run is no longer the +run of the machine it claims to be. The Coder run above, on a pod with a 125 GB cgroup, showed 25.5 GiB of RSS next to +65 GiB of page cache with 24 GiB of it mapped file pages; a 32 GB machine would have been evicting those pages and +faulting them back. Both runs were restarted with `--ple-io direct` (decode 47-50 tok/s on the pod, which is the honest +number). + +Rules for a RAM-framed measurement: + +1. Anonymous plus pinned memory is the frame. Page cache is not a free tier; read the cache and mapped-file columns of + whatever samples the box before believing a RAM number. +2. `--ple-io direct`. +3. Arena or `--resident-experts`, never `--mmap-experts`, so the experts' cost shows up as RSS where the frame pays for + it, not in latency. +4. Prefer a box whose RAM actually bounds the run (a VM sized to the frame); a cgroup you cannot shrink is observed, + not enforced. + +## Pre-built artifacts + +The MTP draft directory (787 MB) is a deterministic product of `tools/mtp_fetch.py`, `tools/mtp_pack.py` and +`tools/mtp_rt.py`; three builds on two hosts produced byte-identical files. It and the expert profile for the +2026-10-17 Coder shard are at https://huggingface.co/robertkarl/UnbiasedStrataPacks, with the commands and hashes +in its README, so a new host copies them instead of fetching 5.2 GB of BF16 tensors and quantizing. diff --git a/docs/strata-mem-layout.excalidraw b/docs/strata-mem-layout.excalidraw new file mode 100644 index 0000000..7a6d170 --- /dev/null +++ b/docs/strata-mem-layout.excalidraw @@ -0,0 +1,1304 @@ +{ + "type": "excalidraw", + "version": 2, + "source": "http://localhost:3000", + "elements": [ + { + "id": "1FRrl3RQDcdEPllOnwhQt", + "type": "rectangle", + "x": 168, + "y": 808, + "width": 572, + "height": 78, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a0", + "roundness": { + "type": 3 + }, + "seed": 1780431590, + "version": 106, + "versionNonce": 186210490, + "isDeleted": false, + "boundElements": [ + { + "id": "PcM0s0nIfruqxllXO-aTD", + "type": "arrow" + } + ], + "updated": 1792526728364, + "link": null, + "locked": false + }, + { + "id": "JI8pIH3qH_n5kIr1nPGRs", + "type": "line", + "x": 496, + "y": 805, + "width": 0, + "height": 87, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a1", + "roundness": { + "type": 2 + }, + "seed": 1343072762, + "version": 153, + "versionNonce": 816356858, + "isDeleted": false, + "boundElements": null, + "updated": 1792525998719, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 87 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "vkgeIRxr55F2liShxWp6W", + "type": "text", + "x": 225, + "y": 827.5, + "width": 193.28334045410156, + "height": 25, + "angle": 0, + "strokeColor": "#1971c2", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a2", + "roundness": null, + "seed": 1443254118, + "version": 146, + "versionNonce": 2044974202, + "isDeleted": false, + "boundElements": null, + "updated": 1792526760387, + "link": null, + "locked": false, + "text": "expert cache - 9GB", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "expert cache - 9GB", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "S8kVB5UsY55UVAgOzHiBz", + "type": "text", + "x": 511, + "y": 822.5, + "width": 180.6999969482422, + "height": 50, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a3", + "roundness": null, + "seed": 1423407910, + "version": 178, + "versionNonce": 485006330, + "isDeleted": false, + "boundElements": null, + "updated": 1792526415309, + "link": null, + "locked": false, + "text": "dense layers.\nattention weights.", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "dense layers.\nattention weights.", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "Igq-nPdfNJ2fYHIQF2Elx", + "type": "line", + "x": 675.204857721439, + "y": 802.6232723513525, + "width": 0, + "height": 87, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a4", + "roundness": { + "type": 2 + }, + "seed": 1989370662, + "version": 116, + "versionNonce": 1639288870, + "isDeleted": true, + "boundElements": [], + "updated": 1792526412826, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 87 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "LpgERazVjTB4yd6_gEro6", + "type": "text", + "x": 344, + "y": 756.5, + "width": 112.31666564941406, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a5", + "roundness": null, + "seed": 927096954, + "version": 37, + "versionNonce": 1179650042, + "isDeleted": false, + "boundElements": null, + "updated": 1792525635089, + "link": null, + "locked": false, + "text": "16 GB GPU", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "16 GB GPU", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "GYl85UlIVr5njML-VUYBw", + "type": "rectangle", + "x": 170, + "y": 973, + "width": 1030, + "height": 202, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a6", + "roundness": { + "type": 3 + }, + "seed": 917053862, + "version": 116, + "versionNonce": 650917562, + "isDeleted": false, + "boundElements": null, + "updated": 1792525537228, + "link": null, + "locked": false + }, + { + "id": "YyxQOYvjjA_5EbFup5oT8", + "type": "text", + "x": 609, + "y": 931.5, + "width": 114.86666870117188, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a7", + "roundness": null, + "seed": 306395386, + "version": 31, + "versionNonce": 1725689894, + "isDeleted": false, + "boundElements": null, + "updated": 1792525632053, + "link": null, + "locked": false, + "text": "64 GB RAM", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "64 GB RAM", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "M6DKNqSzAN1zzoL55fha1", + "type": "rectangle", + "x": 138, + "y": 699, + "width": 1135, + "height": 1086, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a8", + "roundness": { + "type": 3 + }, + "seed": 321315494, + "version": 143, + "versionNonce": 1602839718, + "isDeleted": false, + "boundElements": null, + "updated": 1792525658791, + "link": null, + "locked": false + }, + { + "id": "B3Y95fvKOcX1i6tlBLTB1", + "type": "text", + "x": 448, + "y": 584.5, + "width": 282.20001220703125, + "height": 150, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "a9", + "roundness": null, + "seed": 1011650106, + "version": 131, + "versionNonce": 1781697382, + "isDeleted": false, + "boundElements": null, + "updated": 1792525811399, + "link": null, + "locked": false, + "text": "Strata.\nQwen 3.8 Flash Next - Coder\n58GB of model weights\nArena mode.\n\n", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "Strata.\nQwen 3.8 Flash Next - Coder\n58GB of model weights\nArena mode.\n\n", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "m-e4xe2PPDyD_pWHwtOTI", + "type": "line", + "x": 1200, + "y": 1066.6232723513524, + "width": 1029.50129427034, + "height": 0, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aA", + "roundness": { + "type": 2 + }, + "seed": 1098929786, + "version": 195, + "versionNonce": 2115553594, + "isDeleted": false, + "boundElements": [], + "updated": 1792525600282, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + -1029.50129427034, + 0 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "1IeLXDqiFMBTpat5Ou7Sq", + "type": "line", + "x": 904.0526119163725, + "y": 972.3922792606055, + "width": 0, + "height": 87, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aB", + "roundness": { + "type": 2 + }, + "seed": 1539191078, + "version": 120, + "versionNonce": 1947659366, + "isDeleted": false, + "boundElements": [], + "updated": 1792525606066, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 87 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "7tUWywhxV0rcJu7tZ1Ffj", + "type": "text", + "x": 234, + "y": 1004.5, + "width": 570.25, + "height": 25, + "angle": 0, + "strokeColor": "#1971c2", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aC", + "roundness": null, + "seed": 30899834, + "version": 78, + "versionNonce": 1664022950, + "isDeleted": false, + "boundElements": null, + "updated": 1792526758388, + "link": null, + "locked": false, + "text": "Experts - all pinned in memory. `cudaHostRegister`. 23GB", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "Experts - all pinned in memory. `cudaHostRegister`. 23GB", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "L0JySu9eLMY7qENBg_DKQ", + "type": "rectangle", + "x": 174, + "y": 1249, + "width": 1058, + "height": 518, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aD", + "roundness": { + "type": 3 + }, + "seed": 1343373434, + "version": 349, + "versionNonce": 739448442, + "isDeleted": false, + "boundElements": [], + "updated": 1792526113632, + "link": null, + "locked": false + }, + { + "id": "M119obC_2Y4CJZt2n8Dtz", + "type": "text", + "x": 586, + "y": 1196.5, + "width": 165.28334045410156, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aE", + "roundness": null, + "seed": 1297739578, + "version": 20, + "versionNonce": 1692831098, + "isDeleted": false, + "boundElements": null, + "updated": 1792525670295, + "link": null, + "locked": false, + "text": "SSD - terabytes.", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "SSD - terabytes.", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "u25W6ZWNXuaB1TY5HoNHi", + "type": "text", + "x": 316, + "y": 1271.5, + "width": 191.96665954589844, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aF", + "roundness": null, + "seed": 1878982778, + "version": 27, + "versionNonce": 1433844070, + "isDeleted": false, + "boundElements": [ + { + "id": "hJOCn5huDAXI19rsJ4Ha6", + "type": "arrow" + } + ], + "updated": 1792526100171, + "link": null, + "locked": false, + "text": "ngram table - 29GB", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "ngram table - 29GB", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "pg062XSxtdkbn1ye2YMXv", + "type": "line", + "x": 1225.8349338696923, + "y": 1407.7086265756866, + "width": 1053.50129427034, + "height": 0, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aG", + "roundness": { + "type": 2 + }, + "seed": 1483765242, + "version": 329, + "versionNonce": 1911829306, + "isDeleted": false, + "boundElements": [], + "updated": 1792525686657, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + -1053.50129427034, + 0 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "KYKngmOMJozNZRsiE_Zsq", + "type": "text", + "x": 651, + "y": 831.5, + "width": 69.94999694824219, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aH", + "roundness": null, + "seed": 2050769786, + "version": 10, + "versionNonce": 138712742, + "isDeleted": true, + "boundElements": null, + "updated": 1792525976353, + "link": null, + "locked": false, + "text": "buffers", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "buffers", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "gYXXZCF9k_FrUQMrPIJXZ", + "type": "line", + "x": 709.4518483777321, + "y": 804.3922792606055, + "width": 0, + "height": 87, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aI", + "roundness": { + "type": 2 + }, + "seed": 1594733690, + "version": 194, + "versionNonce": 1250509222, + "isDeleted": false, + "boundElements": [], + "updated": 1792526410894, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 87 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "_-bHWn6oSIkQEjjzY_U2r", + "type": "text", + "x": 700, + "y": 832.5, + "width": 46.41666793823242, + "height": 25, + "angle": 1.5707963267948957, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aJ", + "roundness": null, + "seed": 1605260838, + "version": 99, + "versionNonce": 1180815462, + "isDeleted": false, + "boundElements": null, + "updated": 1792526409370, + "link": null, + "locked": false, + "text": "MTP", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "MTP", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "ufxOeTeEybBM-TBHLNZQm", + "type": "line", + "x": 370.49870572966006, + "y": 806.6232723513525, + "width": 0, + "height": 87, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "dashed", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aK", + "roundness": { + "type": 2 + }, + "seed": 59173158, + "version": 213, + "versionNonce": 786132454, + "isDeleted": false, + "boundElements": [], + "updated": 1792526000998, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 87 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "TfdRZ4SfMzL-iey1fT8gV", + "type": "text", + "x": 201, + "y": 915.5, + "width": 292.54998779296875, + "height": 40, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "dashed", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aL", + "roundness": null, + "seed": 126335482, + "version": 64, + "versionNonce": 1642700090, + "isDeleted": false, + "boundElements": [ + { + "id": "PcM0s0nIfruqxllXO-aTD", + "type": "arrow" + } + ], + "updated": 1792525925461, + "link": null, + "locked": false, + "text": "part of the expert cache is co-opted\nduring prefill.", + "fontSize": 16, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "part of the expert cache is co-opted\nduring prefill.", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "PcM0s0nIfruqxllXO-aTD", + "type": "arrow", + "x": 297, + "y": 920, + "width": 131.6508882352946, + "height": 28.5, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aM", + "roundness": { + "type": 2 + }, + "seed": 1194477498, + "version": 200, + "versionNonce": 265537894, + "isDeleted": false, + "boundElements": null, + "updated": 1792526727713, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 131.6508882352946, + -28.5 + ] + ], + "startBinding": { + "elementId": "TfdRZ4SfMzL-iey1fT8gV", + "mode": "inside", + "fixedPoint": [ + 0.3281490480455501, + 0.1125 + ] + }, + "endBinding": { + "elementId": "1FRrl3RQDcdEPllOnwhQt", + "mode": "orbit", + "fixedPoint": [ + 0.5001, + 1 + ] + }, + "startArrowhead": null, + "endArrowhead": "arrow", + "elbowed": false, + "moveMidPointsWithElement": false + }, + { + "id": "wOhFGo55mMRvz2VwkcEP5", + "type": "line", + "x": 944.2361179286966, + "y": 973.5472411412701, + "width": 0, + "height": 87, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aN", + "roundness": { + "type": 2 + }, + "seed": 1741520378, + "version": 142, + "versionNonce": 585485754, + "isDeleted": false, + "boundElements": [], + "updated": 1792525950442, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 0, + 87 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + }, + { + "id": "IzWUo1yBB8pNzfcT9zSfo", + "type": "text", + "x": 918, + "y": 979.5, + "width": 24.100000381469727, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aO", + "roundness": null, + "seed": 423370938, + "version": 8, + "versionNonce": 700029350, + "isDeleted": false, + "boundElements": [ + { + "id": "3p6rAhD8bkEZv0MOVG3-o", + "type": "arrow" + } + ], + "updated": 1792525966628, + "link": null, + "locked": false, + "text": "KV", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "KV", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "bkQnGDztZkGZCXEFtWkfg", + "type": "text", + "x": 921, + "y": 882.5, + "width": 254.46665954589844, + "height": 50, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aP", + "roundness": null, + "seed": 460939322, + "version": 45, + "versionNonce": 342733926, + "isDeleted": false, + "boundElements": [ + { + "id": "3p6rAhD8bkEZv0MOVG3-o", + "type": "arrow" + } + ], + "updated": 1792525965444, + "link": null, + "locked": false, + "text": "a portion of the KV cache\nlives here", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "a portion of the KV cache\nlives here", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "3p6rAhD8bkEZv0MOVG3-o", + "type": "arrow", + "x": 963, + "y": 930, + "width": 28.953942559623897, + "height": 43.499999999999886, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aQ", + "roundness": { + "type": 2 + }, + "seed": 1993587366, + "version": 44, + "versionNonce": 1722111590, + "isDeleted": false, + "boundElements": null, + "updated": 1792525966628, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + -28.953942559623897, + 43.499999999999886 + ] + ], + "startBinding": { + "elementId": "bkQnGDztZkGZCXEFtWkfg", + "mode": "inside", + "fixedPoint": [ + 0.1650510918599315, + 0.95 + ] + }, + "endBinding": { + "elementId": "IzWUo1yBB8pNzfcT9zSfo", + "mode": "orbit", + "fixedPoint": [ + 0.5001, + 0 + ] + }, + "startArrowhead": null, + "endArrowhead": "arrow", + "elbowed": false + }, + { + "id": "m994leFI04KKmHS7MJNPd", + "type": "text", + "x": 206, + "y": 1085.5, + "width": 728.2666625976562, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aR", + "roundness": null, + "seed": 943722554, + "version": 72, + "versionNonce": 349538746, + "isDeleted": false, + "boundElements": [ + { + "id": "hJOCn5huDAXI19rsJ4Ha6", + "type": "arrow" + } + ], + "updated": 1792526182598, + "link": null, + "locked": false, + "text": "RAM page cache - managed by system and populated with ngram hot pages", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "RAM page cache - managed by system and populated with ngram hot pages", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "hJOCn5huDAXI19rsJ4Ha6", + "type": "arrow", + "x": 360, + "y": 1280, + "width": 248.0501105758775, + "height": 163.5, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aS", + "roundness": { + "type": 2 + }, + "seed": 1569628070, + "version": 105, + "versionNonce": 1001407098, + "isDeleted": false, + "boundElements": null, + "updated": 1792526182599, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + 248.0501105758775, + -163.5 + ] + ], + "startBinding": { + "elementId": "u25W6ZWNXuaB1TY5HoNHi", + "mode": "inside", + "fixedPoint": [ + 0.22920646795689947, + 0.34 + ] + }, + "endBinding": { + "elementId": "m994leFI04KKmHS7MJNPd", + "mode": "orbit", + "fixedPoint": [ + 0.5861185825713919, + 0.5861185825713983 + ] + }, + "startArrowhead": null, + "endArrowhead": "arrow", + "elbowed": false, + "moveMidPointsWithElement": false + }, + { + "id": "sj2f9SsOxed4ir8vLMjp8", + "type": "text", + "x": 874, + "y": 711.5, + "width": 217.96665954589844, + "height": 25, + "angle": 0, + "strokeColor": "#1e1e1e", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 2, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aT", + "roundness": null, + "seed": 2015547366, + "version": 28, + "versionNonce": 167133094, + "isDeleted": false, + "boundElements": null, + "updated": 1792526122777, + "link": null, + "locked": false, + "text": "approximately to scale", + "fontSize": 20, + "fontFamily": 5, + "textAlign": "left", + "verticalAlign": "top", + "containerId": null, + "originalText": "approximately to scale", + "autoResize": true, + "lineHeight": 1.25 + }, + { + "id": "ZeAqDbscLwgdRw1zVWx5z", + "type": "line", + "x": 282, + "y": 630, + "width": 55, + "height": 43, + "angle": 0, + "strokeColor": "#e3fafc", + "backgroundColor": "transparent", + "fillStyle": "solid", + "strokeWidth": 1, + "strokeStyle": "solid", + "roughness": 1, + "opacity": 100, + "groupIds": [], + "frameId": null, + "index": "aU", + "roundness": { + "type": 2 + }, + "seed": 1626290982, + "version": 62, + "versionNonce": 1457715174, + "isDeleted": true, + "boundElements": null, + "updated": 1792526733574, + "link": null, + "locked": false, + "points": [ + [ + 0, + 0 + ], + [ + -55, + 43 + ] + ], + "startBinding": null, + "endBinding": null, + "startArrowhead": null, + "endArrowhead": null, + "polygon": false + } + ], + "appState": { + "gridSize": 20, + "gridStep": 5, + "gridModeEnabled": false, + "viewBackgroundColor": "#ffffff", + "lockedMultiSelections": {} + }, + "files": {} +} \ No newline at end of file diff --git a/docs/strata-visualized.png b/docs/strata-visualized.png new file mode 100644 index 0000000..eaeab75 Binary files /dev/null and b/docs/strata-visualized.png differ