okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Layer split: measured results (bench/results/2026-09-29-layer-split) and the recommendations in docs/MULTI_GPU.md6f1a24def

main
4.7 KiB85 linesraw
1{
2 "label": "ks-k26",
3 "extra": [
4  "--layer-split",
5  "26"
6 ],
7 "gpus": "0,2",
8 "needles": [
9  {
10   "tokens": 16066,
11   "prompt_ms": 7880.9,
12   "pp_tok_s": 2038.6,
13   "found": true,
14   "answer": "meadow-254<|im_end|>"
15  },
16  {
17   "tokens": 27743,
18   "prompt_ms": 11771.9,
19   "pp_tok_s": 2356.7,
20   "found": true,
21   "answer": "juniper-766<|im_end|>"
22  }
23 ],
24 "chat": {
25  "turn1_tokens": 6584,
26  "turn1_ms": 3323.9,
27  "turn2_tokens": 6660,
28  "reused": 6632,
29  "turn2_ms": 231.5,
30  "answer": "lantern-417<|im_end|>",
31  "ok": true
32 },
33 "decode": [
34  {
35   "name": "story",
36   "tok_s": 83.8,
37   "reps": [
38    85.9,
39    83.1,
40    82.4
41   ],
42   "hit_rate": 0.9933966961830739,
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 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"
44  },
45  {
46   "name": "code",
47   "tok_s": 109.7,
48   "reps": [
49    104.4,
50    112.7,
51    111.9
52   ],
53   "hit_rate": 0.9938670271352759,
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 8.376 ms, pool + plan 1.030 ms, host staging 0.566 ms, commit 0.273 ms",
59  "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",
60  "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",
61  "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"
62 ],
63 "engine_lines": [
64  "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 26)",
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 4568 slots, 8.29 GiB of VRAM; policy is",
69  "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",
70  "strata generate: layer split: CUDA0 runs layers 0-25",
71  "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",
72  "strata serve: layer split: layers 0-25 (CUDA0), 26-47 (CUDA1), one hand-off per window",
73  "strata serve: decode expert cache hit rate: 92.8% (5259 hits / 5665 lookups)",
74  "strata serve: decode expert cache hit rate: 95.2% (4056 hits / 4259 lookups)",
75  "strata serve: decode expert cache hit rate: 97.2% (4164 hits / 4285 lookups)",
76  "strata serve: decode expert cache hit rate: 97.1% (27690 hits / 28510 lookups)",
77  "strata serve: decode expert cache hit rate: 97.5% (4184 hits / 4293 lookups)",
78  "strata serve: decode expert cache hit rate: 96.9% (121839 hits / 125724 lookups)",
79  "strata serve: decode expert cache hit rate: 98.9% (132165 hits / 133648 lookups)",
80  "strata serve: decode expert cache hit rate: 99.3% (137652 hits / 138567 lookups)",
81  "strata serve: decode expert cache hit rate: 95.3% (111307 hits / 116822 lookups)",
82  "strata serve: decode expert cache hit rate: 99.3% (118436 hits / 119329 lookups)",
83  "strata serve: decode expert cache hit rate: 99.4% (119109 hits / 119844 lookups)"
84 ]
85}