okami.mom/strata

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

Niko1221Merge f-141-fixb: Python, docs and bench fixes and portsef8071303

main
22.3 KiB462 linesraw
1[
2  {
3    "label": "warmup",
4    "status": "ok",
5    "expected_prompt_tokens": null,
6    "request_sha256": "b63e57873441a996a529b246a66cf12de70a7c671777f99329354d5c195f788f",
7    "client_ttft_s": 0.2916134000115562,
8    "client_elapsed_s": 0.37406460000784136,
9    "finish_reason": "stop",
10    "usage": {
11      "prompt_tokens": 19,
12      "completion_tokens": 2,
13      "total_tokens": 21,
14      "prompt_tokens_details": {
15        "cached_tokens": 0
16      }
17    },
18    "engine": {
19      "projection": null,
20      "time": 1791413435.9922154,
21      "duration_s": 0.4,
22      "finish": "stop",
23      "prompt_tokens": 19,
24      "reused": 0,
25      "output_tokens": 2,
26      "prompt_total": 19,
27      "prompt_read": 19,
28      "reasoning_recoveries": 0,
29      "reasoning_repeat_coverage": 0.0,
30      "engine_generated": 2,
31      "prompt_ms": 263.7,
32      "decode_ms": 106.4,
33      "decode_tok_s": 18.8,
34      "hit_rate": 0.596,
35      "pcie_share": 0.0,
36      "ram_blobs": 0,
37      "file_blobs": 0,
38      "file_mb": 1054.8,
39      "drafts_offered": 3,
40      "drafts_accepted": 3
41    },
42    "memory": {
43      "peak_host_ram_used_gib": 32.49,
44      "peak_gpu_memory_used_mib": 23143
45    },
46    "text": "READY"
47  },
48  {
49    "label": "tokens-4096-run-1",
50    "status": "ok",
51    "expected_prompt_tokens": 4096,
52    "request_sha256": "5d94c652067354bbe72930d2bdad3886564f08cf2546b32411af02d33ad3ce05",
53    "client_ttft_s": 2.301761800015811,
54    "client_elapsed_s": 4.3289522000122815,
55    "finish_reason": "length",
56    "usage": {
57      "prompt_tokens": 4096,
58      "completion_tokens": 256,
59      "total_tokens": 4352,
60      "prompt_tokens_details": {
61        "cached_tokens": 0
62      }
63    },
64    "engine": {
65      "projection": null,
66      "time": 1791413436.9593554,
67      "duration_s": 4.3,
68      "finish": "length",
69      "prompt_tokens": 4096,
70      "reused": 0,
71      "output_tokens": 256,
72      "prompt_total": 4096,
73      "prompt_read": 4096,
74      "reasoning_recoveries": 0,
75      "reasoning_repeat_coverage": 0.0,
76      "engine_generated": 256,
77      "prompt_ms": 2268.5,
78      "decode_ms": 2039.3,
79      "decode_tok_s": 125.5,
80      "hit_rate": 0.902,
81      "pcie_share": 0.0,
82      "ram_blobs": 0,
83      "file_blobs": 0,
84      "file_mb": 18065.2,
85      "drafts_offered": 186,
86      "drafts_accepted": 148
87    },
88    "memory": {
89      "peak_host_ram_used_gib": 49.68,
90      "peak_gpu_memory_used_mib": 23215
91    },
92    "text": "This synthetic Python module presents a fascinating case study in algorithmic redundancy, modular arithmetic, and the pitfalls of manual code generation. At first glance, the code appears to be a collection of 113 distinct functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer index. However, upon closer inspection, these functions are not unique algorithms but rather instances of a single, generalized linear transformation applied to an input value.\n\n### The Core Mathematical Pattern\n\nEvery function in the module follows the exact same structural template:\n```python\ndef task_N(value: int) -> int:\n    return (value * A + B) % M\n```\nWhere:\n- `M` is the constant modulus `100003`.\n- `A` is the multiplier.\n- `B` is the additive constant.\n\nFor the first 97 functions (`task_00000` to `task_00096`), the pattern is strictly linear with respect to the index `N`:\n- Multiplier `A = N + 1`\n- Additive constant `B = N`\n\nFor example:\n- `task_00000"
93  },
94  {
95    "label": "tokens-4096-run-2",
96    "status": "ok",
97    "expected_prompt_tokens": 4096,
98    "request_sha256": "8da8a04e70e4d916f6630729082bdfb9d6ebbb47117aad60bc0541bce198a213",
99    "client_ttft_s": 2.1244121000054292,
100    "client_elapsed_s": 4.082541699986905,
101    "finish_reason": "length",
102    "usage": {
103      "prompt_tokens": 4096,
104      "completion_tokens": 256,
105      "total_tokens": 4352,
106      "prompt_tokens_details": {
107        "cached_tokens": 0
108      }
109    },
110    "engine": {
111      "projection": null,
112      "time": 1791413441.9287343,
113      "duration_s": 3.9,
114      "finish": "length",
115      "prompt_tokens": 4096,
116      "reused": 0,
117      "output_tokens": 256,
118      "prompt_total": 4096,
119      "prompt_read": 4096,
120      "reasoning_recoveries": 0,
121      "reasoning_repeat_coverage": 0.0,
122      "engine_generated": 256,
123      "prompt_ms": 2091.3,
124      "decode_ms": 1853.9,
125      "decode_tok_s": 138.1,
126      "hit_rate": 0.964,
127      "pcie_share": 0.0,
128      "ram_blobs": 0,
129      "file_blobs": 0,
130      "file_mb": 7397.2,
131      "drafts_offered": 170,
132      "drafts_accepted": 135
133    },
134    "memory": {
135      "peak_host_ram_used_gib": 49.97,
136      "peak_gpu_memory_used_mib": 23215
137    },
138    "text": "This synthetic Python module presents a fascinating case study in algorithmic redundancy, modular arithmetic, and the pitfalls of manual code generation. At first glance, the code appears to be a collection of 113 distinct functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer index. However, a deeper analysis reveals that these functions are not unique algorithms but rather instances of a single, generalized linear transformation applied to different parameters. This review will dissect the mathematical structure, discuss the implications for software engineering, and propose a more maintainable approach.\n\n### Mathematical Structure and Deterministic Transforms\n\nThe core logic of every function in the module follows the pattern:\n`return (value * multiplier + offset) % 100003`\n\nThis is a classic **affine transformation** over the integers, specifically within the ring of integers modulo $M$, where $M = 100003$. The number 100003 is a prime number, which is significant in cryptography and number theory because it ensures that the multiplicative group modulo $M$ is well-behaved. In this context, the transformation maps an input integer `value` to a new integer within the range $["
139  },
140  {
141    "label": "tokens-4096-run-3",
142    "status": "ok",
143    "expected_prompt_tokens": 4096,
144    "request_sha256": "946079edb58e764050805886156dc8f877cc29e1ca8d01c84e9a1e7917d49492",
145    "client_ttft_s": 2.133382400003029,
146    "client_elapsed_s": 3.8481876000005286,
147    "finish_reason": "length",
148    "usage": {
149      "prompt_tokens": 4096,
150      "completion_tokens": 256,
151      "total_tokens": 4352,
152      "prompt_tokens_details": {
153        "cached_tokens": 0
154      }
155    },
156    "engine": {
157      "projection": null,
158      "time": 1791413446.6427827,
159      "duration_s": 3.8,
160      "finish": "length",
161      "prompt_tokens": 4096,
162      "reused": 0,
163      "output_tokens": 256,
164      "prompt_total": 4096,
165      "prompt_read": 4096,
166      "reasoning_recoveries": 0,
167      "reasoning_repeat_coverage": 0.0,
168      "engine_generated": 256,
169      "prompt_ms": 2100.8,
170      "decode_ms": 1723.9,
171      "decode_tok_s": 148.5,
172      "hit_rate": 0.97,
173      "pcie_share": 0.0,
174      "ram_blobs": 0,
175      "file_blobs": 0,
176      "file_mb": 6200.1,
177      "drafts_offered": 181,
178      "drafts_accepted": 144
179    },
180    "memory": {
181      "peak_host_ram_used_gib": 50.01,
182      "peak_gpu_memory_used_mib": 23215
183    },
184    "text": "This synthetic Python module presents a fascinating case study in algorithmic redundancy, mathematical patterns, and software maintainability. At first glance, the code appears to be a collection of 113 distinct functions, each named `task_XXXXX`, where `XXXXX` is a zero-padded integer index. However, a deeper analysis reveals that these functions are not unique algorithms but rather instances of a single, generalized mathematical formula instantiated with specific parameters. This observation forms the core of the critique regarding the module's design, efficiency, and purpose.\n\n### The Mathematical Core: Deterministic Linear Transforms\n\nEvery function in the module follows the exact same structural pattern:\n```python\ndef task_N(value: int) -> int:\n    return (value * A + B) % M\n```\nWhere:\n- `value` is the input integer.\n- `A` is the multiplier.\n- `B` is the additive constant.\n- `M` is the modulus, which is consistently `100003` across all functions.\n\nThe modulus `100003` is significant. It is a prime number. In modular arithmetic, working with a prime modulus ensures that the field of integers modulo `M`"
185  },
186  {
187    "label": "tokens-32768-run-1",
188    "status": "ok",
189    "expected_prompt_tokens": 32768,
190    "request_sha256": "e37cfc2ab9867d91130927440df24a57255a736b8d0d829d07d828e22e3de572",
191    "client_ttft_s": 11.329635700007202,
192    "client_elapsed_s": 13.145479600003455,
193    "finish_reason": "length",
194    "usage": {
195      "prompt_tokens": 32768,
196      "completion_tokens": 256,
197      "total_tokens": 33024,
198      "prompt_tokens_details": {
199        "cached_tokens": 0
200      }
201    },
202    "engine": {
203      "projection": null,
204      "time": 1791413451.689636,
205      "duration_s": 13.1,
206      "finish": "length",
207      "prompt_tokens": 32768,
208      "reused": 0,
209      "output_tokens": 256,
210      "prompt_total": 32768,
211      "prompt_read": 32768,
212      "reasoning_recoveries": 0,
213      "reasoning_repeat_coverage": 0.0,
214      "engine_generated": 256,
215      "prompt_ms": 11272.9,
216      "decode_ms": 1827.0,
217      "decode_tok_s": 140.1,
218      "hit_rate": 0.968,
219      "pcie_share": 0.0,
220      "ram_blobs": 0,
221      "file_blobs": 0,
222      "file_mb": 6148.9,
223      "drafts_offered": 169,
224      "drafts_accepted": 143
225    },
226    "memory": {
227      "peak_host_ram_used_gib": 50.13,
228      "peak_gpu_memory_used_mib": 23215
229    },
230    "text": "This synthetic Python module presents a highly repetitive, yet structurally coherent, collection of functions designed to perform deterministic integer transformations. At its core, the module defines a series of functions named `task_00000` through `task_00888` (and potentially beyond, as the snippet cuts off), each adhering to a strict mathematical pattern. The code serves as a benchmark for evaluating how automated systems handle large-scale, repetitive code generation, as well as a case study in the trade-offs between explicit definition and algorithmic abstraction.\n\n### Mathematical Structure and Deterministic Transforms\n\nThe fundamental operation in every function is a linear transformation followed by a modulo operation. The general form is:\n\n$$ f_i(x) = (x \\cdot m_i + c_i) \\pmod{100003} $$\n\nWhere:\n*   $x$ is the input integer (`value`).\n*   $m_i$ is the multiplier for task $i$.\n*   $c_i$ is the additive constant for task $i$.\n*   $100003$ is the modulus, which is a prime number.\n\nThe choice of $100003$ as the modulus is"
231  },
232  {
233    "label": "tokens-32768-run-2",
234    "status": "ok",
235    "expected_prompt_tokens": 32768,
236    "request_sha256": "ed2dfaa11aecad9f4563f33bb5f5d4b8704486508700b8fa572722cc1225ee26",
237    "client_ttft_s": 11.426643400016474,
238    "client_elapsed_s": 13.176572700001998,
239    "finish_reason": "length",
240    "usage": {
241      "prompt_tokens": 32768,
242      "completion_tokens": 256,
243      "total_tokens": 33024,
244      "prompt_tokens_details": {
245        "cached_tokens": 0
246      }
247    },
248    "engine": {
249      "projection": null,
250      "time": 1791413466.0680475,
251      "duration_s": 13.1,
252      "finish": "length",
253      "prompt_tokens": 32768,
254      "reused": 0,
255      "output_tokens": 256,
256      "prompt_total": 32768,
257      "prompt_read": 32768,
258      "reasoning_recoveries": 0,
259      "reasoning_repeat_coverage": 0.0,
260      "engine_generated": 256,
261      "prompt_ms": 11342.6,
262      "decode_ms": 1761.6,
263      "decode_tok_s": 145.3,
264      "hit_rate": 0.981,
265      "pcie_share": 0.0,
266      "ram_blobs": 0,
267      "file_blobs": 0,
268      "file_mb": 3753.2,
269      "drafts_offered": 170,
270      "drafts_accepted": 145
271    },
272    "memory": {
273      "peak_host_ram_used_gib": 50.64,
274      "peak_gpu_memory_used_mib": 23215
275    },
276    "text": "This synthetic Python module presents a highly repetitive, yet structurally coherent, collection of functions designed to perform deterministic integer transformations. At its core, the module defines a series of functions named `task_00000` through `task_00888` (and potentially beyond, as the snippet cuts off), each adhering to a strict mathematical pattern. The code serves as a benchmark for evaluating how automated systems handle large-scale, repetitive code generation, static analysis, and execution performance.\n\n### Mathematical Structure and Deterministic Transforms\n\nThe fundamental operation in every function is a linear affine transformation followed by a modulo operation. The general form is:\n\n$$ f(x) = (x \\cdot a + b) \\pmod{100003} $$\n\nWhere:\n- $x$ is the input integer (`value`).\n- $a$ is the multiplier coefficient.\n- $b$ is the additive constant.\n- $100003$ is the modulus, which is a prime number.\n\nThe choice of $100003$ as the modulus is significant. In modular arithmetic, using a prime modulus ensures that the ring $\\mathbb{Z}_{100003"
277  },
278  {
279    "label": "tokens-32768-run-3",
280    "status": "ok",
281    "expected_prompt_tokens": 32768,
282    "request_sha256": "2a3c7342622e80c3cd8b37e062f0a2f64640c119ece8cccbf168639041eac079",
283    "client_ttft_s": 11.384466100018471,
284    "client_elapsed_s": 13.145414400001755,
285    "finish_reason": "length",
286    "usage": {
287      "prompt_tokens": 32768,
288      "completion_tokens": 256,
289      "total_tokens": 33024,
290      "prompt_tokens_details": {
291        "cached_tokens": 0
292      }
293    },
294    "engine": {
295      "projection": null,
296      "time": 1791413480.5209217,
297      "duration_s": 13.1,
298      "finish": "length",
299      "prompt_tokens": 32768,
300      "reused": 0,
301      "output_tokens": 256,
302      "prompt_total": 32768,
303      "prompt_read": 32768,
304      "reasoning_recoveries": 0,
305      "reasoning_repeat_coverage": 0.0,
306      "engine_generated": 256,
307      "prompt_ms": 11325.6,
308      "decode_ms": 1772.5,
309      "decode_tok_s": 144.4,
310      "hit_rate": 0.98,
311      "pcie_share": 0.0,
312      "ram_blobs": 0,
313      "file_blobs": 0,
314      "file_mb": 3970.3,
315      "drafts_offered": 168,
316      "drafts_accepted": 140
317    },
318    "memory": {
319      "peak_host_ram_used_gib": 51.11,
320      "peak_gpu_memory_used_mib": 23215
321    },
322    "text": "This synthetic Python module presents a highly repetitive, yet structurally coherent, collection of functions designed to perform deterministic integer transformations. At its core, the module defines a series of functions named `task_00000` through `task_00888` (and potentially beyond, as the snippet cuts off), each accepting a single integer argument `value` and returning an integer result. The underlying logic is uniform across all functions: it applies a linear transformation to the input and then reduces the result modulo a fixed prime number, 100003.\n\n### The Mathematical Core: Linear Transformation and Modulo Arithmetic\n\nThe fundamental operation in every function is `(value * multiplier + offset) % 100003`. This is a classic example of an affine transformation in modular arithmetic. In mathematics, an affine transformation is a linear transformation followed by a translation. Here, the \"linear\" part is the multiplication by a specific coefficient, and the \"translation\" is the addition of a constant offset.\n\nThe choice of the modulus, 100003, is significant. 100003 is a prime number. In modular arithmetic, working with a prime modulus ensures that the ring of integers modulo $"
323  },
324  {
325    "label": "tokens-128000-run-1",
326    "status": "ok",
327    "expected_prompt_tokens": 128000,
328    "request_sha256": "3235aac3f934cf1d889c25973ca172b355509dc2522fdfb463fbefe979a9075d",
329    "client_ttft_s": 45.88402260001749,
330    "client_elapsed_s": 47.82689720002236,
331    "finish_reason": "length",
332    "usage": {
333      "prompt_tokens": 128000,
334      "completion_tokens": 256,
335      "total_tokens": 128256,
336      "prompt_tokens_details": {
337        "cached_tokens": 0
338      }
339    },
340    "engine": {
341      "projection": null,
342      "time": 1791413497.4171362,
343      "duration_s": 47.7,
344      "finish": "length",
345      "prompt_tokens": 128000,
346      "reused": 0,
347      "output_tokens": 256,
348      "prompt_total": 128000,
349      "prompt_read": 128000,
350      "reasoning_recoveries": 0,
351      "reasoning_repeat_coverage": 0.0,
352      "engine_generated": 256,
353      "prompt_ms": 45696.8,
354      "decode_ms": 1954.5,
355      "decode_tok_s": 131.0,
356      "hit_rate": 0.984,
357      "pcie_share": 0.0,
358      "ram_blobs": 0,
359      "file_blobs": 0,
360      "file_mb": 3149.1,
361      "drafts_offered": 165,
362      "drafts_accepted": 128
363    },
364    "memory": {
365      "peak_host_ram_used_gib": 51.54,
366      "peak_gpu_memory_used_mib": 23215
367    },
368    "text": "This synthetic Python module presents a highly repetitive, yet structurally coherent, collection of functions designed to perform deterministic integer transformations. At its core, the module defines a series of functions named `task_XXXXX`, where `XXXXX` is a sequential integer identifier. Each function accepts a single integer argument `value` and returns an integer result derived from a linear transformation followed by a modular reduction.\n\n### The Mathematical Core: Linear Transformation and Modulo Arithmetic\n\nThe fundamental operation in every function is identical in structure: `(value * multiplier + offset) % modulus`. Here, the modulus is consistently set to `100003`. This specific number is significant because it is a prime number. In modular arithmetic, using a prime modulus ensures that the ring of integers modulo `p` is a field, which has desirable properties for cryptographic applications and error-correcting codes. However, in this synthetic context, the choice of `100003` likely serves as a benchmark to test the performance of modulo operations on large integers or to ensure results stay within a specific range.\n\nThe transformation is an affine map. For any given function `task_N`, the multiplier and offset are determined by the function's index. For the first 97 functions (`"
369  },
370  {
371    "label": "tokens-128000-run-2",
372    "status": "ok",
373    "expected_prompt_tokens": 128000,
374    "request_sha256": "5f4b8bc9f0afc7765320abd89960c0938e0d7cf5974e962fdbd0613fef31c8d4",
375    "client_ttft_s": 46.246270400006324,
376    "client_elapsed_s": 48.53999679998378,
377    "finish_reason": "length",
378    "usage": {
379      "prompt_tokens": 128000,
380      "completion_tokens": 256,
381      "total_tokens": 128256,
382      "prompt_tokens_details": {
383        "cached_tokens": 0
384      }
385    },
386    "engine": {
387      "projection": null,
388      "time": 1791413549.0017734,
389      "duration_s": 48.1,
390      "finish": "length",
391      "prompt_tokens": 128000,
392      "reused": 0,
393      "output_tokens": 256,
394      "prompt_total": 128000,
395      "prompt_read": 128000,
396      "reasoning_recoveries": 0,
397      "reasoning_repeat_coverage": 0.0,
398      "engine_generated": 256,
399      "prompt_ms": 46041.8,
400      "decode_ms": 2078.2,
401      "decode_tok_s": 123.2,
402      "hit_rate": 0.987,
403      "pcie_share": 0.0,
404      "ram_blobs": 0,
405      "file_blobs": 0,
406      "file_mb": 2583.7,
407      "drafts_offered": 163,
408      "drafts_accepted": 118
409    },
410    "memory": {
411      "peak_host_ram_used_gib": 53.28,
412      "peak_gpu_memory_used_mib": 23215
413    },
414    "text": "This synthetic Python module presents a highly repetitive, yet structurally coherent, collection of functions designed to perform deterministic integer transformations. At its core, the module defines a series of functions named `task_XXXXX`, where `XXXXX` is a sequential integer identifier. Each function accepts a single integer argument `value` and returns an integer result derived from a linear transformation followed by a modular reduction.\n\n### The Mathematical Core: Linear Transformation and Modulo Arithmetic\n\nThe fundamental operation in every function is identical in structure: `(value * multiplier + offset) % modulus`. Here, the modulus is consistently set to `100003`. This specific number is significant because it is a prime number. In modular arithmetic, using a prime modulus ensures that the ring of integers modulo `p` is a field, which has desirable properties for cryptographic applications and error-correcting codes. However, in this synthetic context, the choice of `100003` likely serves as a fixed \"hash space\" or a constraint to keep the output within a specific range, preventing integer overflow in languages with fixed-width integers (though Python handles arbitrary precision integers, the modulo operation still bounds the result).\n\nThe transformation is an affine map: $f(x) = ax +"
415  },
416  {
417    "label": "tokens-128000-run-3",
418    "status": "ok",
419    "expected_prompt_tokens": 128000,
420    "request_sha256": "5c3fb71db9f9f44765f28389d1032f2c8b6687d1bf5ca6f33aeb924072cfa6e4",
421    "client_ttft_s": 46.70187610000721,
422    "client_elapsed_s": 48.513164699979825,
423    "finish_reason": "length",
424    "usage": {
425      "prompt_tokens": 128000,
426      "completion_tokens": 256,
427      "total_tokens": 128256,
428      "prompt_tokens_details": {
429        "cached_tokens": 0
430      }
431    },
432    "engine": {
433      "projection": null,
434      "time": 1791413601.2886786,
435      "duration_s": 48.3,
436      "finish": "length",
437      "prompt_tokens": 128000,
438      "reused": 0,
439      "output_tokens": 256,
440      "prompt_total": 128000,
441      "prompt_read": 128000,
442      "reasoning_recoveries": 0,
443      "reasoning_repeat_coverage": 0.0,
444      "engine_generated": 256,
445      "prompt_ms": 46498.9,
446      "decode_ms": 1823.0,
447      "decode_tok_s": 140.4,
448      "hit_rate": 0.977,
449      "pcie_share": 0.0,
450      "ram_blobs": 0,
451      "file_blobs": 0,
452      "file_mb": 4380.8,
453      "drafts_offered": 167,
454      "drafts_accepted": 144
455    },
456    "memory": {
457      "peak_host_ram_used_gib": 54.97,
458      "peak_gpu_memory_used_mib": 23215
459    },
460    "text": "This synthetic Python module presents a highly repetitive, yet structurally coherent, collection of functions designed to perform deterministic integer transformations. At its core, the module defines a series of functions named `task_XXXXX`, where `XXXXX` is a sequential integer identifier. Each function accepts a single integer argument `value` and returns an integer result derived from a linear transformation followed by a modulo operation.\n\n### 1. The Mathematical Core: Linear Transformation and Modulo Arithmetic\n\nThe fundamental operation in every function is identical in structure:\n```python\nreturn (value * multiplier + offset) % 100003\n```\n\nThis is a classic **affine transformation** (or linear congruential generator step) applied to an integer. The transformation consists of two components:\n1.  **Multiplication:** The input `value` is scaled by a `multiplier`.\n2.  **Addition:** A constant `offset` is added to the scaled value.\n3.  **Modulo:** The result is constrained to the range `[0, 100002]` by taking the remainder when divided by `100003`.\n\nThe modulus `100003` is a prime"
461  }
462]