okami.mom/strata

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

xxDomanbench: community MI50 (gfx906) — Strata 0.1.38 speed and recall (#758)c97ad41eb

main
19.2 KiB382 linesraw
1[
2  {
3    "label": "warmup",
4    "expected_prompt_tokens": null,
5    "request_sha256": "b63e57873441a996a529b246a66cf12de70a7c671777f99329354d5c195f788f",
6    "client_ttft_s": 0.4514398839964997,
7    "client_elapsed_s": 0.5234972199978074,
8    "finish_reason": "stop",
9    "usage": {
10      "prompt_tokens": 19,
11      "completion_tokens": 2,
12      "total_tokens": 21,
13      "prompt_tokens_details": {
14        "cached_tokens": 0
15      }
16    },
17    "engine": {
18      "projection": null,
19      "time": 1791115069.0727546,
20      "duration_s": 0.5,
21      "finish": "stop",
22      "prompt_tokens": 19,
23      "reused": 0,
24      "output_tokens": 2,
25      "prompt_total": 19,
26      "prompt_read": 19,
27      "engine_generated": 2,
28      "prompt_ms": 413.3,
29      "decode_ms": 105.5,
30      "decode_tok_s": 19.0,
31      "hit_rate": 0.904,
32      "ram_blobs": 0,
33      "file_blobs": 0,
34      "file_mb": 0.0,
35      "drafts_offered": 2,
36      "drafts_accepted": 2
37    },
38    "text": "READY"
39  },
40  {
41    "label": "tokens-4096-run-1",
42    "expected_prompt_tokens": 4096,
43    "request_sha256": "5d94c652067354bbe72930d2bdad3886564f08cf2546b32411af02d33ad3ce05",
44    "client_ttft_s": 12.370382662003976,
45    "client_elapsed_s": 19.44448066300538,
46    "finish_reason": "length",
47    "usage": {
48      "prompt_tokens": 4096,
49      "completion_tokens": 256,
50      "total_tokens": 4352,
51      "prompt_tokens_details": {
52        "cached_tokens": 0
53      }
54    },
55    "engine": {
56      "projection": null,
57      "time": 1791115070.1999516,
58      "duration_s": 19.4,
59      "finish": "length",
60      "prompt_tokens": 4096,
61      "reused": 0,
62      "output_tokens": 256,
63      "prompt_total": 4096,
64      "prompt_read": 4096,
65      "engine_generated": 256,
66      "prompt_ms": 12324.5,
67      "decode_ms": 7108.2,
68      "decode_tok_s": 36.0,
69      "hit_rate": 0.973,
70      "ram_blobs": 0,
71      "file_blobs": 0,
72      "file_mb": 0.0,
73      "drafts_offered": 135,
74      "drafts_accepted": 120
75    },
76    "text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit implementation and algorithmic abstraction. Below is a detailed discussion of the code\u2019s structure, mathematical properties, testing implications, naming conventions, complexity, and maintainability.\n\n## 1. Mathematical Structure and Deterministic Transforms\n\nEach function follows the general form:\n```python\ndef task_XXXXX(value: int) -> int:\n    return (value * multiplier + addend) % MOD\n```\nwhere `MOD = 100003`.\n\nFor most functions, the multiplier and addend are derived from the function index `i`:\n- `multiplier = i + 1`\n- `addend = i`\n\nThus, for `task_00000`, `multiplier = 1`, `addend = 0`.\nFor `task_00001`, `multiplier = 2`, `"
77  },
78  {
79    "label": "tokens-4096-run-2",
80    "expected_prompt_tokens": 4096,
81    "request_sha256": "8da8a04e70e4d916f6630729082bdfb9d6ebbb47117aad60bc0541bce198a213",
82    "client_ttft_s": 12.387344029004453,
83    "client_elapsed_s": 19.48764281500189,
84    "finish_reason": "length",
85    "usage": {
86      "prompt_tokens": 4096,
87      "completion_tokens": 256,
88      "total_tokens": 4352,
89      "prompt_tokens_details": {
90        "cached_tokens": 0
91      }
92    },
93    "engine": {
94      "projection": null,
95      "time": 1791115090.3042443,
96      "duration_s": 19.5,
97      "finish": "length",
98      "prompt_tokens": 4096,
99      "reused": 0,
100      "output_tokens": 256,
101      "prompt_total": 4096,
102      "prompt_read": 4096,
103      "engine_generated": 256,
104      "prompt_ms": 12342.0,
105      "decode_ms": 7134.4,
106      "decode_tok_s": 35.9,
107      "hit_rate": 0.991,
108      "ram_blobs": 0,
109      "file_blobs": 0,
110      "file_mb": 0.0,
111      "drafts_offered": 130,
112      "drafts_accepted": 115
113    },
114    "text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit definition and programmatic generation. Below is a detailed discussion of the code's structure, mathematical properties, testing implications, and maintainability.\n\n## 1. Mathematical Structure and Deterministic Transforms\n\nAt its core, every function in this module implements a linear congruential generator (LCG) step or a simple affine transformation modulo a prime number. The general form of each function is:\n\n$$ f_n(x) = (x \\cdot a_n + b_n) \\pmod{M} $$\n\nWhere:\n- $M = 100003$ is a fixed modulus.\n- $a_n$ is the multiplier for function $n$.\n- $b_n$ is the additive constant for function $n$.\n\nFor the majority of the functions (e.g., `task_00000` to `task_000"
115  },
116  {
117    "label": "tokens-4096-run-3",
118    "expected_prompt_tokens": 4096,
119    "request_sha256": "946079edb58e764050805886156dc8f877cc29e1ca8d01c84e9a1e7917d49492",
120    "client_ttft_s": 12.455640252999729,
121    "client_elapsed_s": 19.26707297500252,
122    "finish_reason": "length",
123    "usage": {
124      "prompt_tokens": 4096,
125      "completion_tokens": 256,
126      "total_tokens": 4352,
127      "prompt_tokens_details": {
128        "cached_tokens": 0
129      }
130    },
131    "engine": {
132      "projection": null,
133      "time": 1791115110.3815,
134      "duration_s": 19.3,
135      "finish": "length",
136      "prompt_tokens": 4096,
137      "reused": 0,
138      "output_tokens": 256,
139      "prompt_total": 4096,
140      "prompt_read": 4096,
141      "engine_generated": 256,
142      "prompt_ms": 12410.2,
143      "decode_ms": 6846.6,
144      "decode_tok_s": 37.4,
145      "hit_rate": 0.993,
146      "ram_blobs": 0,
147      "file_blobs": 0,
148      "file_mb": 0.0,
149      "drafts_offered": 125,
150      "drafts_accepted": 118
151    },
152    "text": "# Analysis of Synthetic Python Module: Deterministic Integer Transforms\n\nThe provided Python module consists of a series of functions, `task_00000` through `task_00112`, each implementing a specific deterministic integer transformation. While the code appears repetitive, it serves as a clear example of modular arithmetic, function design, and the trade-offs between explicit definition and programmatic generation. Below is a detailed discussion of the code's structure, mathematical properties, testing implications, and maintainability.\n\n## 1. Mathematical Structure and Deterministic Transforms\n\nAt its core, every function in this module implements a linear congruential generator (LCG) step or a simple affine transformation modulo a prime number. The general form of each function is:\n\n$$ f_i(v) = (v \\cdot a_i + b_i) \\pmod{M} $$\n\nWhere:\n- $v$ is the input integer.\n- $a_i$ is the multiplier for function $i$.\n- $b_i$ is the additive constant for function $i$.\n- $M = 100003$ is the modulus.\n\nFor the first 97 functions (`task_00000` to"
153  },
154  {
155    "label": "tokens-32768-run-1",
156    "expected_prompt_tokens": 32768,
157    "request_sha256": "e37cfc2ab9867d91130927440df24a57255a736b8d0d829d07d828e22e3de572",
158    "client_ttft_s": 100.22672382699966,
159    "client_elapsed_s": 107.74661526099953,
160    "finish_reason": "length",
161    "usage": {
162      "prompt_tokens": 32768,
163      "completion_tokens": 256,
164      "total_tokens": 33024,
165      "prompt_tokens_details": {
166        "cached_tokens": 0
167      }
168    },
169    "engine": {
170      "projection": null,
171      "time": 1791115130.827722,
172      "duration_s": 107.7,
173      "finish": "length",
174      "prompt_tokens": 32768,
175      "reused": 0,
176      "output_tokens": 256,
177      "prompt_total": 32768,
178      "prompt_read": 32768,
179      "engine_generated": 256,
180      "prompt_ms": 100143.6,
181      "decode_ms": 7555.1,
182      "decode_tok_s": 33.9,
183      "hit_rate": 0.994,
184      "ram_blobs": 0,
185      "file_blobs": 0,
186      "file_mb": 0.0,
187      "drafts_offered": 112,
188      "drafts_accepted": 105
189    },
190    "text": "Based on the provided Python module, here is a detailed technical review and explanation.\n\n### 1. Overview and Pattern Analysis\n\nThe provided code consists of a series of functions, `task_00000` through `task_00888` (and presumably continuing beyond the snippet), that perform a deterministic integer transformation. Each function takes an integer `value` and returns an integer result based on a specific linear formula.\n\nThe general structure of each function is:\n```python\ndef task_XXXXX(value: int) -> int:\n    return (value * multiplier + offset) % 100003\n```\n\nThe core logic relies on **affine transformations** modulo a prime number ($100,003$). This is a common pattern in cryptography, hashing, and pseudo-random number generation, where the goal is to map an input to a specific range while maintaining certain mathematical properties.\n\n### 2. Deterministic Integer Transforms and Modulo Arithmetic\n\nThe transformation `(value * multiplier + offset) % 100003` is a linear congruential generator (LCG) step, but applied as a single function call rather than a stateful sequence.\n\n*"
191  },
192  {
193    "label": "tokens-32768-run-2",
194    "expected_prompt_tokens": 32768,
195    "request_sha256": "ed2dfaa11aecad9f4563f33bb5f5d4b8704486508700b8fa572722cc1225ee26",
196    "client_ttft_s": 100.24499427500268,
197    "client_elapsed_s": 107.70844113100611,
198    "finish_reason": "length",
199    "usage": {
200      "prompt_tokens": 32768,
201      "completion_tokens": 256,
202      "total_tokens": 33024,
203      "prompt_tokens_details": {
204        "cached_tokens": 0
205      }
206    },
207    "engine": {
208      "projection": null,
209      "time": 1791115239.7469492,
210      "duration_s": 107.7,
211      "finish": "length",
212      "prompt_tokens": 32768,
213      "reused": 0,
214      "output_tokens": 256,
215      "prompt_total": 32768,
216      "prompt_read": 32768,
217      "engine_generated": 256,
218      "prompt_ms": 100161.5,
219      "decode_ms": 7499.5,
220      "decode_tok_s": 34.1,
221      "hit_rate": 0.995,
222      "ram_blobs": 0,
223      "file_blobs": 0,
224      "file_mb": 0.0,
225      "drafts_offered": 112,
226      "drafts_accepted": 106
227    },
228    "text": "Based on the provided synthetic Python module, here is a detailed technical review and explanation.\n\n### Overview of the Module\n\nThe provided code consists of a series of function definitions, ranging from `task_00000` to `task_00888`. Each function accepts a single integer argument `value` and returns an integer. The core logic within every function is identical in structure, differing only in the specific constants used for multiplication and addition.\n\nThe general pattern for any function `task_N` is:\n$$ \\text{result} = (value \\times M + C) \\pmod{100003} $$\n\nWhere:\n*   $M$ is the multiplier.\n*   $C$ is the additive constant.\n*   $100003$ is the modulus.\n\n### Deterministic Integer Transforms and Modulo Arithmetic\n\nThe functions implement **deterministic integer transforms**. In computer science, a deterministic transform is a function where the output is entirely predictable based on the input, with no randomness or side effects. Here, the transform is an affine transformation over the ring of integers modulo $100003$.\n\n**Modulo Arithmetic:**\nThe modulus $"
229  },
230  {
231    "label": "tokens-32768-run-3",
232    "expected_prompt_tokens": 32768,
233    "request_sha256": "2a3c7342622e80c3cd8b37e062f0a2f64640c119ece8cccbf168639041eac079",
234    "client_ttft_s": 100.21737997500168,
235    "client_elapsed_s": 107.70301262899739,
236    "finish_reason": "length",
237    "usage": {
238      "prompt_tokens": 32768,
239      "completion_tokens": 256,
240      "total_tokens": 33024,
241      "prompt_tokens_details": {
242        "cached_tokens": 0
243      }
244    },
245    "engine": {
246      "projection": null,
247      "time": 1791115348.6530988,
248      "duration_s": 107.7,
249      "finish": "length",
250      "prompt_tokens": 32768,
251      "reused": 0,
252      "output_tokens": 256,
253      "prompt_total": 32768,
254      "prompt_read": 32768,
255      "engine_generated": 256,
256      "prompt_ms": 100131.2,
257      "decode_ms": 7521.7,
258      "decode_tok_s": 34.0,
259      "hit_rate": 0.995,
260      "ram_blobs": 0,
261      "file_blobs": 0,
262      "file_mb": 0.0,
263      "drafts_offered": 112,
264      "drafts_accepted": 104
265    },
266    "text": "Based on the provided Python module, here is a detailed technical review and explanation.\n\n### Overview of the Module\n\nThe provided code defines a series of functions, `task_00000` through `task_00888`, that perform deterministic integer transformations. Each function takes an integer `value` and returns a new integer based on a specific linear formula involving multiplication, addition, and modulo arithmetic. The benchmark nonce `series-32768-trial-3` suggests this code is part of a larger test suite or performance benchmark, likely designed to evaluate computational consistency, hash generation, or state machine transitions.\n\n### Mathematical Logic and Deterministic Transforms\n\nAt its core, every function in this module implements a linear congruential generator (LCG) step or a simple affine transformation. The general pattern for any function `task_N` is:\n\n$$ f(x) = (x \\cdot a + b) \\pmod{M} $$\n\nWhere:\n*   $x$ is the input `value`.\n*   $a$ is the multiplier.\n*   $b$ is the additive constant.\n*   $M$ is the modulus, fixed at `100003`."
267  },
268  {
269    "label": "tokens-128000-run-1",
270    "expected_prompt_tokens": 128000,
271    "request_sha256": "3235aac3f934cf1d889c25973ca172b355509dc2522fdfb463fbefe979a9075d",
272    "client_ttft_s": 419.62868900600006,
273    "client_elapsed_s": 427.2408831059947,
274    "finish_reason": "length",
275    "usage": {
276      "prompt_tokens": 128000,
277      "completion_tokens": 256,
278      "total_tokens": 128256,
279      "prompt_tokens_details": {
280        "cached_tokens": 0
281      }
282    },
283    "engine": {
284      "projection": null,
285      "time": 1791115459.5602834,
286      "duration_s": 427.1,
287      "finish": "length",
288      "prompt_tokens": 128000,
289      "reused": 0,
290      "output_tokens": 256,
291      "prompt_total": 128000,
292      "prompt_read": 128000,
293      "engine_generated": 256,
294      "prompt_ms": 419415.2,
295      "decode_ms": 7650.1,
296      "decode_tok_s": 33.5,
297      "hit_rate": 0.996,
298      "ram_blobs": 0,
299      "file_blobs": 0,
300      "file_mb": 0.0,
301      "drafts_offered": 127,
302      "drafts_accepted": 113
303    },
304    "text": "Based on the provided synthetic Python module, here is a detailed technical review and explanation.\n\n### Overview of the Module\n\nThe provided code consists of a massive collection of function definitions, ranging from `task_00000` to `task_03404`. Each function accepts a single integer argument `value` and returns an integer. While the functions appear distinct, they share a common underlying mathematical structure. This module serves as a stress test for static analysis tools, code generation systems, or performance benchmarks, likely generated programmatically rather than written by hand.\n\n### Mathematical Structure and Deterministic Transforms\n\nAt its core, every function in this module implements a **linear congruential transformation** modulo a prime number. The general formula for any function `task_N` is:\n\n$$ f(x) = (x \\cdot a + b) \\pmod{100003} $$\n\nWhere:\n*   $x$ is the input `value`.\n*   $a$ is the multiplier (coefficient).\n*   $b$ is the additive constant.\n*   $100003$ is the modulus.\n\nThe choice of `100003` is significant."
305  },
306  {
307    "label": "tokens-128000-run-2",
308    "expected_prompt_tokens": 128000,
309    "request_sha256": "5f4b8bc9f0afc7765320abd89960c0938e0d7cf5974e962fdbd0613fef31c8d4",
310    "client_ttft_s": 420.24716383600025,
311    "client_elapsed_s": 428.1079283079962,
312    "finish_reason": "length",
313    "usage": {
314      "prompt_tokens": 128000,
315      "completion_tokens": 256,
316      "total_tokens": 128256,
317      "prompt_tokens_details": {
318        "cached_tokens": 0
319      }
320    },
321    "engine": {
322      "projection": null,
323      "time": 1791115889.9397228,
324      "duration_s": 427.9,
325      "finish": "length",
326      "prompt_tokens": 128000,
327      "reused": 0,
328      "output_tokens": 256,
329      "prompt_total": 128000,
330      "prompt_read": 128000,
331      "engine_generated": 256,
332      "prompt_ms": 420028.2,
333      "decode_ms": 7899.0,
334      "decode_tok_s": 32.4,
335      "hit_rate": 0.996,
336      "ram_blobs": 0,
337      "file_blobs": 0,
338      "file_mb": 0.0,
339      "drafts_offered": 112,
340      "drafts_accepted": 109
341    },
342    "text": "This synthetic Python module presents a fascinating case study in code generation, algorithmic consistency, and the trade-offs between explicit definition and dynamic computation. The module consists of thousands of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer. Each function performs a specific linear transformation on an input integer `value` and returns the result modulo 100,003.\n\n### 1. The Core Algorithm: Deterministic Linear Transforms\n\nAt its heart, every function in this module implements the same mathematical structure:\n$$ f(x) = (a \\cdot x + b) \\pmod{M} $$\nWhere:\n*   $x$ is the input `value`.\n*   $a$ is the multiplier (coefficient).\n*   $b$ is the additive constant.\n*   $M$ is the modulus, fixed at `100003`.\n\nThe code is deterministic. For any given input `value`, the output is always the same, regardless of when or where the code is executed. This is crucial for benchmarking, as it ensures that performance measurements are not skewed by random number generation or state changes.\n\n### 2. Pattern Analysis and"
343  },
344  {
345    "label": "tokens-128000-run-3",
346    "expected_prompt_tokens": 128000,
347    "request_sha256": "5c3fb71db9f9f44765f28389d1032f2c8b6687d1bf5ca6f33aeb924072cfa6e4",
348    "client_ttft_s": 419.58199085100205,
349    "client_elapsed_s": 427.06819348000136,
350    "finish_reason": "length",
351    "usage": {
352      "prompt_tokens": 128000,
353      "completion_tokens": 256,
354      "total_tokens": 128256,
355      "prompt_tokens_details": {
356        "cached_tokens": 0
357      }
358    },
359    "engine": {
360      "projection": null,
361      "time": 1791116321.2537591,
362      "duration_s": 426.9,
363      "finish": "length",
364      "prompt_tokens": 128000,
365      "reused": 0,
366      "output_tokens": 256,
367      "prompt_total": 128000,
368      "prompt_read": 128000,
369      "engine_generated": 256,
370      "prompt_ms": 419358.7,
371      "decode_ms": 7524.9,
372      "decode_tok_s": 34.0,
373      "hit_rate": 0.996,
374      "ram_blobs": 0,
375      "file_blobs": 0,
376      "file_mb": 0.0,
377      "drafts_offered": 121,
378      "drafts_accepted": 115
379    },
380    "text": "This synthetic Python module presents a fascinating case study in code generation, algorithmic consistency, and the trade-offs between explicit definition and dynamic abstraction. The module consists of thousands of functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer. Each function performs a deterministic integer transform based on a specific linear formula.\n\n### 1. The Core Algorithm: Deterministic Linear Transforms\n\nAt its heart, every function in this module implements a variation of the same mathematical operation:\n$$ f(x) = (a \\cdot x + b) \\pmod{100003} $$\n\nWhere:\n*   $x$ is the input `value`.\n*   $a$ is the multiplier (coefficient).\n*   $b$ is the additive constant.\n*   $100003$ is the modulus.\n\nThe code explicitly hard-codes the values of $a$ and $b$ for each function. For example, `task_00000` uses $a=1, b=0$, while `task_00001` uses $a=2, b=1$. This creates a deterministic mapping where the output depends entirely"
381  }
382]