okami.mom/strata

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

Niko1221Merge branch 'f-140' into f-140-j0fff115df

main
907 B27 linesraw
1[fib run0] prompt_n=23 cache_n=0 prompt 50.4 tok/s | decode 112 tok 58.6 tok/s | drafts 84/88 | wall 2.4s | finish stop
2[fib run1] prompt_n=7 cache_n=16 prompt 81.7 tok/s | decode 112 tok 61.3 tok/s | drafts 84/89 | wall 1.9s | finish stop
3```python
4def fibonacci(n):
5    """Return the n-th Fibonacci number (0-indexed)."""
6    if n < 0:
7        raise ValueError("n must be a non-negative integer")
8    if n == 0:
9        return 0
10    if n == 1:
11        return 1
12    a, b = 0, 1
13    for _ in range(2, n + 1):
14        a, b = b, a + b
15    return b
16```
17fib tests: PASS
18[gcd] prompt_n=37 cache_n=0 prompt 73.3 tok/s | decode 32 tok 61.8 tok/s | drafts 23/24 | wall 1.0s | finish stop
19```python
20def gcd(a, b):
21    while b:
22        a, b = b, a % b
23    return a
24```
25gcd tests: PASS
26[known] prompt_n=42 cache_n=0 prompt 71.1 tok/s | decode 4 tok 25.4 tok/s | drafts 4/6 | wall 0.7s | finish stop
27385 (expected 385)