Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
Layer split: measured results (bench/results/2026-09-29-layer-split) and the recommendations in docs/MULTI_GPU.md
Niko12216f1a24defb3d
diff --git a/bench/results/2026-09-29-layer-split/README.md b/bench/results/2026-09-29-layer-split/README.mdnew file mode 100644index 000000000..363b1a1ce--- /dev/null+++ b/bench/results/2026-09-29-layer-split/README.md@@ -0,0 +1,84 @@+# Layer split across GPUs (2026-09-29)++**Rig (a community member's PC, "RIBPC"):**+- Ryzen 9 9950X3D, 62 GB DDR5, Windows 11, CUDA 13.1.+- RTX 5080 16 GB (x16), RTX 3090 24 GB (x4 gen4, ~6 GB/s), RTX 2080 Ti 22 GB (x4 gen3, Turing sm_75; the+ experimental `STRATA_EXPERIMENTAL_SM75` build).++**Model:** the Coder (GSQ-RCO IQ1_M, 48 layers x 256 experts = 12,288 expert pairs, ~23 GB of experts), 32K+context, int8 KV, `--prefill auto`, `--spec 4`. It is the only model that fits the rig's RAM and disk.++**Tools:** `rib_pp.py` (needle prompts at 2.7K/8K/16K/28K tokens with a code word at 50% depth, a 2-turn chat that+must reuse its checkpoint, greedy decode of a story and a code prompt) and `rib_norepeat.py` (the Phase A+no-repeat and sanity cases). Raw results are in `data/`.++## Correctness++| Check | Result |+|---|---|+| This branch vs the 0.1.20 release, one GPU (5080), fixed cache, all 10 cases | **10/10 byte-identical** |+| This branch, one GPU vs the split on the same GPU (K=24, `--split-device 0`) | **10/10 byte-identical**: the hand-off is exact |+| 5080 + 3090 (auto) and 5080 + 2080 Ti + 3090 (auto): no-repeat under presence 100 (greedy and sampled), 144 sanity | all pass, 0 repeats |+| Needles at 2.7K-28K tokens, every configuration | all found |+| 2-turn chat (the checkpoint restored on every GPU) | reused 6,631-6,632 of 6,660 tokens, answer right |++Across GPUs the text is not byte-identical to one GPU: experts the CPU computed on one card run on a GPU in the split,+and they round differently (the same effect as `--expert-cache`, bench/results/2026-09-27-cache-parity).++## Speed++**Prompt tok/s** at 16K / 28K tokens, and **decode tok/s** for story / code (greedy; three repeats averaged+in the K sweep):++| Configuration | Split | Prompt 16K | Prompt 28K | Decode story | Decode code | Decode hits |+|---|---|---|---|---|---|---|+| 0.1.20, 5080 alone | - | 2,045 | 2,005 | 83.2 | 88.2 | 70-84% |+| this branch, 5080 alone | - | 2,017 | 1,974 | 83.1 | 88.0 | 70-84% |+| this branch, 5080 alone, 3 repeats (adaptive swaps learn the prompt) | - | 1,726 | 1,970 | 86.7 | 105.2 | 91-92% |+| 3090 alone | - | 1,253 | 1,211 | 71.7 | 92.9 | 86-93% |+| 5080 + 3090 | K=18 | 1,547 | 1,694 | 77.2 | 103.8 | 99.9% |+| 5080 + 3090 | K=22 | 1,840 | 2,074 | 80.2 | 106.4 | 99.8% |+| 5080 + 3090 | K=24 | 1,978 | 2,258 | 83.5 | 109.5 | 99.5% |+| **5080 + 3090** | **K=26** | **2,039** | **2,357** | **83.8** | **109.7** | 99.3% |+| 5080 + 3090 | K=28 | 2,011 | 2,287 | 83.5 | 112.5 | 99.0% |+| 5080 + 3090 | K=30 | 1,935 | 2,218 | 81.1 | 109.6 | 98% |+| 5080 + 3090 | K=32 | 1,818 | 2,063 | 83.0 | 108.7 | 98% |+| 5080 + 3090 | auto (K=22) | 2,037 | 2,073 | 79.5 | 108.9 | 99.7% |+| 3090 + 5080 | auto (K=30) | 1,672 | 1,876 | 90.3 | 105.1 | 99.4% |+| 5080 + 2080 Ti + 3090 | auto (22, 23) | 1,687 | 1,847 | 67.6 | 89.6 | 99.7% |+| 5080 + 3090 + 2080 Ti | first auto (12, 33) | 1,148 | 1,144 | 51.9 | 69.7 | 100% |+| 5080 + 2080 Ti | first auto | 914 | 906 | 45.5 | 58.0 | 97% |++What decides it:++- **The best two-GPU split for the Coder is K=26-28.** Prompts run +18-20% over the 5080 alone at 16-28K;+ decode is on par for story and +4-7% for code.+- **Residency saturates quickly: the per-layer GPU speed decides.** From K=18 up, both caches hold 98-100% of+ the routed experts. Moving layers to the faster card is what helps: the 3090 costs 0.50 ms per layer per+ window, the 5080 0.33 (`STRATA_SPLIT_TIMING`, the "wait for the GPU" per stage).+- **Decode is bounded by that GPU time.** One 5080 with its cache adapted spends 16.3 ms waiting for its GPU and+ 5.5 ms in the CPU pool per window. The split removes the pool (0.8-1.0 ms) but adds the slower card's layers:+ 7.9 + 12.1 ms at K=24. The per-layer GPU half (kernels plus the host round trip that publishes each layer's+ expert plan) is the next thing to cut, for one GPU as well (perf-review-plan E-6).+- **A third, slower card costs more than it holds.** The 2080 Ti's one-layer stage took 3.1 ms per window.+ For a model that already fits two cards, leave it out. It pays only when the two faster cards cannot hold most+ of the routed experts (a bigger model; not testable on this rig's 62 GB of RAM).+- **Prompt chunk:** 1024 instead of 2048 frees ~0.7 GB per card, but prompts read 7-12% slower.++## Auto placement++`--layer-split auto` predicts one decode window's time for every placement (every placement up to three GPUs) and+keeps the fastest:++- **per-layer time** from SMs x clock (0.33 ms for an RTX 5080);+- **cache contents:** each card's layers' profiled pairs, hottest first, as the fill does;+- **routed mass** of rank r taken as (r+1)^-1.2 (fits the sweep's hit rates within 0.1-1%);+- **missed mass** costing 190 ms per unit (fitted to the sweep's best K; `STRATA_SPLIT_MISS_MS` overrides).++It picked K=22 on the 5080 + 3090: within 0-12% of the best fixed split on prompts and on par on decode. It gives+a slow third card a single layer.++## Reproduce++On a rig: the `strata-remote` tools, then `rib_matrix.bat`, `rib_ksweep.bat`, `rib_validate.bat` (in the dev+notes, not in this repository).diff --git a/bench/results/2026-09-29-layer-split/data/norepeat-nr-v-x2-auto-coder-iq1_m.json b/bench/results/2026-09-29-layer-split/data/norepeat-nr-v-x2-auto-coder-iq1_m.jsonnew file mode 100644index 000000000..a5169b0e9--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/norepeat-nr-v-x2-auto-coder-iq1_m.json@@ -0,0 +1,92 @@+[+ {+ "name": "greedy story 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 88,+ "drafts_offered": 193,+ "tok_s": 74.6,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy years old, but he moved with the grace of a man who had spent decades on a narrow spiral staircase. His hands, rough as sandpaper, gripped the iron railing as he ascended the final flight of steps to the lantern room.\n\nBelow him, the Atlantic churned in a frenzy, whitecaps exploding against the black rocks like fireworks. Above, the sky was a bruised purple, heavy with rain that hadn\u2019t yet fallen.\n\nElias checked the clock. 11:42 PM. The light was due.\n\nHe didn\u2019t flip a switch. He didn\u2019t press a button. He reached for the heavy brass lever that had worn smooth by his palm over the years. With a grunt that matched the strain of his aging muscles, he pulled it down.\n\n*Clunk.*\n\nThe"+ },+ {+ "name": "greedy code 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 136,+ "drafts_offered": 181,+ "tok_s": 105.5,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ },+ {+ "name": "greedy sanity",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 85.8,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy, no penalty (sanity)",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 94.3,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64",+ "tokens": 118,+ "repeats": 0,+ "drafts_accepted": 37,+ "drafts_offered": 105,+ "tok_s": 67.9,+ "text": "Aardvark \nAlbatross \nAlligator \nAntelope \nBaboon \nBadger \nBeaver \nBear \nBird of Paradise \nBuffalo \nCamel \nCheetah \nChimpanzee \nCrane \nCrocodile \nDeer \nDolphin \nDonkey \nElephant \nFlamingo \nFox \nGiraffe \nGoat \nHippopotamus \nIguana \nJaguar \nKangaroo \nKoala \nLion \nLeopard \nMonkey \nMoose \nOstrich \nOtter\nPanda<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64 story",+ "tokens": 147,+ "repeats": 0,+ "drafts_accepted": 26,+ "drafts_offered": 103,+ "tok_s": 63.2,+ "text": "The wind didn\u2019t just blow; it screamed against the glass of Lantern House 42, rattling like chains in an empty cathedral hall outside my window at midnight on November third this year\u2014so I pulled up to that date and time for context because you asked me about a lighthouse keeper but gave no specifics beyond \u201cshort story,\u201d so let\u2019s set it: isolated coastal station off the Oregon coast during winter storm season, 1987.\n\nMy name is Elias Vane (I made this fictional; real keepers often kept journals signed with initials only), and I\u2019m writing from memory because my logbook got waterlogged when a rogue wave breached lower storage room at dawn\u2014so here\u2019s what happened:<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 3",+ "tokens": 109,+ "repeats": 0,+ "drafts_accepted": 13,+ "drafts_offered": 56,+ "tok_s": 54.1,+ "text": "The wind didn\u2019t just blow at Cape Hollow; it screamed through the gaps in my cottage\u2019s shutters, rattling them like loose teeth until they settled into silence with every storm break out of three hundred days here being storms that broke something else again but mostly kept me warm because I burned coal and wood whenever we had any left over from last winter when even then if you\u2019re lucky enough to get through it all without freezing yourself so hard your own thoughts become ice too\n\nBut Elias knew better than anyone: fear was useful only until dawn<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 11",+ "tokens": 92,+ "repeats": 0,+ "drafts_accepted": 26,+ "drafts_offered": 48,+ "tok_s": 64.7,+ "text": "Lion \nTiger \nElephant \nGiraffe \nZebra \nPanda \nKoala \nKangaroo \nHippopotamus \nRhinoceros \nCamel \nCheetah \nLeopard \nPanther \nJaguar \nBison \nElk \nDeer \nFox \nWolf \nBear \nLlama \nDonkey \nGoat \nSheep \nCow \nPig \nRabbit \nCat \nDog<|im_end|>"+ },+ {+ "name": "greedy frequency=100 last_n=16",+ "tokens": 11,+ "repeats": 0,+ "drafts_accepted": 5,+ "drafts_offered": 14,+ "tok_s": 71.7,+ "text": "1 to 50, separated by commas:<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=4096 (8-row windows)",+ "tokens": 300,+ "repeats": 0,+ "drafts_accepted": 53,+ "drafts_offered": 134,+ "tok_s": 66.1,+ "text": "The ocean is not merely water; it has been, and continues to be one with humanity\u2019s most profound narrative arc in human civilization: **the story we tell ourselves through our relationship** between landmasses separated by vast expansiveness that defines both isolation from other worlds (and thus their own unique evolutionary paths) as well than connection across them via currents wind patterns tides depth pressure temperature salinity biodiversity geology climate change economic trade routes ecological systems cultural exchange political boundaries scientific discovery technological advancement environmental degradation conservation efforts maritime archaeography historical cartographic evolution legal frameworks international law enforcement mechanisms insurance liability regimes regulatory compliance standards safety protocols navigation aids communication networks emergency response strategies search-and-rescue operations salvage rights ownership disputes heritage protection zones sustainable harvesting practices aquaculture development infrastructure engineering projects coastal management policies urban planning regulations zoning ordinances building codes architectural design guidelines aesthetic considerations functional requirements accessibility provisions energy efficiency measures thermal insulation techniques moisture control methods ventilation optimization lighting solutions acoustic soundproofing structural integrity assessments seismic resistance evaluations flood mitigation plans storm surge barriers levee construction seawall reinforcement breakwater installation harbor dredging channel maintenance buoy placement lighthouse automation radar monitoring sonar mapping bathymetric surveys hydrographic charts nautical almanacs tide tables current predictions weather forecasts marine meteorological models satellite imagery remote sensing data assimilation numerical simulations computational fluid dynamics finite element analysis partial differential equations tensor calculus linear algebra probability theory statistics stochastic processes Markov chains Bayesian inference machine learning artificial neural network deep convolutional recurrent transformer attention heads generative adversarial diffusion transformers large language model tokenization"+ }+]\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/norepeat-nr-v-x3-auto-coder-iq1_m.json b/bench/results/2026-09-29-layer-split/data/norepeat-nr-v-x3-auto-coder-iq1_m.jsonnew file mode 100644index 000000000..54c8c520e--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/norepeat-nr-v-x3-auto-coder-iq1_m.json@@ -0,0 +1,92 @@+[+ {+ "name": "greedy story 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 88,+ "drafts_offered": 193,+ "tok_s": 68.2,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy years old, but he moved with the grace of a man who had spent decades on a narrow spiral staircase. His hands, rough as sandpaper, gripped the iron railing as he ascended the final flight of steps to the lantern room.\n\nBelow him, the Atlantic churned in a frenzy, whitecaps exploding against the black rocks like fireworks. Above, the sky was a bruised purple, heavy with rain that hadn\u2019t yet fallen.\n\nElias checked the clock. 11:42 PM. The light was due.\n\nHe didn\u2019t flip a switch. He didn\u2019t press a button. He reached for the heavy brass lever that had worn smooth by his palm over the years. With a grunt that matched the strain of his aging muscles, he pulled it down.\n\n*Clunk.*\n\nThe"+ },+ {+ "name": "greedy code 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 136,+ "drafts_offered": 181,+ "tok_s": 99.4,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ },+ {+ "name": "greedy sanity",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 74.5,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy, no penalty (sanity)",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 76.3,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64",+ "tokens": 118,+ "repeats": 0,+ "drafts_accepted": 37,+ "drafts_offered": 105,+ "tok_s": 65.2,+ "text": "Aardvark \nAlbatross \nAlligator \nAntelope \nBaboon \nBadger \nBeaver \nBear \nBird of Paradise \nBuffalo \nCamel \nCheetah \nChimpanzee \nCrane \nCrocodile \nDeer \nDolphin \nDonkey \nElephant \nFlamingo \nFox \nGiraffe \nGoat \nHippopotamus \nIguana \nJaguar \nKangaroo \nKoala \nLion \nLeopard \nMonkey \nMoose \nOstrich \nOtter\nPanda<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64 story",+ "tokens": 147,+ "repeats": 0,+ "drafts_accepted": 26,+ "drafts_offered": 103,+ "tok_s": 45.7,+ "text": "The wind didn\u2019t just blow; it screamed against the glass of Lantern House 42, rattling like chains in an empty cathedral hall outside my window at midnight on November third this year\u2014so I pulled up to that date and time for context because you asked me about a lighthouse keeper but gave no specifics beyond \u201cshort story,\u201d so let\u2019s set it: isolated coastal station off the Oregon coast during winter storm season, 1987.\n\nMy name is Elias Vane (I made this fictional; real keepers often kept journals signed with initials only), and I\u2019m writing from memory because my logbook got waterlogged when a rogue wave breached lower storage room at dawn\u2014so here\u2019s what happened:<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 3",+ "tokens": 109,+ "repeats": 0,+ "drafts_accepted": 13,+ "drafts_offered": 56,+ "tok_s": 42.1,+ "text": "The wind didn\u2019t just blow at Cape Hollow; it screamed through the gaps in my cottage\u2019s shutters, rattling them like loose teeth until they settled into silence with every storm break out of three hundred days here being storms that broke something else again but mostly kept me warm because I burned coal and wood whenever we had any left over from last winter when even then if you\u2019re lucky enough to get through it all without freezing yourself so hard your own thoughts become ice too\n\nBut Elias knew better than anyone: fear was useful only until dawn<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 11",+ "tokens": 92,+ "repeats": 0,+ "drafts_accepted": 26,+ "drafts_offered": 48,+ "tok_s": 43.9,+ "text": "Lion \nTiger \nElephant \nGiraffe \nZebra \nPanda \nKoala \nKangaroo \nHippopotamus \nRhinoceros \nCamel \nCheetah \nLeopard \nPanther \nJaguar \nBison \nElk \nDeer \nFox \nWolf \nBear \nLlama \nDonkey \nGoat \nSheep \nCow \nPig \nRabbit \nCat \nDog<|im_end|>"+ },+ {+ "name": "greedy frequency=100 last_n=16",+ "tokens": 11,+ "repeats": 0,+ "drafts_accepted": 5,+ "drafts_offered": 14,+ "tok_s": 61.4,+ "text": "1 to 50, separated by commas:<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=4096 (8-row windows)",+ "tokens": 300,+ "repeats": 0,+ "drafts_accepted": 53,+ "drafts_offered": 134,+ "tok_s": 51.9,+ "text": "The ocean is not merely water; it has been, and continues to be one with humanity\u2019s most profound narrative arc in human civilization: **the story we tell ourselves through our relationship** between landmasses separated by vast expansiveness that defines both isolation from other worlds (and thus their own unique evolutionary paths) as well than connection across them via currents wind patterns tides depth pressure temperature salinity biodiversity geology climate change economic trade routes ecological systems cultural exchange political boundaries scientific discovery technological advancement environmental degradation conservation efforts maritime archaeography historical cartographic evolution legal frameworks international law enforcement mechanisms insurance liability regimes regulatory compliance standards safety protocols navigation aids communication networks emergency response strategies search-and-rescue operations salvage rights ownership disputes heritage protection zones sustainable harvesting practices aquaculture development infrastructure engineering projects coastal management policies urban planning regulations zoning ordinances building codes architectural design guidelines aesthetic considerations functional requirements accessibility provisions energy efficiency measures thermal insulation techniques moisture control methods ventilation optimization lighting solutions acoustic soundproofing structural integrity assessments seismic resistance evaluations flood mitigation plans storm surge barriers levee construction seawall reinforcement breakwater installation harbor dredging channel maintenance buoy placement lighthouse automation radar monitoring sonar mapping bathymetric surveys hydrographic charts nautical almanacs tide tables current predictions weather forecasts marine meteorological models satellite imagery remote sensing data assimilation numerical simulations computational fluid dynamics finite element analysis partial differential equations tensor calculus linear algebra probability theory statistics stochastic processes Markov chains Bayesian inference machine learning artificial neural network deep convolutional recurrent transformer attention heads generative adversarial diffusion transformers large language model tokenization"+ }+]\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/norepeat-nr-x2-auto-coder-iq1_m.json b/bench/results/2026-09-29-layer-split/data/norepeat-nr-x2-auto-coder-iq1_m.jsonnew file mode 100644index 000000000..537523bbc--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/norepeat-nr-x2-auto-coder-iq1_m.json@@ -0,0 +1,92 @@+[+ {+ "name": "greedy story 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 91,+ "drafts_offered": 190,+ "tok_s": 74.0,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy years old, but he moved with the grace of a man who had spent decades on a narrow spiral staircase. His hands, rough as sandpaper, knew every bolt, every lever, and every creak in the iron bones of the tower.\n\nFor forty years, Elias had been the guardian of the Point. Not just of the light, but of the silence between the waves.\n\nIt was November. The sky was a bruised purple, heavy with rain that hadn\u2019t yet fallen. The sea was a churning cauldron of grey and white, throwing itself against the granite base with a violence that shook the floorboards beneath Elias\u2019s boots.\n\nHe climbed the stairs. One hundred and twelve steps. He counted them by feel, his left hand trailing along the cold iron railing. At the top, the air was"+ },+ {+ "name": "greedy code 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 137,+ "drafts_offered": 178,+ "tok_s": 103.4,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ },+ {+ "name": "greedy sanity",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 91.1,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy, no penalty (sanity)",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 70.7,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64",+ "tokens": 118,+ "repeats": 0,+ "drafts_accepted": 38,+ "drafts_offered": 108,+ "tok_s": 65.4,+ "text": "Aardvark \nAlbatross \nAlligator \nAntelope \nBaboon \nBadger \nBeaver \nBear \nBird of Paradise \nBuffalo \nCamel \nCheetah \nChimpanzee \nCrane \nCrocodile \nDeer \nDolphin \nDonkey \nElephant \nFlamingo \nFox \nGiraffe \nGoat \nHippopotamus \nIguana \nJaguar \nKangaroo \nKoala \nLion \nLeopard \nMonkey \nMoose \nOstrich \nOtter\nPanda<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64 story",+ "tokens": 57,+ "repeats": 0,+ "drafts_accepted": 11,+ "drafts_offered": 61,+ "tok_s": 57.1,+ "text": "The wind didn\u2019t just blow; it screamed against the glass of Lantern House 42, rattling like chains in an empty cathedral vaults below Elias\u2019s boots were heavy with salt and exhaustion as he climbed one hundred twelve steps to reach top room where his world began again.<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 3",+ "tokens": 58,+ "repeats": 0,+ "drafts_accepted": 14,+ "drafts_offered": 54,+ "tok_s": 52.9,+ "text": "The wind didn\u2019t just blow at Cape Harrow; it screamed through the gaps in stone and steel, carrying with them spray from three miles out into churning black water that no longer resembled an ocean so much as abyssal chaos waiting for its prey to surface beneath waves of salt.<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 11",+ "tokens": 59,+ "repeats": 0,+ "drafts_accepted": 11,+ "drafts_offered": 47,+ "tok_s": 51.7,+ "text": "Lion \nTiger \n\nElephant\\nGiraffe\\Zebra\\rHippopotamus\\tRhinoceros\\vCrocodile\\fAlligator\\bSnake\\aSpider\\u2615CoffeeCup\u2615\ufe0fTeaTime\ud83d\udc09DragonFishWhaleDolph<|im_end|>"+ },+ {+ "name": "greedy frequency=100 last_n=16",+ "tokens": 11,+ "repeats": 0,+ "drafts_accepted": 5,+ "drafts_offered": 12,+ "tok_s": 73.5,+ "text": "1 to 50, separated by commas:<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=4096 (8-row windows)",+ "tokens": 300,+ "repeats": 0,+ "drafts_accepted": 43,+ "drafts_offered": 126,+ "tok_s": 63.4,+ "text": "The ocean is not merely water; it has been, and continues to be one with humanity\u2019s most profound narrative arc in human civilization: **the story told by waves**. It serves as both witness (through sedimentary layers)and participant( through currents that carry messages across continents). Its \"history\" spans geological epochs where life first emerged from primordial pools into complex ecosystems today\u2014and cultural histories shaped entirely around its roleas connector between distant lands or barrier separating them forever depending on perspective taken at different times throughout millennia since ancient civilizations began building boats outof logs carved using stone tools until modern container ships carrying billions tons cargo daily cross Atlantic routes once navigated onlyby stars alone under moonlight during nights when sailors feared monsters lurking beneath hulls made fragile against storms they could barely predict even now despite advanced meteorology systems developed over past century after industrial revolution transformed maritime trade patterns globally due economic pressures driving demand for faster logistics chains linking factories producing electronics manufactured inside cities located far inland near rivers feeding estuaries opening directly onto open seas connected via canals engineered centuries ago like Suez Canal built originallyfor military purposes later adapted commercial use post-World War II era reshaping global supply networks dramatically because geopolitical shifts altered which ports remained accessible politically versus physically blocked temporarily then reopened permanently following treaty agreements signed among nations agreeing upon shared responsibilities regarding environmental stewardship including coral reef restoration efforts funded jointly international organizations coordinating scientific research conducted aboard vessels specifically designed deep-sea exploration equipped robotic submersibles capable descending trenches deeper than any previous technology allowed"+ }+]\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/norepeat-nr-x3-auto-coder-iq1_m.json b/bench/results/2026-09-29-layer-split/data/norepeat-nr-x3-auto-coder-iq1_m.jsonnew file mode 100644index 000000000..d72d1b23b--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/norepeat-nr-x3-auto-coder-iq1_m.json@@ -0,0 +1,92 @@+[+ {+ "name": "greedy story 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 98,+ "drafts_offered": 166,+ "tok_s": 54.4,+ "text": "The wind didn\u2019t just blow; it screamed. It tore through the iron gallery of the Blackwood Point Lighthouse, rattling the glass panes like a prisoner shaking its bars.\n\nElias Thorne was seventy years old, and he had been the keeper for forty of them. He knew every creak in the spiral staircase, every draft that slipped under the door, and every shift in the weather that the barometer couldn\u2019t quite predict. He knew that when the fog rolled in thick enough to swallow the horizon, the world ceased to exist. There was only the light, the stone, and him.\n\nIt was November, the month of storms. The sea was a churning cauldron of grey and white, throwing itself against the granite base with a violence that made the floorboards tremble. Elias stood by the lantern room, his hands wrapped around a mug of coffee that had gone cold hours ago. He wasn\u2019t drinking it. He was holding it for warmth."+ },+ {+ "name": "greedy code 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 137,+ "drafts_offered": 163,+ "tok_s": 70.7,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys being the header values\n and values being the corresponding cell values.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result = []\n with open(file_path, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_basic():\n \"\"\"Test basic CSV parsing with simple data.\"\"\"\n import tempfile\n import os\n \n # Create a temporary CSV"+ },+ {+ "name": "greedy sanity",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 56.7,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy, no penalty (sanity)",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 57.6,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64",+ "tokens": 59,+ "repeats": 0,+ "drafts_accepted": 13,+ "drafts_offered": 47,+ "tok_s": 39.7,+ "text": "Aardvark \nAlbatross \n\nAlligator \nAntelope \nBaboon \nBadger \nBeaver \nBear \nBird \nBuffalo \n\nCat \nCheetah \n\nChimpanzee \nClam \n\n\nCrocodile \n\n\n\nDolphin \n\n\n\n\nDonkey <|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64 story",+ "tokens": 57,+ "repeats": 0,+ "drafts_accepted": 12,+ "drafts_offered": 58,+ "tok_s": 39.9,+ "text": "The wind didn\u2019t just blow; it screamed against the glass of Lantern House 42, rattling like chains in an empty cathedral vaults below Elias\u2019s boots were heavy with salt and exhaustion as he climbed one hundred twelve steps to reach topmost gallery where his world began.<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 3",+ "tokens": 160,+ "repeats": 0,+ "drafts_accepted": 30,+ "drafts_offered": 111,+ "tok_s": 34.7,+ "text": "The wind didn\u2019t just blow at Blackwood Rock; it screamed through the gaps in his stone cottage like an angry ghost trying to get inside, yet finding no door left unlocked because Elias never let one stay that way for more than three seconds after entering or leaving during storm season. He had been doing this since 1987\u2014since before he even knew why\u2014and now it was muscle memory so deep into his bones and fingers\u2019 calloused skin texture patterns worn thin by years of gripping the same iron railing at midnight watch that if you asked him what time exactly, down to quarter-hour increments when fog rolled in thick enough where light beams bent around itself like old rope coiling tight on a winch drum spooling out slowly from below deck floor level storage locker number seven under stairs leading"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 11",+ "tokens": 96,+ "repeats": 0,+ "drafts_accepted": 31,+ "drafts_offered": 48,+ "tok_s": 42.3,+ "text": "Lion \nTiger \nElephant \nGiraffe \nZebra \nPanda \nKoala \nKangaroo \nCheetah \nHippopotamus \nRhinoceros \nLeopard \nJaguar \nWolf \nFox \nBear \nDeer \nOtter \nBeaver \nBadger \nMongoose \nMeerkat \nChimpanzee \nGorilla \nOrangetutan \nAntelope \nBison \nElk <|im_end|>"+ },+ {+ "name": "greedy frequency=100 last_n=16",+ "tokens": 11,+ "repeats": 0,+ "drafts_accepted": 5,+ "drafts_offered": 13,+ "tok_s": 43.0,+ "text": "1 to 50, separated by commas:<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=4096 (8-row windows)",+ "tokens": 300,+ "repeats": 0,+ "drafts_accepted": 29,+ "drafts_offered": 127,+ "tok_s": 37.6,+ "text": "The ocean is not merely water; it has been, and remains to this day one giant machine for making life possible on Earth.\u201d \u2014 *David Attenborough* \n\nThis quote captures perhaps more than any other single sentence in human language: that which we call \u201cthe Sea\u201d or \"Ocean\" (terms often used interchangeably but distinct geographically) was never just an element within our planet\u2019s geography\u2014it became its engine itself\u2014a living system whose existence predates humanity by billions years yet continues shaping us today through climate regulation oxygen production food supply trade routes cultural identity ecological resilience economic development political boundaries scientific discovery technological innovation environmental crisis conservation efforts historical memory philosophical reflection poetic metaphor musical composition cinematic storytelling literary narrative visual art architectural inspiration culinary tradition spiritual symbolism psychological influence sociological transformation educational foundation medical necessity agricultural dependency industrial revolution urban planning infrastructural engineering legal framework regulatory policy international cooperation global governance planetary stewardship existential risk mitigation sustainable practice ethical consideration moral imperative social justice democratic participation civic engagement public health community welfare individual responsibility personal accountability collective action shared experience common understanding mutual respect reciprocal trust collaborative effort cooperative endeavor joint venture unified mission integrated strategy coordinated plan synchronized schedule aligned timeline concurrent execution simultaneous operation parallel processing sequential progression iterative refinement recursive improvement continuous adaptation dynamic adjustment flexible response adaptive behavior responsive conduct proactive initiative anticipatory foresight predictive modeling probabilistic assessment statistical analysis empirical observation experimental verification theoretical hypothesis conceptual abstraction logical deduction rational inference critical evaluation analytical reasoning systematic investigation methodical inquiry structured exploration comprehensive examination detailed scrutiny meticulous inspection thorough review exhaustive audit complete survey full census total enumeration absolute"+ }+]\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/norepeat-reg-dev-coder-iq1_m.json b/bench/results/2026-09-29-layer-split/data/norepeat-reg-dev-coder-iq1_m.jsonnew file mode 100644index 000000000..99cf29917--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/norepeat-reg-dev-coder-iq1_m.json@@ -0,0 +1,92 @@+[+ {+ "name": "greedy story 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 88,+ "drafts_offered": 187,+ "tok_s": 59.2,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy years old, but he moved with the grace of a man who had spent decades on a narrow spiral staircase. His hands, mapped with veins like the roots of an ancient oak, gripped the cold iron railing.\n\nFor forty years, Elias had tended the light at the end of the world. Not the end of the map, but the end of the land. Here, the Atlantic threw itself against the granite cliffs with such violence that the spray reached the gallery, thirty feet above the rocks.\n\nHe checked the clock. 11:42 PM. The fog was thickening, a gray soup that swallowed the horizon. In the old days, he would have climbed the stairs to the lantern room, polished the Fresnel lens, and wound the clockwork mechanism that turned the great beam. But the automation had changed"+ },+ {+ "name": "greedy code 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 135,+ "drafts_offered": 179,+ "tok_s": 81.6,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ },+ {+ "name": "greedy sanity",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 74.9,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy, no penalty (sanity)",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 74.3,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64",+ "tokens": 61,+ "repeats": 0,+ "drafts_accepted": 19,+ "drafts_offered": 49,+ "tok_s": 49.6,+ "text": "Aardvark \nAlbatross \n\nAlligator \nAntelope \nBaboon \nBadger \nBeaver \nBear \nBird \nBoar \nBuffalo \nButterfly \n\nCamel \nCat \nCheetah \n\nDolphin \n\n\nElephant \n\n\n\nFlamingo<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64 story",+ "tokens": 80,+ "repeats": 0,+ "drafts_accepted": 6,+ "drafts_offered": 52,+ "tok_s": 44.9,+ "text": "The wind didn\u2019t just blow; it screamed against the glass of Lantern House 42, rattling like chains in an empty cathedral hall outside my window at midnight on November third this year\u2014so I pulled up to check what was happening with that storm and why they were calling me out there when all we had left for tonight\u2019s shift is one last pass through our logs before dawn breaks.<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 3",+ "tokens": 160,+ "repeats": 0,+ "drafts_accepted": 17,+ "drafts_offered": 83,+ "tok_s": 44.1,+ "text": "The wind didn\u2019t just blow at Cape Harrow; it screamed through the gaps in its teeth, hungry and relentless for three centuries of stone salt-spray history that had long since forgotten to be polite or gentle with itself against anything smaller than God Himself was willing acknowledge as divine protection from drowning souls who were already lost before they ever touched water.\n\nElias knew this rhythm better he himself could hear it sometimes; his boots worn smooth by pacing the spiral stair\u2019s center-post groove where thousands upon countless steps had rubbed away texture until all that remained beneath sole leather now felt like polished bone carved out slowly but surely over time into something more hollow than wood ever really should be allowed become when used so often enough within such confined circular spaces meant only for vertical ascent down always descending again back upward never truly leaving"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 11",+ "tokens": 62,+ "repeats": 0,+ "drafts_accepted": 18,+ "drafts_offered": 31,+ "tok_s": 49.5,+ "text": "Lion \nTiger \n\nElephant \n \nGiraffe \n\n\n\nHippopotamus \nZebra \nRhinoceros \n\n\nPanda Bear \n\n\n\n\nKangaroo \nKoala \nSloth \n\n\n\n\n\nCheetah \nLeopard \nPanther \n\n\n\n\n\n\nWolf \nFox \nBear <|im_end|>"+ },+ {+ "name": "greedy frequency=100 last_n=16",+ "tokens": 11,+ "repeats": 0,+ "drafts_accepted": 5,+ "drafts_offered": 13,+ "tok_s": 65.2,+ "text": "1 to 50, separated by commas:<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=4096 (8-row windows)",+ "tokens": 300,+ "repeats": 0,+ "drafts_accepted": 47,+ "drafts_offered": 153,+ "tok_s": 52.5,+ "text": "The ocean is not merely water; it has been, and remains to this day one giant machine for making life possible on Earth.\" \u2014 *David Attenborough* \n\nThis quote captures perhaps more than any other single sentence in human language: that which we call \"the Sea\" or \u201cOcean\u201d was never just an element within our planet\u2019s geography but rather its most fundamental biological engine\u2014a living system whose existence predates humanity by billions years yet continues shaping every aspect from climate regulation through evolutionary biology all way down modern industrial supply chains today's global shipping lanes carry cargo across vast distances because they were once crossed only slowly via coastal hopping routes used since antiquity until steamships revolutionized travel during late nineteenth century when diesel engines replaced wind power entirely allowing container ships carrying thousands TEUs (Twenty-foot Equivalent Units) per voyage crossing entire Pacific basins without stopping at intermediate ports anymore unlike earlier sailing vessels needing favorable winds currents seasonal patterns dictating departure windows based upon monsoon calendars established centuries ago before technological advances changed those constraints fundamentally altering logistics networks worldwide thereby transforming economic structures globally while simultaneously creating ecological disruptions due invasive species transported unintentionally alongside legitimate goods causing cascading ecosystem collapses locally where non-native organisms outcompete native fauna disrupting food webs leading population declines affecting biodiversity indices measured scientifically using standardized metrics like Shannon-Wiener diversity index calculations applied consistently over decades revealing trends showing significant decreases post-introduction events correl strongly with introduction dates matching historical records documenting first sightings confirmed taxonomically classified formally according International Code Nomenclature rules"+ }+]\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/norepeat-reg-rel-coder-iq1_m.json b/bench/results/2026-09-29-layer-split/data/norepeat-reg-rel-coder-iq1_m.jsonnew file mode 100644index 000000000..85cdf6e33--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/norepeat-reg-rel-coder-iq1_m.json@@ -0,0 +1,92 @@+[+ {+ "name": "greedy story 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 88,+ "drafts_offered": 187,+ "tok_s": 58.4,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy years old, but he moved with the grace of a man who had spent decades on a narrow spiral staircase. His hands, mapped with veins like the roots of an ancient oak, gripped the cold iron railing.\n\nFor forty years, Elias had tended the light at the end of the world. Not the end of the map, but the end of the land. Here, the Atlantic threw itself against the granite cliffs with such violence that the spray reached the gallery, thirty feet above the rocks.\n\nHe checked the clock. 11:42 PM. The fog was thickening, a gray soup that swallowed the horizon. In the old days, he would have climbed the stairs to the lantern room, polished the Fresnel lens, and wound the clockwork mechanism that turned the great beam. But the automation had changed"+ },+ {+ "name": "greedy code 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 135,+ "drafts_offered": 179,+ "tok_s": 80.6,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ },+ {+ "name": "greedy sanity",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 75.2,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy, no penalty (sanity)",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 74.2,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64",+ "tokens": 61,+ "repeats": 0,+ "drafts_accepted": 19,+ "drafts_offered": 49,+ "tok_s": 48.5,+ "text": "Aardvark \nAlbatross \n\nAlligator \nAntelope \nBaboon \nBadger \nBeaver \nBear \nBird \nBoar \nBuffalo \nButterfly \n\nCamel \nCat \nCheetah \n\nDolphin \n\n\nElephant \n\n\n\nFlamingo<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64 story",+ "tokens": 80,+ "repeats": 0,+ "drafts_accepted": 6,+ "drafts_offered": 52,+ "tok_s": 46.4,+ "text": "The wind didn\u2019t just blow; it screamed against the glass of Lantern House 42, rattling like chains in an empty cathedral hall outside my window at midnight on November third this year\u2014so I pulled up to check what was happening with that storm and why they were calling me out there when all we had left for tonight\u2019s shift is one last pass through our logs before dawn breaks.<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 3",+ "tokens": 160,+ "repeats": 0,+ "drafts_accepted": 17,+ "drafts_offered": 83,+ "tok_s": 43.3,+ "text": "The wind didn\u2019t just blow at Cape Harrow; it screamed through the gaps in its teeth, hungry and relentless for three centuries of stone salt-spray history that had long since forgotten to be polite or gentle with itself against anything smaller than God Himself was willing acknowledge as divine protection from drowning souls who were already lost before they ever touched water.\n\nElias knew this rhythm better he himself could hear it sometimes; his boots worn smooth by pacing the spiral stair\u2019s center-post groove where thousands upon countless steps had rubbed away texture until all that remained beneath sole leather now felt like polished bone carved out slowly but surely over time into something more hollow than wood ever really should be allowed become when used so often enough within such confined circular spaces meant only for vertical ascent down always descending again back upward never truly leaving"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 11",+ "tokens": 62,+ "repeats": 0,+ "drafts_accepted": 18,+ "drafts_offered": 31,+ "tok_s": 49.8,+ "text": "Lion \nTiger \n\nElephant \n \nGiraffe \n\n\n\nHippopotamus \nZebra \nRhinoceros \n\n\nPanda Bear \n\n\n\n\nKangaroo \nKoala \nSloth \n\n\n\n\n\nCheetah \nLeopard \nPanther \n\n\n\n\n\n\nWolf \nFox \nBear <|im_end|>"+ },+ {+ "name": "greedy frequency=100 last_n=16",+ "tokens": 11,+ "repeats": 0,+ "drafts_accepted": 5,+ "drafts_offered": 13,+ "tok_s": 62.5,+ "text": "1 to 50, separated by commas:<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=4096 (8-row windows)",+ "tokens": 300,+ "repeats": 0,+ "drafts_accepted": 47,+ "drafts_offered": 153,+ "tok_s": 52.6,+ "text": "The ocean is not merely water; it has been, and remains to this day one giant machine for making life possible on Earth.\" \u2014 *David Attenborough* \n\nThis quote captures perhaps more than any other single sentence in human language: that which we call \"the Sea\" or \u201cOcean\u201d was never just an element within our planet\u2019s geography but rather its most fundamental biological engine\u2014a living system whose existence predates humanity by billions years yet continues shaping every aspect from climate regulation through evolutionary biology all way down modern industrial supply chains today's global shipping lanes carry cargo across vast distances because they were once crossed only slowly via coastal hopping routes used since antiquity until steamships revolutionized travel during late nineteenth century when diesel engines replaced wind power entirely allowing container ships carrying thousands TEUs (Twenty-foot Equivalent Units) per voyage crossing entire Pacific basins without stopping at intermediate ports anymore unlike earlier sailing vessels needing favorable winds currents seasonal patterns dictating departure windows based upon monsoon calendars established centuries ago before technological advances changed those constraints fundamentally altering logistics networks worldwide thereby transforming economic structures globally while simultaneously creating ecological disruptions due invasive species transported unintentionally alongside legitimate goods causing cascading ecosystem collapses locally where non-native organisms outcompete native fauna disrupting food webs leading population declines affecting biodiversity indices measured scientifically using standardized metrics like Shannon-Wiener diversity index calculations applied consistently over decades revealing trends showing significant decreases post-introduction events correl strongly with introduction dates matching historical records documenting first sightings confirmed taxonomically classified formally according International Code Nomenclature rules"+ }+]\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/norepeat-reg-same24-coder-iq1_m.json b/bench/results/2026-09-29-layer-split/data/norepeat-reg-same24-coder-iq1_m.jsonnew file mode 100644index 000000000..e0473e782--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/norepeat-reg-same24-coder-iq1_m.json@@ -0,0 +1,92 @@+[+ {+ "name": "greedy story 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 88,+ "drafts_offered": 187,+ "tok_s": 58.4,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy years old, but he moved with the grace of a man who had spent decades on a narrow spiral staircase. His hands, mapped with veins like the roots of an ancient oak, gripped the cold iron railing.\n\nFor forty years, Elias had tended the light at the end of the world. Not the end of the map, but the end of the land. Here, the Atlantic threw itself against the granite cliffs with such violence that the spray reached the gallery, thirty feet above the rocks.\n\nHe checked the clock. 11:42 PM. The fog was thickening, a gray soup that swallowed the horizon. In the old days, he would have climbed the stairs to the lantern room, polished the Fresnel lens, and wound the clockwork mechanism that turned the great beam. But the automation had changed"+ },+ {+ "name": "greedy code 200",+ "tokens": 200,+ "repeats": 0,+ "drafts_accepted": 135,+ "drafts_offered": 179,+ "tok_s": 80.5,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ },+ {+ "name": "greedy sanity",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 74.5,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy, no penalty (sanity)",+ "tokens": 4,+ "repeats": 0,+ "drafts_accepted": 3,+ "drafts_offered": 3,+ "tok_s": 76.8,+ "text": "144<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64",+ "tokens": 61,+ "repeats": 0,+ "drafts_accepted": 19,+ "drafts_offered": 49,+ "tok_s": 49.6,+ "text": "Aardvark \nAlbatross \n\nAlligator \nAntelope \nBaboon \nBadger \nBeaver \nBear \nBird \nBoar \nBuffalo \nButterfly \n\nCamel \nCat \nCheetah \n\nDolphin \n\n\nElephant \n\n\n\nFlamingo<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=64 story",+ "tokens": 80,+ "repeats": 0,+ "drafts_accepted": 6,+ "drafts_offered": 52,+ "tok_s": 46.7,+ "text": "The wind didn\u2019t just blow; it screamed against the glass of Lantern House 42, rattling like chains in an empty cathedral hall outside my window at midnight on November third this year\u2014so I pulled up to check what was happening with that storm and why they were calling me out there when all we had left for tonight\u2019s shift is one last pass through our logs before dawn breaks.<|im_end|>"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 3",+ "tokens": 160,+ "repeats": 0,+ "drafts_accepted": 17,+ "drafts_offered": 83,+ "tok_s": 44.3,+ "text": "The wind didn\u2019t just blow at Cape Harrow; it screamed through the gaps in its teeth, hungry and relentless for three centuries of stone salt-spray history that had long since forgotten to be polite or gentle with itself against anything smaller than God Himself was willing acknowledge as divine protection from drowning souls who were already lost before they ever touched water.\n\nElias knew this rhythm better he himself could hear it sometimes; his boots worn smooth by pacing the spiral stair\u2019s center-post groove where thousands upon countless steps had rubbed away texture until all that remained beneath sole leather now felt like polished bone carved out slowly but surely over time into something more hollow than wood ever really should be allowed become when used so often enough within such confined circular spaces meant only for vertical ascent down always descending again back upward never truly leaving"+ },+ {+ "name": "sampled presence=100 last_n=64 seed 11",+ "tokens": 62,+ "repeats": 0,+ "drafts_accepted": 18,+ "drafts_offered": 31,+ "tok_s": 50.0,+ "text": "Lion \nTiger \n\nElephant \n \nGiraffe \n\n\n\nHippopotamus \nZebra \nRhinoceros \n\n\nPanda Bear \n\n\n\n\nKangaroo \nKoala \nSloth \n\n\n\n\n\nCheetah \nLeopard \nPanther \n\n\n\n\n\n\nWolf \nFox \nBear <|im_end|>"+ },+ {+ "name": "greedy frequency=100 last_n=16",+ "tokens": 11,+ "repeats": 0,+ "drafts_accepted": 5,+ "drafts_offered": 13,+ "tok_s": 62.0,+ "text": "1 to 50, separated by commas:<|im_end|>"+ },+ {+ "name": "greedy presence=100 last_n=4096 (8-row windows)",+ "tokens": 300,+ "repeats": 0,+ "drafts_accepted": 47,+ "drafts_offered": 153,+ "tok_s": 52.1,+ "text": "The ocean is not merely water; it has been, and remains to this day one giant machine for making life possible on Earth.\" \u2014 *David Attenborough* \n\nThis quote captures perhaps more than any other single sentence in human language: that which we call \"the Sea\" or \u201cOcean\u201d was never just an element within our planet\u2019s geography but rather its most fundamental biological engine\u2014a living system whose existence predates humanity by billions years yet continues shaping every aspect from climate regulation through evolutionary biology all way down modern industrial supply chains today's global shipping lanes carry cargo across vast distances because they were once crossed only slowly via coastal hopping routes used since antiquity until steamships revolutionized travel during late nineteenth century when diesel engines replaced wind power entirely allowing container ships carrying thousands TEUs (Twenty-foot Equivalent Units) per voyage crossing entire Pacific basins without stopping at intermediate ports anymore unlike earlier sailing vessels needing favorable winds currents seasonal patterns dictating departure windows based upon monsoon calendars established centuries ago before technological advances changed those constraints fundamentally altering logistics networks worldwide thereby transforming economic structures globally while simultaneously creating ecological disruptions due invasive species transported unintentionally alongside legitimate goods causing cascading ecosystem collapses locally where non-native organisms outcompete native fauna disrupting food webs leading population declines affecting biodiversity indices measured scientifically using standardized metrics like Shannon-Wiener diversity index calculations applied consistently over decades revealing trends showing significant decreases post-introduction events correl strongly with introduction dates matching historical records documenting first sightings confirmed taxonomically classified formally according International Code Nomenclature rules"+ }+]\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-dev-3090.json b/bench/results/2026-09-29-layer-split/data/pp-dev-3090.jsonnew file mode 100644index 000000000..acfe0b3f0--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-dev-3090.json@@ -0,0 +1,72 @@+{+ "label": "dev-3090",+ "extra": [],+ "gpus": "2",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 3424.8,+ "pp_tok_s": 796.0,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 8617.9,+ "pp_tok_s": 972.3,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 12820.1,+ "pp_tok_s": 1253.2,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 22901.1,+ "pp_tok_s": 1211.4,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 5657.8,+ "turn2_tokens": 6660,+ "reused": 6631,+ "turn2_ms": 238.7,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 71.7,+ "hit_rate": 0.9266798230257504,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, it was the latter. The sea was a churning black void, punctuated by whitecaps that looked like teeth.\n\nHe climbed the spiral stairs, his knees protesting with every step. The iron rungs were cold, slick with condensation that had leaked through the hairline cracks in the masonry. At the top, the lantern room hummed with the low, steady thrum of the rotating lens. It was a sound Elias had learned to sleep with, a heartbeat of the house.\n\nHe checked the clock. 11:42 PM. The light swept across the water, a slow, hypnotic arc. *Flash. Darkness. Flash. Darkness.*\n\nFor a moment, the beam caught something that wasn\u2019t water. A shape"+ },+ {+ "name": "code",+ "tok_s": 92.9,+ "hit_rate": 0.8636411400016346,+ "text": "```python\nimport csv\nfrom typing import List, Dict\n\n\ndef parse_csv(filepath: str) -> List[Dict[str, str]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header row\n and values from the corresponding row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result = []\n with open(filepath, 'r', newline='') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n```<|im_end|>"+ }+ ],+ "engine_lines": [+ "strata generate: expert cache auto: 17.31 GiB free, 700 MiB reserved -> 6704 slots",+ "strata generate: expert cache 8730 slots, 16.62 GiB of VRAM; policy is",+ "strata serve: the prompt path borrows 2315 cache slots (4.42 GiB)",+ "strata serve: decode expert cache hit rate: 86.6% (4986 hits / 5756 lookups)",+ "strata serve: decode expert cache hit rate: 87.1% (3757 hits / 4315 lookups)",+ "strata serve: decode expert cache hit rate: 88.7% (3827 hits / 4314 lookups)",+ "strata serve: decode expert cache hit rate: 92.1% (3975 hits / 4318 lookups)",+ "strata serve: decode expert cache hit rate: 95.5% (4124 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 94.3% (25793 hits / 27360 lookups)",+ "strata serve: decode expert cache hit rate: 94.6% (4088 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 92.7% (116454 hits / 125668 lookups)",+ "strata serve: decode expert cache hit rate: 86.4% (73970 hits / 85649 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-dev-5080.json b/bench/results/2026-09-29-layer-split/data/pp-dev-5080.jsonnew file mode 100644index 000000000..e7b3d3111--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-dev-5080.json@@ -0,0 +1,72 @@+{+ "label": "dev-5080",+ "extra": [],+ "gpus": "0",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2129.8,+ "pp_tok_s": 1279.9,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 5057.2,+ "pp_tok_s": 1656.8,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 7964.7,+ "pp_tok_s": 2017.2,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 14053.6,+ "pp_tok_s": 1974.1,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3366.4,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 197.3,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 83.1,+ "hit_rate": 0.8418683557684931,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, it was the latter. The sea was a churning cauldron of black ink and white foam, throwing itself against the granite base with the force of a battering ram.\n\nInside the lantern room, the air was thick with the smell of kerosene and old brass. Elias wiped his hands on his woolen trousers, leaving faint, oily smears on the fabric. He checked the clock. 11:42 PM. The rotation was due.\n\nHe reached for the crank handle, a heavy iron wheel worn smooth by decades of his own palms. With a grunt that matched the strain of his shoulders, he began to turn it. *Click. Click. Click.* The gears engaged, and the massive Fresnel lens began its slow"+ },+ {+ "name": "code",+ "tok_s": 88.0,+ "hit_rate": 0.7011385968111186,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "engine_lines": [+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4293 slots, 8.17 GiB of VRAM; policy is",+ "strata serve: the prompt path borrows 2343 cache slots (4.42 GiB)",+ "strata serve: decode expert cache hit rate: 59.6% (2749 hits / 4610 lookups)",+ "strata serve: decode expert cache hit rate: 64.2% (2136 hits / 3329 lookups)",+ "strata serve: decode expert cache hit rate: 67.3% (2309 hits / 3432 lookups)",+ "strata serve: decode expert cache hit rate: 72.5% (2539 hits / 3504 lookups)",+ "strata serve: decode expert cache hit rate: 77.3% (2817 hits / 3642 lookups)",+ "strata serve: decode expert cache hit rate: 75.3% (16500 hits / 21916 lookups)",+ "strata serve: decode expert cache hit rate: 80.0% (2978 hits / 3723 lookups)",+ "strata serve: decode expert cache hit rate: 84.2% (98752 hits / 117301 lookups)",+ "strata serve: decode expert cache hit rate: 70.1% (69215 hits / 98718 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k18.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k18.jsonnew file mode 100644index 000000000..16251eb4b--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k18.json@@ -0,0 +1,85 @@+{+ "label": "ks-k18",+ "extra": [+ "--layer-split",+ "18"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 10383.7,+ "pp_tok_s": 1547.2,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 16371.9,+ "pp_tok_s": 1694.5,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4308.0,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 239.8,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 77.2,+ "reps": [+ 74.6,+ 78.1,+ 79.0+ ],+ "hit_rate": 0.9985378787878788,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, the glass was vibrating like a plucked cello string. The sea, usually a rhythmic pulse against the granite base, was now a chaotic, frothing beast, throwing itself against the rocks with the force of a battering ram.\n\nElias climbed the spiral stairs, his hand gripping the cold iron railing. His knees ached, not from age, but from the constant vibration of the floor beneath his feet. He reached the lantern room, the heart of the lighthouse, and checked the clockwork mechanism. The great lens, a prism of Fresnel glass, rotated with a steady, hypnotic *whirrr-click, whirrr-click*. It was the only sound that mattered. The light swept out into the black void, cutting through"+ },+ {+ "name": "code",+ "tok_s": 103.8,+ "reps": [+ 97.6,+ 106.4,+ 107.3+ ],+ "hit_rate": 0.9984863945578232,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 524 windows; per window: wait for the GPU 6.456 ms, pool + plan 0.181 ms, host staging 0.581 ms, commit 0.206 ms",+ "strata serve: stage 1: 524 windows; per window: wait for the GPU 14.872 ms, pool + plan 0.501 ms, host staging 0.000 ms, commit 0.387 ms",+ "strata serve: stage 0: 593 windows; per window: wait for the GPU 6.479 ms, pool + plan 0.185 ms, host staging 0.515 ms, commit 0.207 ms",+ "strata serve: stage 1: 593 windows; per window: wait for the GPU 15.053 ms, pool + plan 0.496 ms, host staging 0.000 ms, commit 0.390 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 18)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4608 slots, 8.24 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 18-47, expert cache 7152 slots (14.14 GiB), 7152 of its 7680 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-17",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-17 (CUDA0), 18-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 98.7% (6159 hits / 6240 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (3796 hits / 3840 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (3811 hits / 3840 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (27723 hits / 27840 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (3807 hits / 3840 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (142002 hits / 143040 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (139882 hits / 140160 lookups)",+ "strata serve: decode expert cache hit rate: 99.9% (131807 hits / 132000 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (119278 hits / 120480 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (117410 hits / 117600 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (117422 hits / 117600 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k19.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k19.jsonnew file mode 100644index 000000000..7628eac8a--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k19.json@@ -0,0 +1,85 @@+{+ "label": "ks-k19",+ "extra": [+ "--layer-split",+ "19"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 9875.2,+ "pp_tok_s": 1626.9,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 15498.0,+ "pp_tok_s": 1790.1,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4085.5,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 238.7,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 79.3,+ "reps": [+ 74.8,+ 85.6,+ 77.4+ ],+ "hit_rate": 0.9977757017660928,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, the glass was vibrating like a plucked cello string. The sea, usually a rhythmic pulse against the granite base, was now a chaotic, frothing beast, throwing itself against the rocks with the force of a battering ram.\n\nElias stood at the top of the spiral staircase, his hand resting on the cold iron railing. He was not afraid. Fear was for the tourists who came in summer, wide-eyed and clutching their cameras. Elias was a keeper. He was a guardian.\n\nHe checked the logbook. The entry for the night was simple: *Wind, 60 knots. Visibility, zero. Light, operational.*\n\nHe walked down the stairs, his boots heavy on the metal grating. The smell of salt"+ },+ {+ "name": "code",+ "tok_s": 107.4,+ "reps": [+ 98.9,+ 111.3,+ 112.1+ ],+ "hit_rate": 0.9986286196529353,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header row\n and values from the corresponding row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 533 windows; per window: wait for the GPU 6.226 ms, pool + plan 0.294 ms, host staging 0.561 ms, commit 0.225 ms",+ "strata serve: stage 1: 533 windows; per window: wait for the GPU 14.156 ms, pool + plan 0.373 ms, host staging 0.000 ms, commit 0.371 ms",+ "strata serve: stage 0: 599 windows; per window: wait for the GPU 6.314 ms, pool + plan 0.292 ms, host staging 0.501 ms, commit 0.225 ms",+ "strata serve: stage 1: 599 windows; per window: wait for the GPU 14.366 ms, pool + plan 0.375 ms, host staging 0.000 ms, commit 0.374 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 19)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4606 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 19-47, expert cache 7160 slots (14.14 GiB), 7160 of its 7424 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-18",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-18 (CUDA0), 19-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 98.5% (6141 hits / 6234 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (3797 hits / 3836 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (3814 hits / 3837 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (28659 hits / 28795 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (3814 hits / 3839 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (141378 hits / 142508 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (124963 hits / 125273 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (134574 hits / 134874 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (121132 hits / 122322 lookups)",+ "strata serve: decode expert cache hit rate: 99.9% (114073 hits / 114235 lookups)",+ "strata serve: decode expert cache hit rate: 99.9% (113598 hits / 113754 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k20.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k20.jsonnew file mode 100644index 000000000..494c08bfb--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k20.json@@ -0,0 +1,85 @@+{+ "label": "ks-k20",+ "extra": [+ "--layer-split",+ "20"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 9044.3,+ "pp_tok_s": 1776.4,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13928.7,+ "pp_tok_s": 1991.8,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3743.5,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 236.8,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 76.4,+ "reps": [+ 74.2,+ 78.4,+ 76.7+ ],+ "hit_rate": 0.9979911611088791,+ "text": "The wind didn\u2019t just blow; it screamed. It clawed at the granite base of the tower, trying to pry it from the bedrock, and it howled through the narrow slits of the lantern room glass.\n\nElias Thorne was seventy years old, but he moved with the grace of a man who had spent fifty years listening to the sea. He knew the rhythm of the waves against the rocks below\u2014the *thud, thud, crash*\u2014and he knew when that rhythm changed. When the sea grew too quiet, or too violent, he knew a storm was coming, or a ship was in trouble.\n\nTonight, the storm was a Category 4. The rain lashed against the windows like gravel thrown by a giant. Elias stood in the center of the lantern room, his hand resting on the cold brass railing. He wasn\u2019t afraid. He was a guardian.\n\nHe checked the clockwork mechanism. It was old, a relic from 1"+ },+ {+ "name": "code",+ "tok_s": 105.9,+ "reps": [+ 103.2,+ 106.8,+ 107.7+ ],+ "hit_rate": 0.9981849807154201,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 537 windows; per window: wait for the GPU 6.685 ms, pool + plan 0.403 ms, host staging 0.593 ms, commit 0.215 ms",+ "strata serve: stage 1: 537 windows; per window: wait for the GPU 13.928 ms, pool + plan 0.282 ms, host staging 0.000 ms, commit 0.359 ms",+ "strata serve: stage 0: 606 windows; per window: wait for the GPU 6.764 ms, pool + plan 0.399 ms, host staging 0.528 ms, commit 0.216 ms",+ "strata serve: stage 1: 606 windows; per window: wait for the GPU 14.108 ms, pool + plan 0.288 ms, host staging 0.000 ms, commit 0.362 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 20)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4603 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 20-47, expert cache 7142 slots (14.14 GiB), 7142 of its 7168 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-19",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-19 (CUDA0), 20-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 98.9% (6162 hits / 6230 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (3803 hits / 3835 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (3810 hits / 3836 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (27185 hits / 27330 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (3807 hits / 3835 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (139825 hits / 140938 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (142122 hits / 142524 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (146556 hits / 146851 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (118026 hits / 119233 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (118729 hits / 118997 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (118791 hits / 119007 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k21.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k21.jsonnew file mode 100644index 000000000..8e7bcc903--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k21.json@@ -0,0 +1,85 @@+{+ "label": "ks-k21",+ "extra": [+ "--layer-split",+ "21"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 8880.5,+ "pp_tok_s": 1809.1,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13654.6,+ "pp_tok_s": 2031.8,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3680.6,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 235.4,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 77.4,+ "reps": [+ 80.2,+ 80.8,+ 71.2+ ],+ "hit_rate": 0.9973622550922132,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the rough fabric scratching against his stubble. Outside the thick, salt-crusted glass of the lantern room, the Atlantic was a churning cauldron of black and white foam. Rain lashed against the panes in horizontal sheets, blurring the world into a smear of gray and shadow.\n\nInside, however, it was warm. The smell of kerosene and old wood hung heavy in the air, a scent that had defined his life for thirty years.\n\nElias was not a man of many words. He was a man of many tasks. His hands, mapped with scars from rope burns and broken glass, moved with a rhythm that predated his memory. He checked the clockwork mechanism of the Fresnel lens, ensuring the rotation was smooth, silent, and steady. *Tick. Tick. Tick.* The sound was the heartbeat of the coast.\n\n"+ },+ {+ "name": "code",+ "tok_s": 106.7,+ "reps": [+ 100.6,+ 110.5,+ 109.0+ ],+ "hit_rate": 0.998218711927068,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 527 windows; per window: wait for the GPU 6.934 ms, pool + plan 0.620 ms, host staging 0.530 ms, commit 0.245 ms",+ "strata serve: stage 1: 527 windows; per window: wait for the GPU 13.912 ms, pool + plan 0.365 ms, host staging 0.000 ms, commit 0.359 ms",+ "strata serve: stage 0: 595 windows; per window: wait for the GPU 7.031 ms, pool + plan 0.595 ms, host staging 0.472 ms, commit 0.245 ms",+ "strata serve: stage 1: 595 windows; per window: wait for the GPU 14.051 ms, pool + plan 0.361 ms, host staging 0.000 ms, commit 0.361 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 21)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4627 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 21-47, expert cache 6912 slots (13.78 GiB), 6912 of its 6912 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-20",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-20 (CUDA0), 21-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 98.7% (5672 hits / 5748 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (4287 hits / 4314 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (4287 hits / 4315 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (29024 hits / 29229 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (4278 hits / 4316 lookups)",+ "strata serve: decode expert cache hit rate: 98.8% (131499 hits / 133085 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (130974 hits / 131451 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (138767 hits / 139134 lookups)",+ "strata serve: decode expert cache hit rate: 98.8% (121454 hits / 122932 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (116809 hits / 117079 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (118803 hits / 119015 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k22.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k22.jsonnew file mode 100644index 000000000..e139ea5ba--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k22.json@@ -0,0 +1,85 @@+{+ "label": "ks-k22",+ "extra": [+ "--layer-split",+ "22"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 8730.9,+ "pp_tok_s": 1840.1,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13375.4,+ "pp_tok_s": 2074.2,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3611.4,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 234.8,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 80.2,+ "reps": [+ 78.4,+ 80.9,+ 81.5+ ],+ "hit_rate": 0.9977764197412695,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy-three years old, and he had been the keeper of the Blackwood Point Light for forty of those years. The other thirty-three had been spent in a small, drafty cottage on the mainland, waiting for the day when the sea would finally claim him.\n\nTonight, the storm was a Category 4. The waves weren\u2019t just crashing; they were climbing. They reached the gallery railing, ten feet above the base of the tower, spraying a fine mist of brine that coated Elias\u2019s glasses.\n\nHe climbed the spiral stairs, his knees protesting with every step. The iron steps were cold, slick with condensation. At the top, in the lantern room, the air was thin and sharp. The great Fresnel lens, a cathedral of glass and brass, stood silent. It was time to wake it.\n\n"+ },+ {+ "name": "code",+ "tok_s": 106.4,+ "reps": [+ 100.7,+ 110.3,+ 108.1+ ],+ "hit_rate": 0.9971798370756316,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 529 windows; per window: wait for the GPU 7.229 ms, pool + plan 0.561 ms, host staging 0.529 ms, commit 0.233 ms",+ "strata serve: stage 1: 529 windows; per window: wait for the GPU 13.058 ms, pool + plan 0.253 ms, host staging 0.000 ms, commit 0.334 ms",+ "strata serve: stage 0: 598 windows; per window: wait for the GPU 7.325 ms, pool + plan 0.552 ms, host staging 0.469 ms, commit 0.235 ms",+ "strata serve: stage 1: 598 windows; per window: wait for the GPU 13.238 ms, pool + plan 0.260 ms, host staging 0.000 ms, commit 0.337 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 22)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4640 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 22-47, expert cache 6656 slots (13.34 GiB), 6656 of its 6656 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-21",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-21 (CUDA0), 22-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 97.7% (5609 hits / 5739 lookups)",+ "strata serve: decode expert cache hit rate: 98.7% (4256 hits / 4310 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (4278 hits / 4315 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (27008 hits / 27289 lookups)",+ "strata serve: decode expert cache hit rate: 98.8% (4260 hits / 4313 lookups)",+ "strata serve: decode expert cache hit rate: 98.5% (135183 hits / 137274 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (136132 hits / 136708 lookups)",+ "strata serve: decode expert cache hit rate: 99.8% (135515 hits / 135817 lookups)",+ "strata serve: decode expert cache hit rate: 98.4% (121287 hits / 123280 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (117658 hits / 118026 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (120574 hits / 120915 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k23.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k23.jsonnew file mode 100644index 000000000..b0b582776--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k23.json@@ -0,0 +1,85 @@+{+ "label": "ks-k23",+ "extra": [+ "--layer-split",+ "23"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 8742.6,+ "pp_tok_s": 1837.7,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13084.2,+ "pp_tok_s": 2120.3,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3566.1,+ "turn2_tokens": 6660,+ "reused": 6631,+ "turn2_ms": 238.0,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 81.0,+ "reps": [+ 76.8,+ 85.2,+ 81.1+ ],+ "hit_rate": 0.9961302681992337,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, it was the latter. The sea was a churning black void, swallowing the horizon, throwing white foam against the granite base like a tantrum.\n\nInside the lantern room, the air was thick with the smell of kerosene and old brass. Elias wiped his hands on his wool trousers, the fabric stiff with salt and grease. He checked the clockwork mechanism that turned the lens. It was a beast of a thing, a Fresnel lens of eight feet in diameter, a cathedral of glass and crystal that focused the beam of the lamp into a single, piercing needle of light.\n\nHe wound the weights. *Click, click, click.* The gears engaged. The massive lens began its slow, hypnotic rotation.\n\nFor a moment, the"+ },+ {+ "name": "code",+ "tok_s": 108.4,+ "reps": [+ 105.1,+ 109.0,+ 111.1+ ],+ "hit_rate": 0.9961698810290479,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 537 windows; per window: wait for the GPU 7.423 ms, pool + plan 0.953 ms, host staging 0.542 ms, commit 0.237 ms",+ "strata serve: stage 1: 537 windows; per window: wait for the GPU 12.223 ms, pool + plan 0.236 ms, host staging 0.000 ms, commit 0.324 ms",+ "strata serve: stage 0: 606 windows; per window: wait for the GPU 7.519 ms, pool + plan 0.904 ms, host staging 0.483 ms, commit 0.239 ms",+ "strata serve: stage 1: 606 windows; per window: wait for the GPU 12.395 ms, pool + plan 0.242 ms, host staging 0.000 ms, commit 0.326 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 23)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4609 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 23-47, expert cache 6400 slots (12.82 GiB), 6400 of its 6400 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-22",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-22 (CUDA0), 23-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 96.8% (5528 hits / 5709 lookups)",+ "strata serve: decode expert cache hit rate: 98.4% (4235 hits / 4303 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (4260 hits / 4308 lookups)",+ "strata serve: decode expert cache hit rate: 98.6% (30643 hits / 31089 lookups)",+ "strata serve: decode expert cache hit rate: 98.6% (4248 hits / 4309 lookups)",+ "strata serve: decode expert cache hit rate: 98.3% (134776 hits / 137143 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (133024 hits / 133766 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (129995 hits / 130500 lookups)",+ "strata serve: decode expert cache hit rate: 97.9% (115782 hits / 118287 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (117953 hits / 118464 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (117560 hits / 118012 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k24.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k24.jsonnew file mode 100644index 000000000..0d5baf643--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k24.json@@ -0,0 +1,85 @@+{+ "label": "ks-k24",+ "extra": [+ "--layer-split",+ "24"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 8122.5,+ "pp_tok_s": 1978.0,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 12285.8,+ "pp_tok_s": 2258.1,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3407.0,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 234.0,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 83.5,+ "reps": [+ 84.9,+ 83.3,+ 82.3+ ],+ "hit_rate": 0.9949381327334084,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the rough fabric scratching against his stubble. Outside the thick, salt-crusted glass of the lantern room, the Atlantic was a churning cauldron of black and white foam. Rain lashed against the panes in horizontal sheets, blurring the world into a smear of gray and shadow.\n\nInside, however, it was warm. The smell of kerosene and old wood hung heavy in the air, a scent that had defined Elias\u2019s life for thirty years. He was not merely a keeper; he was a guardian of silence.\n\nHe checked the clock. 11:42 PM. The rotation of the great Fresnel lens was due. With a practiced hand, he engaged the brake on the clockwork mechanism. The heavy brass gears groaned, then began their slow, rhythmic turn. *Tick. Tick. Tick.* It was a heartbeat"+ },+ {+ "name": "code",+ "tok_s": 109.5,+ "reps": [+ 104.9,+ 111.0,+ 112.6+ ],+ "hit_rate": 0.9953796671318199,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 519 windows; per window: wait for the GPU 7.835 ms, pool + plan 0.767 ms, host staging 0.557 ms, commit 0.244 ms",+ "strata serve: stage 1: 519 windows; per window: wait for the GPU 11.922 ms, pool + plan 0.232 ms, host staging 0.000 ms, commit 0.325 ms",+ "strata serve: stage 0: 587 windows; per window: wait for the GPU 7.943 ms, pool + plan 0.744 ms, host staging 0.497 ms, commit 0.246 ms",+ "strata serve: stage 1: 587 windows; per window: wait for the GPU 12.073 ms, pool + plan 0.238 ms, host staging 0.000 ms, commit 0.326 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 24)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4603 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 24-47, expert cache 6144 slots (12.35 GiB), 6144 of its 6144 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-23",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-23 (CUDA0), 24-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 95.9% (5916 hits / 6171 lookups)",+ "strata serve: decode expert cache hit rate: 97.4% (3717 hits / 3815 lookups)",+ "strata serve: decode expert cache hit rate: 98.4% (3761 hits / 3823 lookups)",+ "strata serve: decode expert cache hit rate: 98.1% (27138 hits / 27664 lookups)",+ "strata serve: decode expert cache hit rate: 97.8% (3742 hits / 3826 lookups)",+ "strata serve: decode expert cache hit rate: 97.9% (126114 hits / 128875 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (133626 hits / 134658 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (132675 hits / 133350 lookups)",+ "strata serve: decode expert cache hit rate: 96.8% (113593 hits / 117399 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (118372 hits / 118949 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (116981 hits / 117524 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k26.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k26.jsonnew file mode 100644index 000000000..a7b95c137--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k26.json@@ -0,0 +1,85 @@+{+ "label": "ks-k26",+ "extra": [+ "--layer-split",+ "26"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 7880.9,+ "pp_tok_s": 2038.6,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 11771.9,+ "pp_tok_s": 2356.7,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3323.9,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 231.5,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 83.8,+ "reps": [+ 85.9,+ 83.1,+ 82.4+ ],+ "hit_rate": 0.9933966961830739,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the rough fabric scratching against his stubble. Outside the thick, salt-crusted glass of the lantern room, the Atlantic was a churning cauldron of black and white foam. Rain lashed against the panes in horizontal sheets, blurring the world into a smear of gray and green.\n\nInside, however, it was warm. The smell of kerosene and old wood hung heavy in the air, a scent that had defined Elias\u2019s life for thirty years. He was a keeper of the light, but more importantly, he was a keeper of time.\n\nHe checked his pocket watch. 11:42 PM. The rotation of the great Fresnel lens was due. With a practiced, rhythmic *clunk-clunk-clunk*, he wound the clockwork mechanism. The massive lens began its slow, hypnotic turn, sweeping its beam across"+ },+ {+ "name": "code",+ "tok_s": 109.7,+ "reps": [+ 104.4,+ 112.7,+ 111.9+ ],+ "hit_rate": 0.9938670271352759,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 519 windows; per window: wait for the GPU 8.376 ms, pool + plan 1.030 ms, host staging 0.566 ms, commit 0.273 ms",+ "strata serve: stage 1: 519 windows; per window: wait for the GPU 10.886 ms, pool + plan 0.214 ms, host staging 0.000 ms, commit 0.297 ms",+ "strata serve: stage 0: 588 windows; per window: wait for the GPU 8.506 ms, pool + plan 0.985 ms, host staging 0.505 ms, commit 0.274 ms",+ "strata serve: stage 1: 588 windows; per window: wait for the GPU 11.036 ms, pool + plan 0.219 ms, host staging 0.000 ms, commit 0.298 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 26)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4568 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 26-47, expert cache 5632 slots (11.32 GiB), 5632 of its 5632 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-25",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-25 (CUDA0), 26-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 92.8% (5259 hits / 5665 lookups)",+ "strata serve: decode expert cache hit rate: 95.2% (4056 hits / 4259 lookups)",+ "strata serve: decode expert cache hit rate: 97.2% (4164 hits / 4285 lookups)",+ "strata serve: decode expert cache hit rate: 97.1% (27690 hits / 28510 lookups)",+ "strata serve: decode expert cache hit rate: 97.5% (4184 hits / 4293 lookups)",+ "strata serve: decode expert cache hit rate: 96.9% (121839 hits / 125724 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (132165 hits / 133648 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (137652 hits / 138567 lookups)",+ "strata serve: decode expert cache hit rate: 95.3% (111307 hits / 116822 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (118436 hits / 119329 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (119109 hits / 119844 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k28.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k28.jsonnew file mode 100644index 000000000..8e8112028--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k28.json@@ -0,0 +1,85 @@+{+ "label": "ks-k28",+ "extra": [+ "--layer-split",+ "28"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 7989.3,+ "pp_tok_s": 2010.9,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 12132.9,+ "pp_tok_s": 2286.6,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3433.5,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 228.0,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 83.5,+ "reps": [+ 83.7,+ 82.4,+ 84.5+ ],+ "hit_rate": 0.9900441970361987,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, the glass was vibrating like a plucked cello string. The sea, usually a rhythmic pulse against the granite base, was now a chaotic, frothing beast, throwing itself against the rocks with the force of a battering ram.\n\nElias climbed the spiral stairs, his hand gripping the cold iron railing. His knees ached, not from age, but from the constant vibration of the floor beneath his feet. He reached the lantern room, the heart of the lighthouse, and checked the clockwork mechanism. The great lens, a prism of Fresnel glass, rotated with a steady, hypnotic *whirrr-click, whirrr-click*. It was the only sound that mattered. The light swept out into the black void, cutting through"+ },+ {+ "name": "code",+ "tok_s": 112.5,+ "reps": [+ 101.4,+ 112.1,+ 124.1+ ],+ "hit_rate": 0.9896636587366694,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys being the header values\n and values being the corresponding cell values.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result = []\n with open(file_path, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n```<|im_end|>"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 527 windows; per window: wait for the GPU 8.765 ms, pool + plan 1.401 ms, host staging 0.593 ms, commit 0.281 ms",+ "strata serve: stage 1: 527 windows; per window: wait for the GPU 9.893 ms, pool + plan 0.195 ms, host staging 0.000 ms, commit 0.276 ms",+ "strata serve: stage 0: 578 windows; per window: wait for the GPU 8.908 ms, pool + plan 1.359 ms, host staging 0.559 ms, commit 0.284 ms",+ "strata serve: stage 1: 578 windows; per window: wait for the GPU 10.025 ms, pool + plan 0.200 ms, host staging 0.000 ms, commit 0.278 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 28)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4537 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 28-47, expert cache 5120 slots (10.30 GiB), 5120 of its 5120 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-27",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-27 (CUDA0), 28-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 88.8% (5405 hits / 6086 lookups)",+ "strata serve: decode expert cache hit rate: 93.8% (3539 hits / 3773 lookups)",+ "strata serve: decode expert cache hit rate: 94.2% (3560 hits / 3781 lookups)",+ "strata serve: decode expert cache hit rate: 95.7% (26702 hits / 27899 lookups)",+ "strata serve: decode expert cache hit rate: 95.9% (3647 hits / 3804 lookups)",+ "strata serve: decode expert cache hit rate: 95.7% (122618 hits / 128160 lookups)",+ "strata serve: decode expert cache hit rate: 98.6% (135035 hits / 136884 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (129476 hits / 130778 lookups)",+ "strata serve: decode expert cache hit rate: 93.9% (111037 hits / 118290 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (118829 hits / 120140 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (90480 hits / 91425 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k30.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k30.jsonnew file mode 100644index 000000000..8ce08cd49--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k30.json@@ -0,0 +1,85 @@+{+ "label": "ks-k30",+ "extra": [+ "--layer-split",+ "30"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 8301.3,+ "pp_tok_s": 1935.4,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 12507.6,+ "pp_tok_s": 2218.1,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3448.7,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 229.4,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 81.1,+ "reps": [+ 78.0,+ 84.4,+ 81.0+ ],+ "hit_rate": 0.9798126997277784,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, the glass was vibrating like a plucked cello string. The sea, usually a rhythmic pulse against the granite base, was now a chaotic, frothing beast, throwing itself against the rocks with the force of a battering ram.\n\nElias stood at the top of the spiral staircase, his hand resting on the cold iron railing. He was not afraid. Fear was for the tourists who came in summer, wide-eyed and clutching their cameras. Elias was a keeper. He was a guardian.\n\nHe checked the logbook. The entry for the night was simple: *Wind, 60 knots. Visibility, zero. Light, operational.*\n\nHe walked down the stairs, his boots heavy on the metal grating. The smell of salt"+ },+ {+ "name": "code",+ "tok_s": 109.6,+ "reps": [+ 100.7,+ 114.1,+ 114.1+ ],+ "hit_rate": 0.9825370343977666,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 540 windows; per window: wait for the GPU 9.206 ms, pool + plan 1.794 ms, host staging 0.525 ms, commit 0.298 ms",+ "strata serve: stage 1: 540 windows; per window: wait for the GPU 8.767 ms, pool + plan 0.173 ms, host staging 0.000 ms, commit 0.242 ms",+ "strata serve: stage 0: 608 windows; per window: wait for the GPU 9.390 ms, pool + plan 1.733 ms, host staging 0.471 ms, commit 0.301 ms",+ "strata serve: stage 1: 608 windows; per window: wait for the GPU 8.910 ms, pool + plan 0.178 ms, host staging 0.000 ms, commit 0.244 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 30)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4479 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 30-47, expert cache 4608 slots (9.19 GiB), 4608 of its 4608 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-29",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-29 (CUDA0), 30-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 84.6% (5099 hits / 6028 lookups)",+ "strata serve: decode expert cache hit rate: 90.7% (3403 hits / 3751 lookups)",+ "strata serve: decode expert cache hit rate: 91.1% (3415 hits / 3747 lookups)",+ "strata serve: decode expert cache hit rate: 94.1% (26108 hits / 27737 lookups)",+ "strata serve: decode expert cache hit rate: 93.4% (3534 hits / 3784 lookups)",+ "strata serve: decode expert cache hit rate: 94.6% (127532 hits / 134866 lookups)",+ "strata serve: decode expert cache hit rate: 98.6% (135828 hits / 137786 lookups)",+ "strata serve: decode expert cache hit rate: 98.0% (132455 hits / 135184 lookups)",+ "strata serve: decode expert cache hit rate: 91.0% (106351 hits / 116917 lookups)",+ "strata serve: decode expert cache hit rate: 97.9% (115791 hits / 118246 lookups)",+ "strata serve: decode expert cache hit rate: 98.3% (117198 hits / 119281 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-k32.json b/bench/results/2026-09-29-layer-split/data/pp-ks-k32.jsonnew file mode 100644index 000000000..bf239857a--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-k32.json@@ -0,0 +1,85 @@+{+ "label": "ks-k32",+ "extra": [+ "--layer-split",+ "32"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 8837.1,+ "pp_tok_s": 1818.0,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13449.8,+ "pp_tok_s": 2062.7,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3565.7,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 227.0,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 83.0,+ "reps": [+ 75.0,+ 86.1,+ 87.8+ ],+ "hit_rate": 0.9796934433020751,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, it was the latter. The sea was a churning cauldron of black ink and white foam, throwing itself against the granite base with the force of a battering ram.\n\nInside the lantern room, the air was thick with the smell of kerosene and old brass. Elias wiped his hands on his woolen trousers, leaving faint, oily smears on the fabric. He checked the clock. 11:42 PM. The rotation was due.\n\nHe reached for the crank handle, a heavy iron wheel worn smooth by decades of his own palms. With a grunt that matched the strain of his shoulders, he began to turn it. *Click. Click. Click.* The gears engaged, and the massive Fresnel lens began its slow"+ },+ {+ "name": "code",+ "tok_s": 108.7,+ "reps": [+ 98.8,+ 112.2,+ 115.1+ ],+ "hit_rate": 0.9777186846317358,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 533 windows; per window: wait for the GPU 9.839 ms, pool + plan 2.192 ms, host staging 0.585 ms, commit 0.318 ms",+ "strata serve: stage 1: 533 windows; per window: wait for the GPU 8.014 ms, pool + plan 0.156 ms, host staging 0.000 ms, commit 0.231 ms",+ "strata serve: stage 0: 602 windows; per window: wait for the GPU 10.014 ms, pool + plan 2.111 ms, host staging 0.520 ms, commit 0.321 ms",+ "strata serve: stage 1: 602 windows; per window: wait for the GPU 8.094 ms, pool + plan 0.160 ms, host staging 0.000 ms, commit 0.232 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 32)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4488 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 32-47, expert cache 4096 slots (8.26 GiB), 4096 of its 4096 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-31",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-31 (CUDA0), 32-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 81.3% (4889 hits / 6010 lookups)",+ "strata serve: decode expert cache hit rate: 87.7% (3272 hits / 3733 lookups)",+ "strata serve: decode expert cache hit rate: 87.9% (3280 hits / 3733 lookups)",+ "strata serve: decode expert cache hit rate: 92.3% (24238 hits / 26254 lookups)",+ "strata serve: decode expert cache hit rate: 91.5% (3457 hits / 3778 lookups)",+ "strata serve: decode expert cache hit rate: 93.7% (133254 hits / 142240 lookups)",+ "strata serve: decode expert cache hit rate: 98.0% (130112 hits / 132812 lookups)",+ "strata serve: decode expert cache hit rate: 98.0% (130069 hits / 132765 lookups)",+ "strata serve: decode expert cache hit rate: 89.1% (105263 hits / 118190 lookups)",+ "strata serve: decode expert cache hit rate: 97.2% (116970 hits / 120309 lookups)",+ "strata serve: decode expert cache hit rate: 97.8% (115450 hits / 118081 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-ks-single.json b/bench/results/2026-09-29-layer-split/data/pp-ks-single.jsonnew file mode 100644index 000000000..d4fe9d7ce--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-ks-single.json@@ -0,0 +1,76 @@+{+ "label": "ks-single",+ "extra": [],+ "gpus": "0",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 9310.4,+ "pp_tok_s": 1725.6,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 14085.4,+ "pp_tok_s": 1969.6,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3388.7,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 200.7,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 86.7,+ "reps": [+ 78.2,+ 91.4,+ 90.4+ ],+ "hit_rate": 0.921882148773369,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy-three years old, and his hands were a map of the coastline he had guarded for fifty years. The knuckles were swollen, the skin cracked like dry earth, but they moved with a precision that no machine could replicate.\n\nHe stood on the gallery of the *Harrow Point* lighthouse, the iron railing cold against his palms. Below, the Atlantic churned in a frenzy, whitecaps exploding against the black rocks like fireworks. Above, the sky was a bruised purple, heavy with rain that hadn\u2019t yet fallen.\n\nElias checked the clock. 11:42 PM. The light was due.\n\nHe didn\u2019t look at the gauge. He didn\u2019t check the fuel levels. He knew. He always knew. The rhythm of the ocean, the pressure of the air, the subtle vibration"+ },+ {+ "name": "code",+ "tok_s": 105.2,+ "reps": [+ 87.8,+ 113.5,+ 114.2+ ],+ "hit_rate": 0.9109811738648947,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 382 windows; per window: wait for the GPU 15.155 ms, pool + plan 4.331 ms, host staging 0.656 ms, commit 0.458 ms",+ "strata serve: stage 0: 455 windows; per window: wait for the GPU 15.790 ms, pool + plan 5.552 ms, host staging 0.688 ms, commit 0.467 ms",+ "strata serve: stage 0: 524 windows; per window: wait for the GPU 16.064 ms, pool + plan 5.529 ms, host staging 0.606 ms, commit 0.472 ms",+ "strata serve: stage 0: 593 windows; per window: wait for the GPU 16.305 ms, pool + plan 5.462 ms, host staging 0.540 ms, commit 0.475 ms"+ ],+ "engine_lines": [+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4293 slots, 8.17 GiB of VRAM; policy is",+ "strata serve: the prompt path borrows 2343 cache slots (4.42 GiB)",+ "strata serve: decode expert cache hit rate: 59.6% (2749 hits / 4610 lookups)",+ "strata serve: decode expert cache hit rate: 67.8% (2299 hits / 3391 lookups)",+ "strata serve: decode expert cache hit rate: 68.5% (2345 hits / 3424 lookups)",+ "strata serve: decode expert cache hit rate: 75.6% (16605 hits / 21959 lookups)",+ "strata serve: decode expert cache hit rate: 73.3% (2608 hits / 3558 lookups)",+ "strata serve: decode expert cache hit rate: 83.7% (104878 hits / 125346 lookups)",+ "strata serve: decode expert cache hit rate: 92.7% (119739 hits / 129184 lookups)",+ "strata serve: decode expert cache hit rate: 92.2% (116867 hits / 126770 lookups)",+ "strata serve: decode expert cache hit rate: 68.1% (64111 hits / 94116 lookups)",+ "strata serve: decode expert cache hit rate: 89.0% (96370 hits / 108259 lookups)",+ "strata serve: decode expert cache hit rate: 91.1% (102827 hits / 112875 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-rel-5080.json b/bench/results/2026-09-29-layer-split/data/pp-rel-5080.jsonnew file mode 100644index 000000000..e07838464--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-rel-5080.json@@ -0,0 +1,72 @@+{+ "label": "rel-5080",+ "extra": [],+ "gpus": "0",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2132.8,+ "pp_tok_s": 1278.1,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 5008.9,+ "pp_tok_s": 1672.8,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 7855.4,+ "pp_tok_s": 2045.2,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13833.9,+ "pp_tok_s": 2005.4,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3298.2,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 197.9,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 83.2,+ "hit_rate": 0.8418683557684931,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, it was the latter. The sea was a churning cauldron of black ink and white foam, throwing itself against the granite base with the force of a battering ram.\n\nInside the lantern room, the air was thick with the smell of kerosene and old brass. Elias wiped his hands on his woolen trousers, leaving faint, oily smears on the fabric. He checked the clock. 11:42 PM. The rotation was due.\n\nHe reached for the crank handle, a heavy iron wheel worn smooth by decades of his own palms. With a grunt that matched the strain of his shoulders, he began to turn it. *Click. Click. Click.* The gears engaged, and the massive Fresnel lens began its slow"+ },+ {+ "name": "code",+ "tok_s": 88.2,+ "hit_rate": 0.7011385968111186,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "engine_lines": [+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4293 slots, 8.17 GiB of VRAM; policy is",+ "strata serve: the prompt path borrows 2343 cache slots (4.42 GiB)",+ "strata serve: decode expert cache hit rate: 59.6% (2749 hits / 4610 lookups)",+ "strata serve: decode expert cache hit rate: 64.2% (2136 hits / 3329 lookups)",+ "strata serve: decode expert cache hit rate: 67.3% (2309 hits / 3432 lookups)",+ "strata serve: decode expert cache hit rate: 72.5% (2539 hits / 3504 lookups)",+ "strata serve: decode expert cache hit rate: 77.3% (2817 hits / 3642 lookups)",+ "strata serve: decode expert cache hit rate: 75.3% (16500 hits / 21916 lookups)",+ "strata serve: decode expert cache hit rate: 80.0% (2978 hits / 3723 lookups)",+ "strata serve: decode expert cache hit rate: 84.2% (98752 hits / 117301 lookups)",+ "strata serve: decode expert cache hit rate: 70.1% (69215 hits / 98718 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-t75-5080.json b/bench/results/2026-09-29-layer-split/data/pp-t75-5080.jsonnew file mode 100644index 000000000..a339822fb--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-t75-5080.json@@ -0,0 +1,78 @@+{+ "label": "t75-5080",+ "extra": [],+ "gpus": "0",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2158.8,+ "pp_tok_s": 1262.7,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 5060.0,+ "pp_tok_s": 1655.9,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3389.7,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 213.5,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 80.4,+ "reps": [+ 80.4+ ],+ "hit_rate": 0.855538332528651,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, it was the latter. The sea was a churning black void, punctuated by whitecaps that looked like teeth.\n\nHe climbed the spiral stairs, his boots heavy with salt and exhaustion. The iron steps groaned under his weight, a sound that had become so familiar to him that he could sleep to it. But tonight, he wasn\u2019t sleeping. He was working.\n\nThe lens was the heart of the lighthouse. A massive, rotating Fresnel lens, a cathedral of glass and brass that turned with a mechanical hum. Elias checked the clockwork mechanism. It was smooth, rhythmic, a heartbeat in the dark. But the light itself was failing.\n\nHe climbed higher, into the lantern room. The wind battered the glass panes,"+ },+ {+ "name": "code",+ "tok_s": 87.5,+ "reps": [+ 87.5+ ],+ "hit_rate": 0.7075461363025227,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 39 windows; per window: wait for the GPU 17.252 ms, pool + plan 8.473 ms, host staging 0.611 ms, commit 0.525 ms",+ "strata serve: stage 0: 47 windows; per window: wait for the GPU 18.018 ms, pool + plan 8.616 ms, host staging 0.607 ms, commit 0.534 ms",+ "strata serve: stage 0: 169 windows; per window: wait for the GPU 15.223 ms, pool + plan 5.717 ms, host staging 0.688 ms, commit 0.467 ms",+ "strata serve: stage 0: 243 windows; per window: wait for the GPU 16.500 ms, pool + plan 7.316 ms, host staging 0.742 ms, commit 0.481 ms"+ ],+ "engine_lines": [+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4294 slots, 8.18 GiB of VRAM; policy is",+ "strata serve: the prompt path borrows 2343 cache slots (4.42 GiB)",+ "strata serve: decode expert cache hit rate: 59.6% (2749 hits / 4610 lookups)",+ "strata serve: decode expert cache hit rate: 64.2% (2136 hits / 3329 lookups)",+ "strata serve: decode expert cache hit rate: 67.3% (2309 hits / 3432 lookups)",+ "strata serve: decode expert cache hit rate: 75.5% (16316 hits / 21602 lookups)",+ "strata serve: decode expert cache hit rate: 74.4% (2660 hits / 3573 lookups)",+ "strata serve: decode expert cache hit rate: 83.4% (92664 hits / 111086 lookups)",+ "strata serve: decode expert cache hit rate: 72.0% (70946 hits / 98601 lookups)",+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4293 slots, 8.17 GiB of VRAM; policy is",+ "strata serve: the prompt path borrows 2343 cache slots (4.42 GiB)",+ "strata serve: decode expert cache hit rate: 59.6% (2749 hits / 4610 lookups)",+ "strata serve: decode expert cache hit rate: 64.2% (2136 hits / 3329 lookups)",+ "strata serve: decode expert cache hit rate: 67.3% (2309 hits / 3432 lookups)",+ "strata serve: decode expert cache hit rate: 75.5% (16316 hits / 21602 lookups)",+ "strata serve: decode expert cache hit rate: 74.4% (2659 hits / 3572 lookups)",+ "strata serve: decode expert cache hit rate: 85.6% (101004 hits / 118059 lookups)",+ "strata serve: decode expert cache hit rate: 70.8% (71044 hits / 100409 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-v-x2-auto.json b/bench/results/2026-09-29-layer-split/data/pp-v-x2-auto.jsonnew file mode 100644index 000000000..4b02eecbf--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-v-x2-auto.json@@ -0,0 +1,103 @@+{+ "label": "v-x2-auto",+ "extra": [+ "--layer-split",+ "auto"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2577.0,+ "pp_tok_s": 1057.8,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 4433.5,+ "pp_tok_s": 1889.9,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 7885.8,+ "pp_tok_s": 2037.3,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13384.6,+ "pp_tok_s": 2072.8,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3667.5,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 253.8,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 79.5,+ "reps": [+ 78.9,+ 79.0,+ 80.7+ ],+ "hit_rate": 0.9969903443250137,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the rough fabric scratching against his stubble. Outside the thick, salt-crusted glass of the lantern room, the Atlantic was a churning cauldron of black and white foam. Rain lashed against the panes in horizontal sheets, blurring the world into a smear of gray and shadow.\n\nInside, however, it was warm. The smell of kerosene and old wood hung heavy in the air, a scent that had defined his life for thirty years.\n\nElias was not a man of many words. He was a man of many tasks. His hands, mapped with scars from rope burns and broken glass, moved with a rhythm that predated his memory. He checked the clockwork mechanism of the Fresnel lens, listening for the faint, rhythmic *tick-tick-tick* that signaled the rotation was true. If the rhythm faltered, ships"+ },+ {+ "name": "code",+ "tok_s": 108.9,+ "reps": [+ 103.3,+ 113.7,+ 109.5+ ],+ "hit_rate": 0.9971795386830036,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 542 windows; per window: wait for the GPU 7.167 ms, pool + plan 0.572 ms, host staging 0.550 ms, commit 0.232 ms",+ "strata serve: stage 1: 542 windows; per window: wait for the GPU 12.855 ms, pool + plan 0.250 ms, host staging 0.000 ms, commit 0.334 ms",+ "strata serve: stage 0: 610 windows; per window: wait for the GPU 7.276 ms, pool + plan 0.559 ms, host staging 0.493 ms, commit 0.234 ms",+ "strata serve: stage 1: 610 windows; per window: wait for the GPU 13.048 ms, pool + plan 0.258 ms, host staging 0.000 ms, commit 0.337 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: layer split auto: CUDA0 84 SMs at 2.81 GHz -> 0.31 ms per layer, 8.30 GiB for experts",+ "strata generate: layer split auto: CUDA1 82 SMs at 1.86 GHz -> 0.48 ms per layer, 14.14 GiB for experts",+ "strata generate: layer split auto: K=22 - predicted 19.7 ms per decode window; the caches hold 11298 of 12288 profiled pairs (~99.7% of the routed mass)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4640 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 22-47, expert cache 6656 slots (13.34 GiB), 6656 of its 6656 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-21",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-21 (CUDA0), 22-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 97.7% (5609 hits / 5739 lookups)",+ "strata serve: decode expert cache hit rate: 98.5% (4241 hits / 4306 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (4262 hits / 4309 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (4290 hits / 4315 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (4303 hits / 4319 lookups)",+ "strata serve: decode expert cache hit rate: 98.8% (28379 hits / 28721 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (4285 hits / 4314 lookups)",+ "strata serve: decode expert cache hit rate: 98.5% (136232 hits / 138256 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (135540 hits / 136216 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (136812 hits / 137225 lookups)",+ "strata serve: decode expert cache hit rate: 98.4% (118437 hits / 120406 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (112836 hits / 113230 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-v-x2r-auto.json b/bench/results/2026-09-29-layer-split/data/pp-v-x2r-auto.jsonnew file mode 100644index 000000000..786a117f8--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-v-x2r-auto.json@@ -0,0 +1,88 @@+{+ "label": "v-x2r-auto",+ "extra": [+ "--layer-split",+ "auto"+ ],+ "gpus": "2,0",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 9610.0,+ "pp_tok_s": 1671.8,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 14786.1,+ "pp_tok_s": 1876.3,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3850.8,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 245.0,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 90.3,+ "reps": [+ 91.0,+ 97.0,+ 82.8+ ],+ "hit_rate": 0.993905472636816,+ "text": "The wind didn\u2019t just blow; it screamed. It tore through the iron gallery of the Blackwood Point Lighthouse, rattling the glass panes like a prisoner shaking its bars.\n\nElias Thorne was seventy years old, and he had been the keeper for forty of them. He knew every creak of the spiral staircase, every draft that slipped under the door, and every shift in the barometric pressure that preceded a storm. He was not merely a worker; he was the heartbeat of the coast.\n\nIt was November, the month of grey seas and shorter days. The fog had rolled in thick, a wall of white so dense that even the beam of the Fresnel lens seemed to struggle against it. Elias stood in the lantern room, his hands roughened by salt and rope, adjusting the rotation mechanism. The great lens, a cathedral of glass and brass, began its slow, rhythmic sweep. *Flash. Dark. Flash. Dark.*\n\nHe checked the log"+ },+ {+ "name": "code",+ "tok_s": 105.1,+ "reps": [+ 98.4,+ 109.9,+ 107.0+ ],+ "hit_rate": 0.9949900793650793,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 492 windows; per window: wait for the GPU 15.016 ms, pool + plan 0.297 ms, host staging 0.517 ms, commit 0.404 ms",+ "strata serve: stage 1: 492 windows; per window: wait for the GPU 5.775 ms, pool + plan 0.854 ms, host staging 0.001 ms, commit 0.210 ms",+ "strata serve: stage 0: 561 windows; per window: wait for the GPU 15.257 ms, pool + plan 0.306 ms, host staging 0.455 ms, commit 0.408 ms",+ "strata serve: stage 1: 561 windows; per window: wait for the GPU 5.852 ms, pool + plan 0.820 ms, host staging 0.001 ms, commit 0.210 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 57.7 GB/s -> pcie_frac 0.55",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 9.98 GiB free",+ "strata generate: layer split auto: CUDA0 82 SMs at 1.86 GHz -> 0.48 ms per layer, 16.45 GiB for experts",+ "strata generate: layer split auto: CUDA1 84 SMs at 2.81 GHz -> 0.31 ms per layer, 5.99 GiB for experts",+ "strata generate: layer split auto: K=30 - predicted 20.8 ms per decode window; the caches hold 10684 of 12288 profiled pairs (~99.5% of the routed mass)",+ "strata generate: expert cache auto: 18.62 GiB free, 700 MiB reserved -> 6634 slots",+ "strata generate: expert cache 7680 slots, 14.23 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 30-47, expert cache 3004 slots (5.98 GiB), 3004 of its 4608 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-29",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-29 (CUDA0), 30-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 93.2% (5367 hits / 5760 lookups)",+ "strata serve: decode expert cache hit rate: 93.7% (4049 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 96.7% (4178 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 97.7% (26272 hits / 26880 lookups)",+ "strata serve: decode expert cache hit rate: 97.1% (4194 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 97.8% (110748 hits / 113280 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (113787 hits / 114240 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (127856 hits / 128640 lookups)",+ "strata serve: decode expert cache hit rate: 96.3% (116528 hits / 120960 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (116423 hits / 117120 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (120354 hits / 120960 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-v-x3-auto.json b/bench/results/2026-09-29-layer-split/data/pp-v-x3-auto.jsonnew file mode 100644index 000000000..70510aef3--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-v-x3-auto.json@@ -0,0 +1,89 @@+{+ "label": "v-x3-auto",+ "extra": [+ "--layer-split",+ "auto"+ ],+ "gpus": "0,1,2",+ "needles": [+ {+ "tokens": 16066,+ "prompt_ms": 9525.4,+ "pp_tok_s": 1686.6,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 15017.1,+ "pp_tok_s": 1847.4,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4039.6,+ "turn2_tokens": 6660,+ "reused": 6631,+ "turn2_ms": 360.2,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 67.6,+ "reps": [+ 59.8,+ 83.1,+ 59.9+ ],+ "hit_rate": 0.9967581085879247,+ "text": "The wind didn\u2019t just blow; it screamed. It tore through the iron gallery of the Blackwood Point Lighthouse, rattling the glass panes like a prisoner shaking its bars.\n\nElias Thorne was seventy years old, and he had been the keeper for forty of them. He knew every creak in the spiral staircase, every draft that slipped under the door, and every shift in the weather that the barometer couldn\u2019t quite predict. He knew that when the fog rolled in thick enough to swallow the horizon, the world ceased to exist. There was only the light, the stone, and him.\n\nIt was November, the month of storms. The sea was a churning cauldron of grey and white, throwing itself against the granite base with the force of a battering ram. Elias stood in the lantern room, his hands rough as sandpaper, adjusting the massive Fresnel lens. The rotation mechanism groaned, a sound like a ship\u2019s anchor chain being h"+ },+ {+ "name": "code",+ "tok_s": 89.6,+ "reps": [+ 81.0,+ 104.8,+ 83.0+ ],+ "hit_rate": 0.9975041387598007,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 2: 522 windows; per window: wait for the GPU 12.405 ms, pool + plan 0.242 ms, host staging 0.006 ms, commit 0.375 ms",+ "strata serve: stage 0: 590 windows; per window: wait for the GPU 7.387 ms, pool + plan 0.549 ms, host staging 0.517 ms, commit 0.248 ms",+ "strata serve: stage 1: 590 windows; per window: wait for the GPU 3.071 ms, pool + plan 0.011 ms, host staging 0.000 ms, commit 0.606 ms",+ "strata serve: stage 2: 590 windows; per window: wait for the GPU 12.592 ms, pool + plan 0.250 ms, host staging 0.006 ms, commit 0.377 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 3 GPUs: CUDA0, then CUDA1,2 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 3.2 GB/s -> pcie_frac 0.00",+ "strata generate: layer split: CUDA1 holds its weights, session; 16.67 GiB free",+ "strata generate: layer split: CUDA2 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA2 holds its weights, session and head; 18.13 GiB free",+ "strata generate: layer split auto: CUDA0 84 SMs at 2.81 GHz -> 0.31 ms per layer, 8.30 GiB for experts",+ "strata generate: layer split auto: CUDA1 68 SMs at 1.54 GHz -> 0.69 ms per layer, 13.50 GiB for experts",+ "strata generate: layer split auto: CUDA2 82 SMs at 1.86 GHz -> 0.48 ms per layer, 14.14 GiB for experts",+ "strata generate: layer split auto: K=22,23 - predicted 19.9 ms per decode window; the caches hold 11298 of 12288 profiled pairs (~99.7% of the routed mass)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4640 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 22-22, expert cache 256 slots (0.52 GiB), 256 of its 256 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA2 runs layers 23-47, expert cache 6400 slots (12.82 GiB), 6400 of its 6400 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-21",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-21 (CUDA0), 22-22 (CUDA1), 23-47 (CUDA2), one hand-off per window",+ "strata serve: decode expert cache hit rate: 97.7% (5609 hits / 5739 lookups)",+ "strata serve: decode expert cache hit rate: 98.7% (4256 hits / 4310 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (4278 hits / 4315 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (29862 hits / 30170 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (4264 hits / 4313 lookups)",+ "strata serve: decode expert cache hit rate: 98.6% (134418 hits / 136339 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (116986 hits / 117525 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (129134 hits / 129554 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-x2-auto-c1024.json b/bench/results/2026-09-29-layer-split/data/pp-x2-auto-c1024.jsonnew file mode 100644index 000000000..9bc24c354--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-x2-auto-c1024.json@@ -0,0 +1,84 @@+{+ "label": "x2-auto-c1024",+ "extra": [+ "--layer-split",+ "auto",+ "--prefill",+ "1024"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2648.7,+ "pp_tok_s": 1029.2,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 5547.0,+ "pp_tok_s": 1510.5,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 10123.3,+ "pp_tok_s": 1587.0,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 17652.0,+ "pp_tok_s": 1571.7,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4379.9,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 235.5,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 82.7,+ "hit_rate": 1.0,+ "text": "The wind didn\u2019t just blow; it screamed. It tore through the iron gallery of the Blackwood Point Lighthouse, rattling the glass panes like a prisoner shaking its bars.\n\nElias Thorne was seventy years old, and he had been the keeper for forty of them. He knew every creak in the spiral staircase, every draft that slipped under the door, and every shift in the weather that the barometer couldn\u2019t quite predict. He knew that when the fog rolled in thick enough to swallow the horizon, the world ceased to exist. There was only the light, the stone, and him.\n\nIt was November, the month of storms. The sea was a churning cauldron of grey and white, throwing itself against the granite base with a violence that made the floorboards tremble. Elias stood by the lantern room, his hands wrapped around a mug of coffee that had gone cold hours ago. He wasn\u2019t drinking it. He was holding it for warmth."+ },+ {+ "name": "code",+ "tok_s": 111.1,+ "hit_rate": 1.0,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys being the header values\n and values being the corresponding cell values.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result = []\n with open(file_path, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_basic():\n \"\"\"Test basic CSV parsing with simple data.\"\"\"\n import tempfile\n import os\n \n # Create a temporary CSV"+ }+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: layer split auto: K=19 - the caches hold 12288 of 12288 profiled pairs (fullest device 99%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3613 slots",+ "strata generate: expert cache 4864 slots, 8.76 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 19-47, expert cache 7424 slots (14.66 GiB), 7424 of its 7424 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-18",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-18 (CUDA0), 19-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 100.0% (5760 hits / 5760 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (4320 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (4320 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (4320 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (4320 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (26400 hits / 26400 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (4320 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (130080 hits / 130080 lookups)",+ "strata serve: decode expert cache hit rate: 100.0% (110400 hits / 110400 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-x2-auto.json b/bench/results/2026-09-29-layer-split/data/pp-x2-auto.jsonnew file mode 100644index 000000000..280c63ea0--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-x2-auto.json@@ -0,0 +1,82 @@+{+ "label": "x2-auto",+ "extra": [+ "--layer-split",+ "auto"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2711.7,+ "pp_tok_s": 1005.3,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 5010.3,+ "pp_tok_s": 1672.4,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 8994.8,+ "pp_tok_s": 1786.1,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 15497.2,+ "pp_tok_s": 1790.2,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4050.3,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 249.7,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 83.0,+ "hit_rate": 0.9920220447608565,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference between a gale and a hurricane by the way the glass rattled in its frame. Tonight, it was the latter. The sea was a churning cauldron of black ink and white foam, throwing itself against the granite base with the force of a battering ram.\n\nInside the lantern room, the air was thick with the smell of kerosene and old brass. Elias wiped his hands on his woolen trousers, leaving faint, oily smears on the fabric. He checked the clock. 11:42 PM. The rotation was due.\n\nHe reached for the crank handle, a heavy iron wheel worn smooth by decades of his own palms. With a grunt that matched the strain of his shoulders, he began to turn it. The massive Fresnel lens, a cathedral of glass and crystal, began its slow, hypnotic sweep"+ },+ {+ "name": "code",+ "tok_s": 101.8,+ "hit_rate": 0.991767530342175,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: layer split auto: K=19 - the caches hold 11767 of 12288 profiled pairs (fullest device 100%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4606 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 19-47, expert cache 7160 slots (14.14 GiB), 7160 of its 7424 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-18",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-18 (CUDA0), 19-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 98.5% (6141 hits / 6234 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (3797 hits / 3838 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (3804 hits / 3838 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (3816 hits / 3839 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (3825 hits / 3839 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (27693 hits / 27832 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (3815 hits / 3839 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (127081 hits / 128103 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (119386 hits / 120377 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-x2-k16.json b/bench/results/2026-09-29-layer-split/data/pp-x2-k16.jsonnew file mode 100644index 000000000..cca7bcf6d--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-x2-k16.json@@ -0,0 +1,81 @@+{+ "label": "x2-k16",+ "extra": [+ "--layer-split",+ "16"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2987.1,+ "pp_tok_s": 912.6,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 5908.6,+ "pp_tok_s": 1418.1,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 10655.8,+ "pp_tok_s": 1507.7,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 18484.6,+ "pp_tok_s": 1500.9,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4790.8,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 243.3,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 71.4,+ "hit_rate": 0.9814261642156863,+ "text": "The wind didn\u2019t just blow; it screamed. It clawed at the granite base of the tower, trying to pry the lighthouse from its bedrock. Inside, however, the air was still, smelling faintly of kerosene and old paper.\n\nElias had been the keeper of the Point for thirty-two years. He knew every creak in the floorboards, every draft that slipped through the window seals, and exactly how much oil the great Fresnel lens needed to turn its slow, hypnotic rotation.\n\nIt was 2:00 AM. The storm was at its peak. The sea was a chaotic black mirror, whipped into whitecaps that looked like jagged teeth.\n\nElias climbed the spiral stairs, his hand gripping the cold iron railing. His boots, heavy with salt and wear, thumped a steady rhythm against the stone. *Thump. Thump. Thump.*\n\nAt the top, the lantern room hummed with the vibration of"+ },+ {+ "name": "code",+ "tok_s": 86.4,+ "hit_rate": 0.9798276439089693,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 16)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4096 slots, 7.17 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 16-47, expert cache 7124 slots (14.14 GiB), 7124 of its 8192 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-15",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-15 (CUDA0), 16-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 97.7% (5626 hits / 5760 lookups)",+ "strata serve: decode expert cache hit rate: 98.1% (4237 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 98.8% (4269 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (4279 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (4298 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (28471 hits / 28800 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (4282 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 98.1% (128135 hits / 130560 lookups)",+ "strata serve: decode expert cache hit rate: 98.0% (117109 hits / 119520 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-x2-k22.json b/bench/results/2026-09-29-layer-split/data/pp-x2-k22.jsonnew file mode 100644index 000000000..765880e96--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-x2-k22.json@@ -0,0 +1,81 @@+{+ "label": "x2-k22",+ "extra": [+ "--layer-split",+ "22"+ ],+ "gpus": "0,2",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2537.7,+ "pp_tok_s": 1074.2,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 4440.0,+ "pp_tok_s": 1887.2,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 7872.5,+ "pp_tok_s": 2040.8,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 13405.0,+ "pp_tok_s": 2069.6,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3610.4,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 236.0,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 78.1,+ "hit_rate": 0.9851122208995093,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy-three years old, and he had been the keeper of the Blackwood Point Light for forty of those years. The other thirty-three had been spent in a hospital bed, waiting for the end.\n\nEvery night, Elias climbed the one hundred and twelve steps of the spiral staircase. His knees, worn smooth by the friction of his own boots over decades, protested with a sharp ache. He counted them. *One, two, three\u2026* The rhythm was his heartbeat. If he lost the count, he lost the light.\n\nAt the top, the lantern room hummed with the low, electric thrum of the Fresnel lens. It was a cathedral of glass and brass, a machine that had never failed him. Not once. Not in four decades.\n\nHe polished the brass railing with a rag that smelled of lemon and"+ },+ {+ "name": "code",+ "tok_s": 104.3,+ "hit_rate": 0.9842543225870746,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 22)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4640 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 22-47, expert cache 6656 slots (13.34 GiB), 6656 of its 6656 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-21",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-21 (CUDA0), 22-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 97.7% (5609 hits / 5739 lookups)",+ "strata serve: decode expert cache hit rate: 98.5% (4241 hits / 4306 lookups)",+ "strata serve: decode expert cache hit rate: 98.9% (4262 hits / 4309 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (4290 hits / 4315 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (4303 hits / 4319 lookups)",+ "strata serve: decode expert cache hit rate: 98.8% (28379 hits / 28721 lookups)",+ "strata serve: decode expert cache hit rate: 99.3% (4285 hits / 4314 lookups)",+ "strata serve: decode expert cache hit rate: 98.5% (135713 hits / 137764 lookups)",+ "strata serve: decode expert cache hit rate: 98.4% (118518 hits / 120414 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-x2r-auto.json b/bench/results/2026-09-29-layer-split/data/pp-x2r-auto.jsonnew file mode 100644index 000000000..acc5c9864--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-x2r-auto.json@@ -0,0 +1,82 @@+{+ "label": "x2r-auto",+ "extra": [+ "--layer-split",+ "auto"+ ],+ "gpus": "2,0",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 2804.2,+ "pp_tok_s": 972.1,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 5641.7,+ "pp_tok_s": 1485.2,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 10643.4,+ "pp_tok_s": 1509.5,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 18363.5,+ "pp_tok_s": 1510.8,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4517.2,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 245.6,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 78.9,+ "hit_rate": 0.9913117283950618,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the fabric stiff with salt and ice. Outside the thick glass of the lantern room, the Atlantic was a churning cauldron of black and white, the waves crashing against the granite base with a violence that shook the very foundations of the tower. It was November, 1924, and the storm had been raging for three days.\n\nElias was not a man who feared the dark. He was a man who feared the silence.\n\nHe checked the clock on the wall. 11:42 PM. The rotation of the great Fresnel lens was steady, a rhythmic *whirrr-click, whirrr-click* that seemed to sync with his own heartbeat. He had been doing this for forty years. His hands were mapped with scars from rope burns and broken glass, his eyes permanently squinted against the glare of the bulb."+ },+ {+ "name": "code",+ "tok_s": 93.4,+ "hit_rate": 0.990286044973545,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 57.7 GB/s -> pcie_frac 0.55",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 9.98 GiB free",+ "strata generate: layer split auto: K=36 - the caches hold 11775 of 12288 profiled pairs (fullest device 100%)",+ "strata generate: expert cache auto: 18.62 GiB free, 700 MiB reserved -> 6634 slots",+ "strata generate: expert cache 8828 slots, 16.45 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 36-47, expert cache 2945 slots (5.99 GiB), 2945 of its 3072 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-35",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-35 (CUDA0), 36-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 98.6% (5678 hits / 5760 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (4283 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 99.2% (4285 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 99.6% (4303 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 99.7% (4306 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 99.5% (27700 hits / 27840 lookups)",+ "strata serve: decode expert cache hit rate: 99.4% (4295 hits / 4320 lookups)",+ "strata serve: decode expert cache hit rate: 99.1% (128474 hits / 129600 lookups)",+ "strata serve: decode expert cache hit rate: 99.0% (119785 hits / 120960 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-x2t-auto.json b/bench/results/2026-09-29-layer-split/data/pp-x2t-auto.jsonnew file mode 100644index 000000000..9c1411167--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-x2t-auto.json@@ -0,0 +1,99 @@+{+ "label": "x2t-auto",+ "extra": [+ "--layer-split",+ "auto"+ ],+ "gpus": "0,1",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 4201.1,+ "pp_tok_s": 648.9,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 9655.6,+ "pp_tok_s": 867.8,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 17573.8,+ "pp_tok_s": 914.2,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 30615.6,+ "pp_tok_s": 906.2,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 7864.7,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 366.9,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 45.5,+ "reps": [+ 45.5+ ],+ "hit_rate": 0.9703345151405784,+ "text": "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with salt and age. He was seventy years old, but he moved with the grace of a man who had spent decades on a narrow spiral staircase. His hands, rough as sandpaper, knew every bolt, every lever, and every creak in the iron bones of the tower.\n\nFor forty years, Elias had been the guardian of the Point. Not just of the light, but of the silence between the waves.\n\nIt was November. The sky was a bruised purple, heavy with rain that hadn\u2019t yet fallen. The sea was a churning cauldron of grey and white, throwing itself against the granite base with a violence that shook the floorboards beneath Elias\u2019s boots.\n\nHe climbed the stairs. One hundred and twelve steps. He counted them by feel, his left hand trailing along the cold iron railing. At the top, the air was"+ },+ {+ "name": "code",+ "tok_s": 58.0,+ "reps": [+ 58.0+ ],+ "hit_rate": 0.9700542735219787,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys from the header and values from the row.\n \n Args:\n filepath: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result: List[Dict[str, Any]] = []\n with open(filepath, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_to_dicts():\n import tempfile\n import os\n \n # Create a temporary CSV file\n with tempfile.NamedTemporaryFile"+ }+ ],+ "stage_timing": [+ "strata serve: stage 0: 168 windows; per window: wait for the GPU 9.683 ms, pool + plan 0.509 ms, host staging 0.714 ms, commit 0.320 ms",+ "strata serve: stage 1: 168 windows; per window: wait for the GPU 25.253 ms, pool + plan 0.881 ms, host staging 0.000 ms, commit 0.559 ms",+ "strata serve: stage 0: 242 windows; per window: wait for the GPU 9.860 ms, pool + plan 0.550 ms, host staging 0.750 ms, commit 0.328 ms",+ "strata serve: stage 1: 242 windows; per window: wait for the GPU 26.029 ms, pool + plan 0.980 ms, host staging 0.000 ms, commit 0.571 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 3.2 GB/s -> pcie_frac 0.00",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 16.18 GiB free",+ "strata generate: layer split auto: K=20 - the caches hold 10761 of 12288 profiled pairs (fullest device 100%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4603 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 20-47, expert cache 6157 slots (12.19 GiB), 6157 of its 7168 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-19",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-19 (CUDA0), 20-47 (CUDA1), one hand-off per window",+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 3.2 GB/s -> pcie_frac 0.00",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 16.18 GiB free",+ "strata generate: layer split auto: K=20 - the caches hold 10761 of 12288 profiled pairs (fullest device 100%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4603 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 20-47, expert cache 6157 slots (12.19 GiB), 6157 of its 7168 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-19",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-19 (CUDA0), 20-47 (CUDA1), one hand-off per window",+ "strata serve: decode expert cache hit rate: 96.6% (5559 hits / 5754 lookups)",+ "strata serve: decode expert cache hit rate: 97.5% (4205 hits / 4315 lookups)",+ "strata serve: decode expert cache hit rate: 97.8% (4217 hits / 4312 lookups)",+ "strata serve: decode expert cache hit rate: 98.6% (4257 hits / 4318 lookups)"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/pp-x3-auto.json b/bench/results/2026-09-29-layer-split/data/pp-x3-auto.jsonnew file mode 100644index 000000000..14cd5a501--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/pp-x3-auto.json@@ -0,0 +1,99 @@+{+ "label": "x3-auto",+ "extra": [+ "--layer-split",+ "auto"+ ],+ "gpus": "0,2,1",+ "needles": [+ {+ "tokens": 2726,+ "prompt_ms": 3657.4,+ "pp_tok_s": 745.3,+ "found": true,+ "answer": "meadow-254<|im_end|>"+ },+ {+ "tokens": 8379,+ "prompt_ms": 7594.1,+ "pp_tok_s": 1103.4,+ "found": true,+ "answer": "juniper-766<|im_end|>"+ },+ {+ "tokens": 16066,+ "prompt_ms": 13996.4,+ "pp_tok_s": 1147.9,+ "found": true,+ "answer": "falcon-174<|im_end|>"+ },+ {+ "tokens": 27743,+ "prompt_ms": 24255.2,+ "pp_tok_s": 1143.8,+ "found": true,+ "answer": "willow-474<|im_end|>"+ }+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 6104.9,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 393.4,+ "answer": "lantern-417<|im_end|>",+ "ok": true+ },+ "decode": [+ {+ "name": "story",+ "tok_s": 51.9,+ "reps": [+ 51.9+ ],+ "hit_rate": 1.0,+ "text": "The wind didn\u2019t just blow; it screamed. It tore through the iron gallery of the Blackwood Point Lighthouse, rattling the glass panes like a prisoner shaking its bars.\n\nElias Thorne was seventy years old, and he had been the keeper for forty of them. He knew every creak in the spiral staircase, every draft that slipped under the door, and every shift in the weather that the barometer couldn\u2019t quite predict. He knew that when the fog rolled in thick enough to swallow the horizon, the world ceased to exist. There was only the light, the stone, and him.\n\nIt was November, the month of storms. The sea was a churning cauldron of grey and white, throwing itself against the granite base with a violence that made the floorboards tremble. Elias stood by the lantern room, his hands wrapped around a mug of coffee that had gone cold hours ago. He wasn\u2019t drinking it. He was holding it for warmth."+ },+ {+ "name": "code",+ "tok_s": 69.7,+ "reps": [+ 69.7+ ],+ "hit_rate": 1.0,+ "text": "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"\n Parse a CSV file into a list of dictionaries.\n \n Each dictionary represents a row, with keys being the header values\n and values being the corresponding cell values.\n \n Args:\n file_path: Path to the CSV file.\n \n Returns:\n A list of dictionaries, one per row (excluding the header).\n \"\"\"\n result = []\n with open(file_path, 'r', newline='', encoding='utf-8') as f:\n reader = csv.DictReader(f)\n for row in reader:\n result.append(dict(row))\n return result\n\n\n# Tests\ndef test_parse_csv_basic():\n \"\"\"Test basic CSV parsing with simple data.\"\"\"\n import tempfile\n import os\n \n # Create a temporary CSV"+ }+ ],+ "stage_timing": [+ "strata serve: stage 2: 165 windows; per window: wait for the GPU 13.452 ms, pool + plan 0.162 ms, host staging 0.000 ms, commit 0.328 ms",+ "strata serve: stage 0: 234 windows; per window: wait for the GPU 6.235 ms, pool + plan 0.145 ms, host staging 0.704 ms, commit 0.214 ms",+ "strata serve: stage 1: 234 windows; per window: wait for the GPU 15.592 ms, pool + plan 0.246 ms, host staging 0.000 ms, commit 0.657 ms",+ "strata serve: stage 2: 234 windows; per window: wait for the GPU 13.916 ms, pool + plan 0.177 ms, host staging 0.000 ms, commit 0.335 ms"+ ],+ "engine_lines": [+ "strata generate: layer split across 3 GPUs: CUDA0, then CUDA1,2 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session; 18.62 GiB free",+ "strata generate: layer split: CUDA2 PCIe probe 3.2 GB/s -> pcie_frac 0.00",+ "strata generate: layer split: CUDA2 holds its weights, session and head; 16.18 GiB free",+ "strata generate: layer split auto: K=12,33 - the caches hold 12288 of 12288 profiled pairs (fullest device 66%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3072 slots",+ "strata generate: expert cache 3072 slots, 5.41 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 12-32, expert cache 5376 slots (10.22 GiB), 5376 of its 5376 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA2 runs layers 33-47, expert cache 3840 slots (7.79 GiB), 3840 of its 3840 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-11",+ "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",+ "strata serve: layer split: layers 0-11 (CUDA0), 12-32 (CUDA1), 33-47 (CUDA2), one hand-off per window",+ "strata generate: layer split across 3 GPUs: CUDA0, then CUDA1,2 (split auto)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session; 18.62 GiB free",+ "strata generate: layer split: CUDA2 PCIe probe 3.2 GB/s -> pcie_frac 0.00",+ "strata generate: layer split: CUDA2 holds its weights, session and head; 16.18 GiB free",+ "strata generate: layer split auto: K=12,33 - the caches hold 12288 of 12288 profiled pairs (fullest device 66%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3072 slots",+ "strata generate: expert cache 3072 slots, 5.41 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 12-32, expert cache 5376 slots (10.22 GiB), 5376 of its 5376 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA2 runs layers 33-47, expert cache 3840 slots (7.79 GiB), 3840 of its 3840 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-11"+ ]+}\ No newline at end of filediff --git a/bench/results/2026-09-29-layer-split/data/summary-all.json b/bench/results/2026-09-29-layer-split/data/summary-all.jsonnew file mode 100644index 000000000..75bcd84e4--- /dev/null+++ b/bench/results/2026-09-29-layer-split/data/summary-all.json@@ -0,0 +1,1083 @@+{+ "regression": {+ "release_vs_dev_identical": [+ 10,+ 10+ ],+ "speed_release": {+ "greedy story 200": 58.4,+ "greedy code 200": 80.6,+ "greedy sanity": 75.2,+ "greedy, no penalty (sanity)": 74.2,+ "greedy presence=100 last_n=64": 48.5,+ "greedy presence=100 last_n=64 story": 46.4,+ "sampled presence=100 last_n=64 seed 3": 43.3,+ "sampled presence=100 last_n=64 seed 11": 49.8,+ "greedy frequency=100 last_n=16": 62.5,+ "greedy presence=100 last_n=4096 (8-row windows)": 52.6+ },+ "speed_dev": {+ "greedy story 200": 59.2,+ "greedy code 200": 81.6,+ "greedy sanity": 74.9,+ "greedy, no penalty (sanity)": 74.3,+ "greedy presence=100 last_n=64": 49.6,+ "greedy presence=100 last_n=64 story": 44.9,+ "sampled presence=100 last_n=64 seed 3": 44.1,+ "sampled presence=100 last_n=64 seed 11": 49.5,+ "greedy frequency=100 last_n=16": 65.2,+ "greedy presence=100 last_n=4096 (8-row windows)": 52.5+ },+ "dev_vs_same_gpu_split_identical": [+ 10,+ 10+ ]+ },+ "correctness": {+ "reg-rel": {+ "cases": 10,+ "repeats": 0,+ "sanity_144": true,+ "tok_s": {+ "greedy story 200": 58.4,+ "greedy code 200": 80.6,+ "greedy sanity": 75.2,+ "greedy, no penalty (sanity)": 74.2,+ "greedy presence=100 last_n=64": 48.5,+ "greedy presence=100 last_n=64 story": 46.4,+ "sampled presence=100 last_n=64 seed 3": 43.3,+ "sampled presence=100 last_n=64 seed 11": 49.8,+ "greedy frequency=100 last_n=16": 62.5,+ "greedy presence=100 last_n=4096 (8-row windows)": 52.6+ }+ },+ "reg-dev": {+ "cases": 10,+ "repeats": 0,+ "sanity_144": true,+ "tok_s": {+ "greedy story 200": 59.2,+ "greedy code 200": 81.6,+ "greedy sanity": 74.9,+ "greedy, no penalty (sanity)": 74.3,+ "greedy presence=100 last_n=64": 49.6,+ "greedy presence=100 last_n=64 story": 44.9,+ "sampled presence=100 last_n=64 seed 3": 44.1,+ "sampled presence=100 last_n=64 seed 11": 49.5,+ "greedy frequency=100 last_n=16": 65.2,+ "greedy presence=100 last_n=4096 (8-row windows)": 52.5+ }+ },+ "reg-same24": {+ "cases": 10,+ "repeats": 0,+ "sanity_144": true,+ "tok_s": {+ "greedy story 200": 58.4,+ "greedy code 200": 80.5,+ "greedy sanity": 74.5,+ "greedy, no penalty (sanity)": 76.8,+ "greedy presence=100 last_n=64": 49.6,+ "greedy presence=100 last_n=64 story": 46.7,+ "sampled presence=100 last_n=64 seed 3": 44.3,+ "sampled presence=100 last_n=64 seed 11": 50.0,+ "greedy frequency=100 last_n=16": 62.0,+ "greedy presence=100 last_n=4096 (8-row windows)": 52.1+ }+ },+ "nr-x2-auto": {+ "cases": 10,+ "repeats": 0,+ "sanity_144": true,+ "tok_s": {+ "greedy story 200": 74.0,+ "greedy code 200": 103.4,+ "greedy sanity": 91.1,+ "greedy, no penalty (sanity)": 70.7,+ "greedy presence=100 last_n=64": 65.4,+ "greedy presence=100 last_n=64 story": 57.1,+ "sampled presence=100 last_n=64 seed 3": 52.9,+ "sampled presence=100 last_n=64 seed 11": 51.7,+ "greedy frequency=100 last_n=16": 73.5,+ "greedy presence=100 last_n=4096 (8-row windows)": 63.4+ }+ }+ },+ "runs": {+ "dev-3090": {+ "gpus": "2",+ "extra": "",+ "pp": [+ [+ 2726,+ 796.0,+ true+ ],+ [+ 8379,+ 972.3,+ true+ ],+ [+ 16066,+ 1253.2,+ true+ ],+ [+ 27743,+ 1211.4,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 5657.8,+ "turn2_tokens": 6660,+ "reused": 6631,+ "turn2_ms": 238.7,+ "ok": true+ },+ "decode": [+ [+ "story",+ 71.7,+ 0.927+ ],+ [+ "code",+ 92.9,+ 0.864+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict\n\n\ndef parse_csv(filepath: str) -> List[Dict[str, str]]:\n \"\"\"\n P",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: PCIe probe: 6.4 GB/s host->device -> pcie_frac 0.14 (default 0.55)",+ "strata generate: expert cache auto: 17.31 GiB free, 700 MiB reserved -> 6704 slots",+ "strata generate: expert cache 8730 slots, 16.62 GiB of VRAM; policy is",+ "strata serve: prompt chunk auto: 8192 tokens"+ ]+ },+ "dev-5080": {+ "gpus": "0",+ "extra": "",+ "pp": [+ [+ 2726,+ 1279.9,+ true+ ],+ [+ 8379,+ 1656.8,+ true+ ],+ [+ 16066,+ 2017.2,+ true+ ],+ [+ 27743,+ 1974.1,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3366.4,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 197.3,+ "ok": true+ },+ "decode": [+ [+ "story",+ 83.1,+ 0.842+ ],+ [+ "code",+ 88.0,+ 0.701+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4293 slots, 8.17 GiB of VRAM; policy is",+ "strata serve: prompt chunk auto: 8192 tokens"+ ]+ },+ "ks-k18": {+ "gpus": "0,2",+ "extra": "--layer-split 18",+ "pp": [+ [+ 16066,+ 1547.2,+ true+ ],+ [+ 27743,+ 1694.5,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4308.0,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 239.8,+ "ok": true+ },+ "decode": [+ [+ "story",+ 77.2,+ 0.999+ ],+ [+ "code",+ 103.8,+ 0.998+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 18)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4608 slots, 8.24 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 18-47, expert cache 7152 slots (14.14 GiB), 7152 of its 7680 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-17",+ "strata serve: layer split: layers 0-17 (CUDA0), 18-47 (CUDA1), one hand-off per window"+ ]+ },+ "ks-k19": {+ "gpus": "0,2",+ "extra": "--layer-split 19",+ "pp": [+ [+ 16066,+ 1626.9,+ true+ ],+ [+ 27743,+ 1790.1,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4085.5,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 238.7,+ "ok": true+ },+ "decode": [+ [+ "story",+ 79.3,+ 0.998+ ],+ [+ "code",+ 107.4,+ 0.999+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 19)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4606 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 19-47, expert cache 7160 slots (14.14 GiB), 7160 of its 7424 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-18",+ "strata serve: layer split: layers 0-18 (CUDA0), 19-47 (CUDA1), one hand-off per window"+ ]+ },+ "ks-k20": {+ "gpus": "0,2",+ "extra": "--layer-split 20",+ "pp": [+ [+ 16066,+ 1776.4,+ true+ ],+ [+ 27743,+ 1991.8,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3743.5,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 236.8,+ "ok": true+ },+ "decode": [+ [+ "story",+ 76.4,+ 0.998+ ],+ [+ "code",+ 105.9,+ 0.998+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed. It clawed at the granite base of the tower, trying to pry it from the bedrock, a",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 20)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4603 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 20-47, expert cache 7142 slots (14.14 GiB), 7142 of its 7168 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-19",+ "strata serve: layer split: layers 0-19 (CUDA0), 20-47 (CUDA1), one hand-off per window"+ ]+ },+ "ks-k21": {+ "gpus": "0,2",+ "extra": "--layer-split 21",+ "pp": [+ [+ 16066,+ 1809.1,+ true+ ],+ [+ 27743,+ 2031.8,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3680.6,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 235.4,+ "ok": true+ },+ "decode": [+ [+ "story",+ 77.4,+ 0.997+ ],+ [+ "code",+ 106.7,+ 0.998+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the rough fabric scratching agai",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 21)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4627 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 21-47, expert cache 6912 slots (13.78 GiB), 6912 of its 6912 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-20",+ "strata serve: layer split: layers 0-20 (CUDA0), 21-47 (CUDA1), one hand-off per window"+ ]+ },+ "ks-k22": {+ "gpus": "0,2",+ "extra": "--layer-split 22",+ "pp": [+ [+ 16066,+ 1840.1,+ true+ ],+ [+ 27743,+ 2074.2,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3611.4,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 234.8,+ "ok": true+ },+ "decode": [+ [+ "story",+ 80.2,+ 0.998+ ],+ [+ "code",+ 106.4,+ 0.997+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with ",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 22)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4640 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 22-47, expert cache 6656 slots (13.34 GiB), 6656 of its 6656 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-21",+ "strata serve: layer split: layers 0-21 (CUDA0), 22-47 (CUDA1), one hand-off per window"+ ]+ },+ "ks-k23": {+ "gpus": "0,2",+ "extra": "--layer-split 23",+ "pp": [+ [+ 16066,+ 1837.7,+ true+ ],+ [+ 27743,+ 2120.3,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3566.1,+ "turn2_tokens": 6660,+ "reused": 6631,+ "turn2_ms": 238.0,+ "ok": true+ },+ "decode": [+ [+ "story",+ 81.0,+ 0.996+ ],+ [+ "code",+ 108.4,+ 0.996+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 23)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4609 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 23-47, expert cache 6400 slots (12.82 GiB), 6400 of its 6400 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-22",+ "strata serve: layer split: layers 0-22 (CUDA0), 23-47 (CUDA1), one hand-off per window"+ ]+ },+ "ks-k24": {+ "gpus": "0,2",+ "extra": "--layer-split 24",+ "pp": [+ [+ 16066,+ 1978.0,+ true+ ],+ [+ 27743,+ 2258.1,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3407.0,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 234.0,+ "ok": true+ },+ "decode": [+ [+ "story",+ 83.5,+ 0.995+ ],+ [+ "code",+ 109.5,+ 0.995+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the rough fabric scratching agai",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 24)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4603 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 24-47, expert cache 6144 slots (12.35 GiB), 6144 of its 6144 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-23",+ "strata serve: layer split: layers 0-23 (CUDA0), 24-47 (CUDA1), one hand-off per window"+ ]+ },+ "ks-single": {+ "gpus": "0",+ "extra": "",+ "pp": [+ [+ 16066,+ 1725.6,+ true+ ],+ [+ 27743,+ 1969.6,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3388.7,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 200.7,+ "ok": true+ },+ "decode": [+ [+ "story",+ 86.7,+ 0.922+ ],+ [+ "code",+ 105.2,+ 0.911+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with ",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4293 slots, 8.17 GiB of VRAM; policy is",+ "strata serve: prompt chunk auto: 8192 tokens"+ ]+ },+ "rel-5080": {+ "gpus": "0",+ "extra": "",+ "pp": [+ [+ 2726,+ 1278.1,+ true+ ],+ [+ 8379,+ 1672.8,+ true+ ],+ [+ 16066,+ 2045.2,+ true+ ],+ [+ 27743,+ 2005.4,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3298.2,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 197.9,+ "ok": true+ },+ "decode": [+ [+ "story",+ 83.2,+ 0.842+ ],+ [+ "code",+ 88.2,+ 0.701+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4293 slots, 8.17 GiB of VRAM; policy is",+ "strata serve: prompt chunk auto: 8192 tokens"+ ]+ },+ "t75-5080": {+ "gpus": "0",+ "extra": "",+ "pp": [+ [+ 2726,+ 1262.9,+ true+ ],+ [+ 8379,+ 1658.6,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3385.2,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 212.5,+ "ok": true+ },+ "decode": [+ [+ "story",+ 86.7,+ 0.834+ ],+ [+ "code",+ 90.1,+ 0.72+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>"+ ],+ "engine": [+ "strata generate: PCIe probe: 57.8 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: expert cache auto: 9.15 GiB free, 700 MiB reserved -> 3415 slots",+ "strata generate: expert cache 4294 slots, 8.18 GiB of VRAM; policy is",+ "strata serve: prompt chunk auto: 8192 tokens"+ ]+ },+ "x2-auto-c1024": {+ "gpus": "0,2",+ "extra": "--layer-split auto --prefill 1024",+ "pp": [+ [+ 2726,+ 1029.2,+ true+ ],+ [+ 8379,+ 1510.5,+ true+ ],+ [+ 16066,+ 1587.0,+ true+ ],+ [+ 27743,+ 1571.7,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4379.9,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 235.5,+ "ok": true+ },+ "decode": [+ [+ "story",+ 82.7,+ 1.0+ ],+ [+ "code",+ 111.1,+ 1.0+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed. It tore through the iron gallery of the Blackwood Point Lighthouse, rattling the",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv(file_path: str) -> List[Dict[str, Any]]:\n \"\"\"",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: PCIe probe: 57.8 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: layer split auto: K=19 - the caches hold 12288 of 12288 profiled pairs (fullest device 99%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3613 slots",+ "strata generate: expert cache 4864 slots, 8.76 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 19-47, expert cache 7424 slots (14.66 GiB), 7424 of its 7424 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-18",+ "strata serve: layer split: layers 0-18 (CUDA0), 19-47 (CUDA1), one hand-off per window"+ ]+ },+ "x2-auto": {+ "gpus": "0,2",+ "extra": "--layer-split auto",+ "pp": [+ [+ 2726,+ 1005.3,+ true+ ],+ [+ 8379,+ 1672.4,+ true+ ],+ [+ 16066,+ 1786.1,+ true+ ],+ [+ 27743,+ 1790.2,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4050.3,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 249.7,+ "ok": true+ },+ "decode": [+ [+ "story",+ 83.0,+ 0.992+ ],+ [+ "code",+ 101.8,+ 0.992+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias had lived in the tower for thirty years, and he knew the difference betwe",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: layer split auto: K=19 - the caches hold 11767 of 12288 profiled pairs (fullest device 100%)",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4606 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 19-47, expert cache 7160 slots (14.14 GiB), 7160 of its 7424 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-18",+ "strata serve: layer split: layers 0-18 (CUDA0), 19-47 (CUDA1), one hand-off per window"+ ]+ },+ "x2-k16": {+ "gpus": "0,2",+ "extra": "--layer-split 16",+ "pp": [+ [+ 2726,+ 912.6,+ true+ ],+ [+ 8379,+ 1418.1,+ true+ ],+ [+ 16066,+ 1507.7,+ true+ ],+ [+ 27743,+ 1500.9,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4790.8,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 243.3,+ "ok": true+ },+ "decode": [+ [+ "story",+ 71.4,+ 0.981+ ],+ [+ "code",+ 86.4,+ 0.98+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed. It clawed at the granite base of the tower, trying to pry the lighthouse from it",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 16)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4096 slots, 7.17 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 16-47, expert cache 7124 slots (14.14 GiB), 7124 of its 8192 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-15",+ "strata serve: layer split: layers 0-15 (CUDA0), 16-47 (CUDA1), one hand-off per window"+ ]+ },+ "x2-k22": {+ "gpus": "0,2",+ "extra": "--layer-split 22",+ "pp": [+ [+ 2726,+ 1074.2,+ true+ ],+ [+ 8379,+ 1887.2,+ true+ ],+ [+ 16066,+ 2040.8,+ true+ ],+ [+ 27743,+ 2069.6,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 3610.4,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 236.0,+ "ok": true+ },+ "decode": [+ [+ "story",+ 78.1,+ 0.985+ ],+ [+ "code",+ 104.3,+ 0.984+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his wool coat tighter around his shoulders, the fabric stiff with ",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 22)",+ "strata generate: PCIe probe: 57.7 GB/s host->device -> pcie_frac 0.55 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free",+ "strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots",+ "strata generate: expert cache 4640 slots, 8.29 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 22-47, expert cache 6656 slots (13.34 GiB), 6656 of its 6656 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-21",+ "strata serve: layer split: layers 0-21 (CUDA0), 22-47 (CUDA1), one hand-off per window"+ ]+ },+ "x2r-auto": {+ "gpus": "2,0",+ "extra": "--layer-split auto",+ "pp": [+ [+ 2726,+ 972.1,+ true+ ],+ [+ 8379,+ 1485.2,+ true+ ],+ [+ 16066,+ 1509.5,+ true+ ],+ [+ 27743,+ 1510.8,+ true+ ]+ ],+ "chat": {+ "turn1_tokens": 6584,+ "turn1_ms": 4517.2,+ "turn2_tokens": 6660,+ "reused": 6632,+ "turn2_ms": 245.6,+ "ok": true+ },+ "decode": [+ [+ "story",+ 78.9,+ 0.991+ ],+ [+ "code",+ 93.4,+ 0.99+ ]+ ],+ "texts": [+ "The wind didn\u2019t just blow; it screamed.\n\nElias pulled his woolen collar up to his chin, the fabric stiff with salt and i",+ "```python\nimport csv\nfrom typing import List, Dict, Any\n\n\ndef parse_csv_to_dicts(filepath: str) -> List[Dict[str, Any]]:",+ "meadow-254<|im_end|>",+ "juniper-766<|im_end|>",+ "falcon-174<|im_end|>",+ "willow-474<|im_end|>"+ ],+ "engine": [+ "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split auto)",+ "strata generate: PCIe probe: 6.4 GB/s host->device -> pcie_frac 0.14 (default 0.55)",+ "strata generate: layer split: CUDA1 PCIe probe 57.7 GB/s -> pcie_frac 0.55",+ "strata generate: layer split: CUDA1 holds its weights, session and head; 9.98 GiB free",+ "strata generate: layer split auto: K=36 - the caches hold 11775 of 12288 profiled pairs (fullest device 100%)",+ "strata generate: expert cache auto: 18.62 GiB free, 700 MiB reserved -> 6634 slots",+ "strata generate: expert cache 8828 slots, 16.45 GiB of VRAM; policy is",+ "strata generate: layer split: CUDA1 runs layers 36-47, expert cache 2945 slots (5.99 GiB), 2945 of its 3072 profiled pairs; slot 0 verified",+ "strata generate: layer split: CUDA0 runs layers 0-35",+ "strata serve: layer split: layers 0-35 (CUDA0), 36-47 (CUDA1), one hand-off per window"+ ]+ }+ }+}\ No newline at end of filediff --git a/docs/MULTI_GPU.md b/docs/MULTI_GPU.mdindex b7d8bd311..0770fb90c 100644--- a/docs/MULTI_GPU.md+++ b/docs/MULTI_GPU.md@@ -64,4 +64,22 @@ into the card that owns the layer.## Measured-See `bench/results/2026-09-29-layer-split/` for the full runs.+The Coder on an RTX 5080 + RTX 3090 (Ryzen 9 9950X3D), 32K context; details in+`bench/results/2026-09-29-layer-split/`:++| | Prompt 16K / 28K tok/s | Decode story / code tok/s |+|---|---|---|+| 5080 alone | 1,726-2,017 / 1,970 | 83-87 / 88-105 |+| 5080 + 3090, best split (K=26) | 2,039 / 2,357 | 84 / 110 |+| 5080 + 3090, auto (K=22) | 2,037 / 2,073 | 80 / 109 |++- **Prompts gain the most** (+18-20%): each card reads its own layers of the chunk while the other reads the next.+- **Decode is on par with the faster card alone**, and ahead on code. Once both caches hold nearly every routed+ expert, the per-layer GPU time decides.+- **Correctness:** one GPU is byte-identical to 0.1.20, and the hand-off itself is bit-exact.++**Which cards and in what order:**+- Put the fastest card first; auto gives it as many layers as its cache allows.+- Leave out a much slower card when two already hold the model. An RTX 2080 Ti as a third card made the 5080 ++ 3090 pair slower (68 / 90 tok/s decode): every extra card costs its own round per window.+- More cards pay off when the model's routed experts do not fit the faster ones.