okami.mom/strata

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

homeofebench: community results, RTX 2080 Ti 11 GB + Threadripper 3960X, IQ3_S at 262K with KV streaming (#469)707fd49eb

main
11.6 KiB195 linesraw
1{
2 "label": "fresh-250000-run1",
3 "attempt": 1,
4 "epoch_start": 1790924529.1005576,
5 "epoch_end": 1790925078.435074,
6 "kind": "fresh",
7 "target": 250000,
8 "run": 1,
9 "expected_prompt_tokens": 250000,
10 "needle": "glacier-falcon-113",
11 "needle_depth_pct": 40,
12 "max_tokens": 400,
13 "request_sha256": "1c66d8a127630c46a0ecdd924df9e7fde9b783a9d631c90daaacf580986589b6",
14 "client_ttft_s": 536.7999174026772,
15 "client_total_s": 549.3324515507556,
16 "finish_reason": "length",
17 "usage": {
18  "prompt_tokens": 250000,
19  "completion_tokens": 400,
20  "total_tokens": 250400,
21  "prompt_tokens_details": {
22   "cached_tokens": 0
23  }
24 },
25 "timings": {
26  "cache_n": 0,
27  "prompt_n": 250000,
28  "prompt_ms": 535797.7,
29  "prompt_per_token_ms": 2.143,
30  "prompt_per_second": 466.6,
31  "predicted_n": 400,
32  "predicted_ms": 12571.4,
33  "predicted_per_token_ms": 31.428,
34  "predicted_per_second": 31.8,
35  "draft_n": 365,
36  "draft_n_accepted": 195
37 },
38 "keepalives": 83,
39 "text": "The provided repository material outlines the technical architecture, performance benchmarks, and operational guidelines for Strata, a high-performance inference engine designed to run large language models, specifically the Qwen3.8-Flash-Next family, on consumer-grade hardware. The system employs a sophisticated hybrid memory strategy that balances GPU VRAM, system RAM, and SSD storage to accommodate models with massive expert counts that exceed the capacity of standard graphics cards. By leveraging a Mixture of Experts architecture, Strata dynamically manages which experts reside in VRAM, which are computed by the CPU using optimized AVX-512 or AVX2 kernels, and which are streamed from disk, allowing models with tens of gigabytes of weights to run efficiently on machines with as little as 12 GB of VRAM and 32 to 64 GB of RAM.\n\nThe engine supports multiple backend architectures, with a primary focus on NVIDIA CUDA and an experimental AMD HIP backend. The AMD support is detailed in specific documentation, highlighting compatibility with RDNA2, RDNA3, and RDNA4 architectures, including cards like the RX 7900 XT and RX 9070 series. This backend utilizes wave32 execution and specific integer dot instructions to accelerate quantized kernels, though it notes that certain features like vision encoding and calibration are currently limited or unavailable compared to the NVIDIA path. The codebase includes extensive validation tests for these backends, ensuring that numerical parity is maintained across different hardware platforms, although bit-identical results are not guaranteed due to differences in floating-point handling and kernel implementations.\n\nA central component of the engine’s performance is its handling of the \"expert cache\" and memory hierarchy. The system uses a pinned host memory arena to store the full set of expert weights, allowing the CPU to compute missing experts in parallel with GPU operations. This overlap is critical for throughput, as demonstrated by benchmarks showing significant speedups when the CPU and GPU paths operate concurrently rather than serially.",
40 "status_before": {
41  "busy": false,
42  "queued": 0,
43  "phase": "answering",
44  "prompt_tokens": 128463,
45  "generated": 400,
46  "max_tokens": 400
47 },
48 "totals_before": 13,
49 "totals_after": 14,
50 "foreign_overlap": false,
51 "engine": {
52  "prompt_tokens": 250000,
53  "reused": 0,
54  "read": 250000,
55  "prompt_ms_log": 535798,
56  "prompt_tok_s_log": 466.6,
57  "generated": 400,
58  "decode_ms_log": 12571,
59  "decode_tok_s_log": 31.8,
60  "drafts_accepted": 195,
61  "drafts_proposed": 365,
62  "checkpoints": 6,
63  "cancelled": false,
64  "line": "strata serve: prompt 250000 tokens = 0 reused + 250000 read in 535798 ms (466.6 tok/s), 400 generated in 12571 ms (31.8 tok/s), drafts accepted 195 of 365, 6 checkpoints",
65  "hit_rate_pct": 54.9,
66  "hit_line": "strata serve: decode expert cache hit rate: 54.9% (135616 hits / 247239 lookups)",
67  "kv_vram_pct": 94.25,
68  "kv_block_reads": 3561648,
69  "kv_ram_mib": 824.9,
70  "kv_line": "strata serve: KV streaming: 94.25% of 3561648 block reads hit VRAM, 824.9 MiB read from RAM",
71  "suffix_windows": 5,
72  "suffix_accepted": 6,
73  "suffix_proposed": 8
74 },
75 "metrics_record": {
76  "projection": null,
77  "time": 1790924529.9883664,
78  "duration_s": 548.4,
79  "finish": "length",
80  "prompt_tokens": 250000,
81  "reused": 0,
82  "output_tokens": 400,
83  "engine_generated": 400,
84  "prompt_ms": 535797.7,
85  "decode_ms": 12571.4,
86  "decode_tok_s": 31.8,
87  "hit_rate": 0.549,
88  "ram_blobs": 0,
89  "file_blobs": 0,
90  "file_mb": 0.0
91 },
92 "engine_log": [
93  "strata serve: prompt 250000 tokens = 0 reused + 250000 read in 535798 ms (466.6 tok/s), 400 generated in 12571 ms (31.8 tok/s), drafts accepted 195 of 365, 6 checkpoints",
94  "strata serve: decode expert cache hit rate: 54.9% (135616 hits / 247239 lookups)",
95  "strata serve: KV streaming: 94.25% of 3561648 block reads hit VRAM, 824.9 MiB read from RAM",
96  "strata serve: suffix drafts: 5 windows, 6 of 8 drafts accepted"
97 ],
98 "server_log": [
99  "[strata] reading the prompt: 3,072 of 250,000 tokens, 4 s so far",
100  "[strata] reading the prompt: 6,144 of 250,000 tokens, 9 s so far",
101  "[strata] reading the prompt: 9,216 of 250,000 tokens, 13 s so far",
102  "[strata] reading the prompt: 12,288 of 250,000 tokens, 18 s so far",
103  "[strata] reading the prompt: 15,360 of 250,000 tokens, 22 s so far",
104  "[strata] reading the prompt: 18,432 of 250,000 tokens, 27 s so far",
105  "[strata] reading the prompt: 21,504 of 250,000 tokens, 31 s so far",
106  "[strata] reading the prompt: 24,576 of 250,000 tokens, 36 s so far",
107  "[strata] reading the prompt: 27,648 of 250,000 tokens, 41 s so far",
108  "[strata] reading the prompt: 30,720 of 250,000 tokens, 45 s so far",
109  "[strata] reading the prompt: 33,792 of 250,000 tokens, 50 s so far",
110  "[strata] reading the prompt: 36,864 of 250,000 tokens, 55 s so far",
111  "[strata] reading the prompt: 39,936 of 250,000 tokens, 60 s so far",
112  "[strata] reading the prompt: 43,008 of 250,000 tokens, 65 s so far",
113  "[strata] reading the prompt: 46,080 of 250,000 tokens, 70 s so far",
114  "[strata] reading the prompt: 49,152 of 250,000 tokens, 75 s so far",
115  "[strata] reading the prompt: 52,224 of 250,000 tokens, 80 s so far",
116  "[strata] reading the prompt: 55,296 of 250,000 tokens, 85 s so far",
117  "[strata] reading the prompt: 58,368 of 250,000 tokens, 90 s so far",
118  "[strata] reading the prompt: 61,440 of 250,000 tokens, 95 s so far",
119  "[strata] reading the prompt: 64,512 of 250,000 tokens, 101 s so far",
120  "[strata] reading the prompt: 67,584 of 250,000 tokens, 106 s so far",
121  "[strata] reading the prompt: 70,656 of 250,000 tokens, 111 s so far",
122  "[strata] reading the prompt: 73,728 of 250,000 tokens, 117 s so far",
123  "[strata] reading the prompt: 76,800 of 250,000 tokens, 122 s so far",
124  "[strata] reading the prompt: 79,872 of 250,000 tokens, 128 s so far",
125  "[strata] reading the prompt: 82,944 of 250,000 tokens, 134 s so far",
126  "[strata] reading the prompt: 86,016 of 250,000 tokens, 139 s so far",
127  "[strata] reading the prompt: 89,088 of 250,000 tokens, 145 s so far",
128  "[strata] reading the prompt: 92,160 of 250,000 tokens, 151 s so far",
129  "[strata] reading the prompt: 95,232 of 250,000 tokens, 157 s so far",
130  "[strata] reading the prompt: 98,304 of 250,000 tokens, 163 s so far",
131  "[strata] reading the prompt: 101,376 of 250,000 tokens, 169 s so far",
132  "[strata] reading the prompt: 104,448 of 250,000 tokens, 175 s so far",
133  "[strata] reading the prompt: 107,520 of 250,000 tokens, 181 s so far",
134  "[strata] reading the prompt: 110,592 of 250,000 tokens, 187 s so far",
135  "[strata] reading the prompt: 113,664 of 250,000 tokens, 194 s so far",
136  "[strata] reading the prompt: 116,736 of 250,000 tokens, 200 s so far",
137  "[strata] reading the prompt: 119,808 of 250,000 tokens, 206 s so far",
138  "[strata] reading the prompt: 122,880 of 250,000 tokens, 212 s so far",
139  "[strata] reading the prompt: 125,952 of 250,000 tokens, 219 s so far",
140  "[strata] reading the prompt: 129,024 of 250,000 tokens, 225 s so far",
141  "[strata] reading the prompt: 132,096 of 250,000 tokens, 231 s so far",
142  "[strata] reading the prompt: 135,168 of 250,000 tokens, 238 s so far",
143  "[strata] reading the prompt: 138,240 of 250,000 tokens, 244 s so far",
144  "[strata] reading the prompt: 141,312 of 250,000 tokens, 251 s so far",
145  "[strata] reading the prompt: 144,384 of 250,000 tokens, 257 s so far",
146  "[strata] reading the prompt: 147,456 of 250,000 tokens, 264 s so far",
147  "[strata] reading the prompt: 150,528 of 250,000 tokens, 271 s so far",
148  "[strata] reading the prompt: 153,600 of 250,000 tokens, 278 s so far",
149  "[strata] reading the prompt: 156,672 of 250,000 tokens, 285 s so far",
150  "[strata] reading the prompt: 159,744 of 250,000 tokens, 292 s so far",
151  "[strata] reading the prompt: 162,816 of 250,000 tokens, 299 s so far",
152  "[strata] reading the prompt: 165,888 of 250,000 tokens, 306 s so far",
153  "[strata] reading the prompt: 168,960 of 250,000 tokens, 313 s so far",
154  "[strata] reading the prompt: 172,032 of 250,000 tokens, 320 s so far",
155  "[strata] reading the prompt: 175,104 of 250,000 tokens, 328 s so far",
156  "[strata] reading the prompt: 178,176 of 250,000 tokens, 335 s so far",
157  "[strata] reading the prompt: 181,248 of 250,000 tokens, 343 s so far",
158  "[strata] reading the prompt: 184,320 of 250,000 tokens, 351 s so far",
159  "[strata] reading the prompt: 187,392 of 250,000 tokens, 359 s so far",
160  "[strata] reading the prompt: 190,464 of 250,000 tokens, 366 s so far",
161  "[strata] reading the prompt: 193,536 of 250,000 tokens, 374 s so far",
162  "[strata] reading the prompt: 196,608 of 250,000 tokens, 382 s so far",
163  "[strata] reading the prompt: 199,680 of 250,000 tokens, 390 s so far",
164  "[strata] reading the prompt: 202,752 of 250,000 tokens, 399 s so far",
165  "[strata] reading the prompt: 205,824 of 250,000 tokens, 407 s so far",
166  "[strata] reading the prompt: 208,896 of 250,000 tokens, 415 s so far",
167  "[strata] reading the prompt: 211,968 of 250,000 tokens, 424 s so far",
168  "[strata] reading the prompt: 215,040 of 250,000 tokens, 432 s so far",
169  "[strata] reading the prompt: 218,112 of 250,000 tokens, 441 s so far",
170  "[strata] reading the prompt: 221,184 of 250,000 tokens, 449 s so far",
171  "[strata] reading the prompt: 224,256 of 250,000 tokens, 458 s so far",
172  "[strata] reading the prompt: 227,328 of 250,000 tokens, 467 s so far",
173  "[strata] reading the prompt: 230,400 of 250,000 tokens, 476 s so far",
174  "[strata] reading the prompt: 233,472 of 250,000 tokens, 484 s so far",
175  "[strata] reading the prompt: 236,544 of 250,000 tokens, 493 s so far",
176  "[strata] reading the prompt: 239,616 of 250,000 tokens, 502 s so far",
177  "[strata] reading the prompt: 242,688 of 250,000 tokens, 511 s so far",
178  "[strata] reading the prompt: 245,760 of 250,000 tokens, 520 s so far",
179  "[strata] reading the prompt: 248,832 of 250,000 tokens, 530 s so far",
180  "[strata] reading the prompt: 249,993 of 250,000 tokens, 535 s so far",
181  "[strata] answering: 16 of max 400 tokens, 28.1 tok/s, 536 s",
182  "[strata] answering: 48 of max 400 tokens, 29.4 tok/s, 538 s",
183  "[strata] answering: 81 of max 400 tokens, 30.5 tok/s, 539 s",
184  "[strata] answering: 114 of max 400 tokens, 30.8 tok/s, 540 s",
185  "[strata] answering: 150 of max 400 tokens, 31.5 tok/s, 541 s",
186  "[strata] answering: 186 of max 400 tokens, 32.2 tok/s, 542 s",
187  "[strata] answering: 220 of max 400 tokens, 32.3 tok/s, 543 s",
188  "[strata] answering: 249 of max 400 tokens, 31.7 tok/s, 544 s",
189  "[strata] answering: 280 of max 400 tokens, 31.6 tok/s, 545 s",
190  "[strata] answering: 317 of max 400 tokens, 32.0 tok/s, 546 s",
191  "[strata] answering: 350 of max 400 tokens, 32.0 tok/s, 547 s",
192  "[strata] answering: 381 of max 400 tokens, 31.8 tok/s, 548 s",
193  "[strata] done: 400 tokens in 548 s (31.9 tok/s) (length, cancel=False), expert cache 54.9% hit"
194 ]
195}