okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
6f1a24def
main
1{ 2"label" :"ks-k24" , 3"extra" : [ 4"--layer-split" , 5"24" 6 ], 7"gpus" :"0,2" , 8"needles" : [ 9 { 10"tokens" :16066 , 11"prompt_ms" :8122.5 , 12"pp_tok_s" :1978.0 , 13"found" :true , 14"answer" :"meadow-254<|im_end|>" 15 }, 16 { 17"tokens" :27743 , 18"prompt_ms" :12285.8 , 19"pp_tok_s" :2258.1 , 20"found" :true , 21"answer" :"juniper-766<|im_end|>" 22 } 23 ], 24"chat" : { 25"turn1_tokens" :6584 , 26"turn1_ms" :3407.0 , 27"turn2_tokens" :6660 , 28"reused" :6632 , 29"turn2_ms" :234.0 , 30"answer" :"lantern-417<|im_end|>" , 31"ok" :true 32 }, 33"decode" : [ 34 { 35"name" :"story" , 36"tok_s" :83.5 , 37"reps" : [ 3884.9 , 3983.3 , 4082.3 41 ], 42"hit_rate" :0.9949381327334084 , 43"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" 44 }, 45 { 46"name" :"code" , 47"tok_s" :109.5 , 48"reps" : [ 49104.9 , 50111.0 , 51112.6 52 ], 53"hit_rate" :0.9953796671318199 , 54"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" 55 } 56 ], 57"stage_timing" : [ 58"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" , 59"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" , 60"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" , 61"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" 62 ], 63"engine_lines" : [ 64"strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 24)" , 65"strata generate: layer split: CUDA1 PCIe probe 6.4 GB/s -> pcie_frac 0.14" , 66"strata generate: layer split: CUDA1 holds its weights, session and head; 18.13 GiB free" , 67"strata generate: expert cache auto: 10.46 GiB free, 700 MiB reserved -> 3345 slots" , 68"strata generate: expert cache 4603 slots, 8.29 GiB of VRAM; policy is" , 69"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" , 70"strata generate: layer split: CUDA0 runs layers 0-23" , 71"strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)" , 72"strata serve: layer split: layers 0-23 (CUDA0), 24-47 (CUDA1), one hand-off per window" , 73"strata serve: decode expert cache hit rate: 95.9% (5916 hits / 6171 lookups)" , 74"strata serve: decode expert cache hit rate: 97.4% (3717 hits / 3815 lookups)" , 75"strata serve: decode expert cache hit rate: 98.4% (3761 hits / 3823 lookups)" , 76"strata serve: decode expert cache hit rate: 98.1% (27138 hits / 27664 lookups)" , 77"strata serve: decode expert cache hit rate: 97.8% (3742 hits / 3826 lookups)" , 78"strata serve: decode expert cache hit rate: 97.9% (126114 hits / 128875 lookups)" , 79"strata serve: decode expert cache hit rate: 99.2% (133626 hits / 134658 lookups)" , 80"strata serve: decode expert cache hit rate: 99.5% (132675 hits / 133350 lookups)" , 81"strata serve: decode expert cache hit rate: 96.8% (113593 hits / 117399 lookups)" , 82"strata serve: decode expert cache hit rate: 99.5% (118372 hits / 118949 lookups)" , 83"strata serve: decode expert cache hit rate: 99.5% (116981 hits / 117524 lookups)" 84 ] 85}