mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 21:04:21 +01:00
1,045 lines, one door, and the only way to find anything was to scroll. It is 509 now: what this is, the seven targets with their measured headline, how to install it, what speed and quality to expect, the targets and the switch, the tools, the cockpit in short, and an index table naming every other file and the question it answers. Seven sections moved out whole, each to its own file under docs/, each leaving a summary and a link behind: the 1M context mode, the flash lane, the cockpit tour, operations and upgrades, the opencode integration, the GB10 memory trap in full, and where each lane stands against upstream. The split was checked line by line against the file it came from. Of 1,045 lines, the only ones with no verbatim equivalent in the new README or in one of those files are the 32 rewritten on purpose, and each of those is a correction: - the headline said 65 tok/s for the 27B lane, which is the v1.9 figure. v1.14.0 measured 71.4 on the release image this lane has served since 2026-09-17, in the same campaign that measured 69.8 on the image it replaced. Title, target table and speed section now say 71.4 and name the campaign behind each number. - the memory section read as though the installed fraction were 0.50, which is the native-mode and ./run.sh value. The 1m mode has been the default since v1.12.1 and runs 0.76. Both are stated now, each with its mode. - the KV pool comparison published three boots against two. The engine journal has eleven for that day, six and five: 517,184 to 566,016 against 482,560 to 510,592. The ranges still do not overlap, by 6,592 tokens at their closest, but the gap on the means is 9.6% and not the 6% published from the subset. README, BENCHMARKS and the v1.14.1 entry all carry the full set now. - two citations pointed at text that is not there: the README claimed a flat-memory result was "quoted elsewhere in this README" when it lives in BENCHMARKS.md, and keepalive-proxy.py justified its 92% usable share by quoting a README line about a 178,560-token pool that no longer exists anywhere. Both now name where the number actually is. Neither was caused by this release; both survived because nothing checks a quoted section title. - the flash lane's quality is in the README as measured rather than as adjectives: GSM8K 97.41% over all 1,319 questions, MMLU 500 at 90.8%, HumanEval 164 pass@1 at 95.73%, tool calling 15/15 with reasoning off and on, needle 2/2 at 120K and 200K, conc-check 40/40 serial and 80/80 at four concurrent. evals/ ships the two drivers, because two of those numbers could not be reproduced from this repo. The image's run_eval --eval-name mmlu shells out to an sgl-eval binary it does not ship, and its HumanEval path needs a package that is not there and then dies in os.fork against the image's filelock. Six gates hold what makes them work, with a stub sglang and no network: the score line a caller greps, the dataset MMLU is measured against, spawn rather than fork, and one sample per task instead of the harness default of five, which at temperature 0 is the same answer five times. ARCHITECTURE.md gains the two directories it did not describe and tools-check.py in its table of instruments. TESTING.md gains a 2026-09-19 column counted mechanically on both commits: 34 test files against 20, 587 test functions against 442, 55 CI steps against 38. docs/flash-lane.md records the one boot in thirteen that died at CUDA graph capture on 2026-09-18, because a failure that costs twelve minutes and explains nothing belongs written down even when it happened once. Local CI: 56 steps, 55 ok, the socket gate failing on this serving box because other processes cycle ephemeral listeners during the suite, which is the case its own message describes. Both suites green: 223 and 370. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
44 lines
1.5 KiB
Python
44 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
# Drives the MMLU eval that ships inside the SGLang image.
|
|
#
|
|
# Why this file exists: in the image this lane serves, `python3 -m
|
|
# sglang.test.run_eval --eval-name mmlu` no longer runs anything itself. It
|
|
# shells out to an external `sgl-eval` binary (sgl-project/sgl-eval, first
|
|
# published on PyPI 2026-09-12) that the image does not ship, so it dies with
|
|
# FileNotFoundError before touching the server. Measured 2026-09-18.
|
|
#
|
|
# The MMLUEval class is still vendored in the image, so this calls it directly
|
|
# with the same dataset and the same sampler the old path used.
|
|
# Usage: see evals/README.md (it runs inside the serving image, not on the host).
|
|
import sys
|
|
import time
|
|
|
|
from sglang.test.simple_eval_common import ChatCompletionSampler
|
|
from sglang.test.simple_eval_mmlu import MMLUEval
|
|
|
|
URL = "https://openaipublic.blob.core.windows.net/simple-evals/mmlu.csv"
|
|
|
|
model = sys.argv[1]
|
|
num_examples = int(sys.argv[2])
|
|
num_threads = int(sys.argv[3])
|
|
base_url = sys.argv[4] if len(sys.argv) > 4 else "http://127.0.0.1:30000/v1"
|
|
|
|
sampler = ChatCompletionSampler(
|
|
model=model,
|
|
max_tokens=2048,
|
|
top_p=1.0,
|
|
base_url=base_url,
|
|
temperature=0.0,
|
|
record_meta_info=True,
|
|
)
|
|
eval_obj = MMLUEval(URL, num_examples, num_threads)
|
|
|
|
tic = time.perf_counter()
|
|
result = eval_obj(sampler)
|
|
latency = time.perf_counter() - tic
|
|
|
|
print(f"Total latency: {latency:.3f} s")
|
|
print(f"examples: {num_examples}, threads: {num_threads}")
|
|
print(f"'score': {result.score}")
|
|
print(f"metrics: {dict(result.metrics or {})}")
|