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.8 KiB85 linesraw
1{
2 "label": "ks-k21",
3 "extra": [
4  "--layer-split",
5  "21"
6 ],
7 "gpus": "0,2",
8 "needles": [
9  {
10   "tokens": 16066,
11   "prompt_ms": 8880.5,
12   "pp_tok_s": 1809.1,
13   "found": true,
14   "answer": "meadow-254<|im_end|>"
15  },
16  {
17   "tokens": 27743,
18   "prompt_ms": 13654.6,
19   "pp_tok_s": 2031.8,
20   "found": true,
21   "answer": "juniper-766<|im_end|>"
22  }
23 ],
24 "chat": {
25  "turn1_tokens": 6584,
26  "turn1_ms": 3680.6,
27  "turn2_tokens": 6660,
28  "reused": 6632,
29  "turn2_ms": 235.4,
30  "answer": "lantern-417<|im_end|>",
31  "ok": true
32 },
33 "decode": [
34  {
35   "name": "story",
36   "tok_s": 77.4,
37   "reps": [
38    80.2,
39    80.8,
40    71.2
41   ],
42   "hit_rate": 0.9973622550922132,
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 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"
44  },
45  {
46   "name": "code",
47   "tok_s": 106.7,
48   "reps": [
49    100.6,
50    110.5,
51    109.0
52   ],
53   "hit_rate": 0.998218711927068,
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: 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",
59  "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",
60  "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",
61  "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"
62 ],
63 "engine_lines": [
64  "strata generate: layer split across 2 GPUs: CUDA0, then CUDA1 (split 21)",
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 4627 slots, 8.29 GiB of VRAM; policy is",
69  "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",
70  "strata generate: layer split: CUDA0 runs layers 0-20",
71  "strata serve: the prompt path allocates its own buffers (too few cache slots to borrow)",
72  "strata serve: layer split: layers 0-20 (CUDA0), 21-47 (CUDA1), one hand-off per window",
73  "strata serve: decode expert cache hit rate: 98.7% (5672 hits / 5748 lookups)",
74  "strata serve: decode expert cache hit rate: 99.4% (4287 hits / 4314 lookups)",
75  "strata serve: decode expert cache hit rate: 99.4% (4287 hits / 4315 lookups)",
76  "strata serve: decode expert cache hit rate: 99.3% (29024 hits / 29229 lookups)",
77  "strata serve: decode expert cache hit rate: 99.1% (4278 hits / 4316 lookups)",
78  "strata serve: decode expert cache hit rate: 98.8% (131499 hits / 133085 lookups)",
79  "strata serve: decode expert cache hit rate: 99.6% (130974 hits / 131451 lookups)",
80  "strata serve: decode expert cache hit rate: 99.7% (138767 hits / 139134 lookups)",
81  "strata serve: decode expert cache hit rate: 98.8% (121454 hits / 122932 lookups)",
82  "strata serve: decode expert cache hit rate: 99.8% (116809 hits / 117079 lookups)",
83  "strata serve: decode expert cache hit rate: 99.8% (118803 hits / 119015 lookups)"
84 ]
85}