okami.mom/strata

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

Niko1221Merge f-142b-serve into f-1426e1085c1d

main
10.7 KiB358 linesraw
1{
2  "bandwidth_GB_s": {
3    "vram_read": 147.402334,
4    "h2d": 11.886827,
5    "d2h": 12.385216,
6    "host_read": 75.118952
7  },
8  "baseline": [
9    {
10      "tokens": 512,
11      "rates": [
12        64.58856328291556,
13        64.40332582799783,
14        64.5201940646462
15      ],
16      "median_tps": 64.5201940646462,
17      "min_tps": 64.40332582799783,
18      "max_tps": 64.58856328291556,
19      "prompt_ms_median": 7935.5,
20      "phases_ms": {
21        "embed+steps": 2.0,
22        "hc read": 323.0,
23        "gdn": 889.0,
24        "qsa proj": 509.0,
25        "qsa indexer": 0.0,
26        "qsa select": 1.0,
27        "qsa attn": 50.0,
28        "router+shared": 123.0,
29        "host grouping": 58.0,
30        "gather": 183.0,
31        "wait copy": 561.0,
32        "dequant": 2501.0,
33        "gemm gate/up": 1487.0,
34        "gemm down": 557.0,
35        "combine": 56.0,
36        "ple": 11.0,
37        "gdn conv+gates": 16.0,
38        "gdn recurrence": 73.0,
39        "gdn out proj": 394.0
40      },
41      "total_ms": 7796.0,
42      "logical_expert_MB_median": 24819.2,
43      "disk_MB": [
44        0.0,
45        0.0,
46        0.0
47      ],
48      "major_faults": [
49        0,
50        0,
51        0
52      ],
53      "wait_only_zero_speedup": 1.0775397373876987,
54      "wait_and_dequant_zero_speedup": 1.6468103084072665,
55      "expert_phase_zero_speedup": 3.257835353113247,
56      "fixed_nonexpert_ms": 2393.0
57    },
58    {
59      "tokens": 4096,
60      "rates": [
61        77.86583731438901,
62        78.08136398382709,
63        78.01845319273758
64      ],
65      "median_tps": 78.01845319273758,
66      "min_tps": 77.86583731438901,
67      "max_tps": 78.08136398382709,
68      "prompt_ms_median": 52500.4,
69      "phases_ms": {
70        "embed+steps": 74.0,
71        "hc read": 2578.0,
72        "gdn": 7096.0,
73        "qsa proj": 4072.0,
74        "qsa indexer": 1.0,
75        "qsa select": 153.0,
76        "qsa attn": 1804.0,
77        "router+shared": 982.0,
78        "host grouping": 368.0,
79        "gather": 1447.0,
80        "wait copy": 3277.0,
81        "dequant": 13948.0,
82        "gemm gate/up": 8795.0,
83        "gemm down": 3368.0,
84        "combine": 449.0,
85        "ple": 86.0,
86        "gdn conv+gates": 127.0,
87        "gdn recurrence": 586.0,
88        "gdn out proj": 3148.0
89      },
90      "total_ms": 52363.0,
91      "logical_expert_MB_median": 136548.0,
92      "disk_MB": [
93        0.0,
94        0.0,
95        0.0
96      ],
97      "major_faults": [
98        0,
99        0,
100        0
101      ],
102      "wait_only_zero_speedup": 1.0667603797416778,
103      "wait_and_dequant_zero_speedup": 1.4902100290284024,
104      "expert_phase_zero_speedup": 2.5282700014485058,
105      "fixed_nonexpert_ms": 20711.0
106    },
107    {
108      "tokens": 8192,
109      "rates": [
110        78.84033869008779,
111        78.84785117468091,
112        78.83730374881388
113      ],
114      "median_tps": 78.84033869008779,
115      "min_tps": 78.83730374881388,
116      "max_tps": 78.84785117468091,
117      "prompt_ms_median": 103906.2,
118      "phases_ms": {
119        "embed+steps": 158.0,
120        "hc read": 5155.0,
121        "gdn": 14190.0,
122        "qsa proj": 8143.0,
123        "qsa indexer": 2.0,
124        "qsa select": 508.0,
125        "qsa attn": 4187.0,
126        "router+shared": 1964.0,
127        "host grouping": 723.0,
128        "gather": 2871.0,
129        "wait copy": 6436.0,
130        "dequant": 27085.0,
131        "gemm gate/up": 17045.0,
132        "gemm down": 6520.0,
133        "combine": 899.0,
134        "ple": 171.0,
135        "gdn conv+gates": 253.0,
136        "gdn recurrence": 1172.0,
137        "gdn out proj": 6297.0
138      },
139      "total_ms": 103767.0,
140      "logical_expert_MB_median": 263919.4,
141      "disk_MB": [
142        0.0,
143        0.0,
144        0.0
145      ],
146      "major_faults": [
147        0,
148        0,
149        0
150      ],
151      "wait_only_zero_speedup": 1.0661248728565411,
152      "wait_and_dequant_zero_speedup": 1.4771944309996299,
153      "expert_phase_zero_speedup": 2.4596330710154546,
154      "fixed_nonexpert_ms": 42188.0
155    }
156  ],
157  "control": [
158    {
159      "prefill_setting": "512",
160      "prompt_tokens": 4096,
161      "prefill_tokens": 4095,
162      "h2d_bytes": 135417241600,
163      "copies": 75562,
164      "unique_bytes": 29545113600,
165      "unique_experts": 16700,
166      "repetition_ratio": 4.583405683706696,
167      "avoidable_repeated_bytes": 105872128000,
168      "h2d_floor_s": 11.392211024859703,
169      "unique_h2d_floor_s": 2.4855340790271447,
170      "prompt_ms": 52560.9,
171      "tps": 77.92865038460148,
172      "routed_ops": 19322634240000,
173      "h2d_ops_per_byte": 142.68961626818427,
174      "unique_h2d_ops_per_byte": 654.0043982095232,
175      "routed_equiv_TOP_s": 0.3676237324703344,
176      "phases": {
177        "total_ms": 52420.0,
178        "phases_ms": {
179          "embed+steps": 74.0,
180          "hc read": 2579.0,
181          "gdn": 7091.0,
182          "qsa proj": 4071.0,
183          "qsa indexer": 1.0,
184          "qsa select": 153.0,
185          "qsa attn": 1801.0,
186          "router+shared": 987.0,
187          "host grouping": 270.0,
188          "gather": 1418.0,
189          "wait copy": 3242.0,
190          "dequant": 14241.0,
191          "gemm gate/up": 8754.0,
192          "gemm down": 3342.0,
193          "combine": 449.0,
194          "ple": 86.0,
195          "gdn conv+gates": 127.0,
196          "gdn recurrence": 585.0,
197          "gdn out proj": 3149.0
198        },
199        "disk_MB": 0.0,
200        "major_faults": 0,
201        "logical_expert_MB": 136548.0
202      },
203      "copy_only_saving_at_peak_s": 8.906676945832558
204    },
205    {
206      "prefill_setting": "512",
207      "prompt_tokens": 8192,
208      "prefill_tokens": 8191,
209      "h2d_bytes": 262788940800,
210      "copies": 146553,
211      "unique_bytes": 30871321600,
212      "unique_experts": 17469,
213      "repetition_ratio": 8.512396851840641,
214      "avoidable_repeated_bytes": 231917619200,
215      "h2d_floor_s": 22.107576799090285,
216      "unique_h2d_floor_s": 2.5971036341321363,
217      "prompt_ms": 103783.7,
218      "tps": 78.933397055607,
219      "routed_ops": 38649987072000,
220      "h2d_ops_per_byte": 147.0761553143716,
221      "unique_h2d_ops_per_byte": 1251.970601478882,
222      "routed_equiv_TOP_s": 0.3724090302427067,
223      "phases": {
224        "total_ms": 103643.0,
225        "phases_ms": {
226          "embed+steps": 158.0,
227          "hc read": 5155.0,
228          "gdn": 14195.0,
229          "qsa proj": 8141.0,
230          "qsa indexer": 2.0,
231          "qsa select": 506.0,
232          "qsa attn": 4184.0,
233          "router+shared": 1976.0,
234          "host grouping": 532.0,
235          "gather": 2824.0,
236          "wait copy": 6368.0,
237          "dequant": 27193.0,
238          "gemm gate/up": 17062.0,
239          "gemm down": 6552.0,
240          "combine": 898.0,
241          "ple": 171.0,
242          "gdn conv+gates": 254.0,
243          "gdn recurrence": 1172.0,
244          "gdn out proj": 6301.0
245        },
246        "disk_MB": 0.0,
247        "major_faults": 0,
248        "logical_expert_MB": 263919.4
249      },
250      "copy_only_saving_at_peak_s": 19.51047316495815
251    },
252    {
253      "prefill_setting": "auto",
254      "prompt_tokens": 4096,
255      "prefill_tokens": 4095,
256      "h2d_bytes": 105829222400,
257      "copies": 60448,
258      "unique_bytes": 42600729600,
259      "unique_experts": 24401,
260      "repetition_ratio": 2.4842115004528,
261      "avoidable_repeated_bytes": 63228492800,
262      "h2d_floor_s": 8.903067437592892,
263      "unique_h2d_floor_s": 3.583860486907061,
264      "prompt_ms": 38187.7,
265      "tps": 107.25966737981078,
266      "routed_ops": 19322634240000,
267      "h2d_ops_per_byte": 182.58316372170566,
268      "unique_h2d_ops_per_byte": 453.57519510651764,
269      "routed_equiv_TOP_s": 0.5059910452842146,
270      "phases": {
271        "total_ms": 37812.0,
272        "phases_ms": {
273          "embed+steps": 80.0,
274          "hc read": 2349.0,
275          "gdn": 5615.0,
276          "qsa proj": 3013.0,
277          "qsa indexer": 1.0,
278          "qsa select": 153.0,
279          "qsa attn": 1812.0,
280          "router+shared": 830.0,
281          "host grouping": 143.0,
282          "gather": 285.0,
283          "wait copy": 3379.0,
284          "dequant": 9403.0,
285          "gemm gate/up": 5006.0,
286          "gemm down": 2271.0,
287          "combine": 453.0,
288          "ple": 79.0,
289          "gdn conv+gates": 126.0,
290          "gdn recurrence": 658.0,
291          "gdn out proj": 2154.0
292        },
293        "disk_MB": 0.0,
294        "major_faults": 0,
295        "logical_expert_MB": 107669.9
296      },
297      "copy_only_saving_at_peak_s": 5.319206950685831
298    },
299    {
300      "prefill_setting": "auto",
301      "prompt_tokens": 8192,
302      "prefill_tokens": 8191,
303      "h2d_bytes": 193275468800,
304      "copies": 110473,
305      "unique_bytes": 42600729600,
306      "unique_experts": 24401,
307      "repetition_ratio": 4.536905133192836,
308      "avoidable_repeated_bytes": 150674739200,
309      "h2d_floor_s": 16.259635039695624,
310      "unique_h2d_floor_s": 3.583860486907061,
311      "prompt_ms": 71387.6,
312      "tps": 114.75382279275391,
313      "routed_ops": 38649987072000,
314      "h2d_ops_per_byte": 199.97357818852177,
315      "unique_h2d_ops_per_byte": 907.2611533864434,
316      "routed_equiv_TOP_s": 0.5414103719973776,
317      "phases": {
318        "total_ms": 71009.0,
319        "phases_ms": {
320          "embed+steps": 152.0,
321          "hc read": 4630.0,
322          "gdn": 10960.0,
323          "qsa proj": 5603.0,
324          "qsa indexer": 1.0,
325          "qsa select": 509.0,
326          "qsa attn": 4224.0,
327          "router+shared": 1641.0,
328          "host grouping": 242.0,
329          "gather": 377.0,
330          "wait copy": 6453.0,
331          "dequant": 16461.0,
332          "gemm gate/up": 8824.0,
333          "gemm down": 4164.0,
334          "combine": 906.0,
335          "ple": 167.0,
336          "gdn conv+gates": 251.0,
337          "gdn recurrence": 1338.0,
338          "gdn out proj": 4104.0
339        },
340        "disk_MB": 0.0,
341        "major_faults": 0,
342        "logical_expert_MB": 195112.3
343      },
344      "copy_only_saving_at_peak_s": 12.675774552788564
345    }
346  ],
347  "notes": [
348    "Baseline: main fb58e0d, one P4, IQ3_XXS, int8 KV, 512-token prefill chunks, mmap experts, three repetitions, CPU share default.",
349    "Controls: same base plus host-only byte counters, CPU expert share disabled, one observation per length and chunk policy. Auto selected 1792 tokens.",
350    "Logical file-tier reads are not physical disk bytes or measured GPU DRAM traffic.",
351    "CUDA-event phase times include host-issue/copy stalls; dequant includes quantized group gathering, not just dequantization.",
352    "Host staging in the engine log is cumulative and overlapping, not an additive per-request component.",
353    "Routed-equivalent ops omit dense, attention, recurrent, and quantization work; the 22-TOPS roof is an optimistic INT8 hardware budget, not a measured IQ3 kernel ceiling.",
354    "Unique H2D bytes assume each observed streamed expert is copied once across the request. This models reuse only, not an implemented layer-major run.",
355    "Zero-phase scenarios hold remaining phase time fixed. They are conditional sensitivity calculations, not universal hardware bounds."
356  ],
357  "ops_per_token_routed_only": 4718592000
358}