mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
00aa1ee4e2228efe458ebfe6b964787f8ab40d21
13
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
00aa1ee4e2 |
Image tab: drive the lane from the page, and show what it is doing
Answers two things the page did not: how to start the lane without a terminal, and what is happening during the minute it loads and the 38 s it generates. DRIVING IT. qwen38-image.service was in neither SERVING_UNITS nor the sudoers allowlist, so the action layer refused it by closed enum and sudo -n would have failed anyway, while the tab's own chip sent you to the Engines tab, which rendered no control for it. Three levels of nothing. The unit is now in both lists and the tab has Start and Stop, through the same modal, job strip and allowlist as every other unit. The modal says what Conflicts= is about to do before it does it. SHOWING IT. Both waits are read off the engine's own log, which the cockpit can now journal. Startup is eight named milestones with the share of a boot each one had on two measured boots, so the bar says "loading the 13.3 GB DiT" rather than spinning. A request names its stage live (encoding, denoising, decoding through the VAE); inside the denoise the bar is this page's clock against the measured cost and says "about", because no live per-step number exists to report: tqdm writes with carriage returns, journald only breaks on newlines, /metrics is not served and /stats is empty. The output panel holds a frame at the requested aspect ratio instead of a paragraph. ONE AT A TIME, which is not a preference. The diffusion scheduler has no admission cap; batching_max_size is about batching and is already 1. Measured on the reference box: one generation holds 31.2 GB and eight in a row hold exactly that, flat, but two at once held 90.5 GB of its 121.6 and the engine then stopped answering entirely, with a direct curl timing out and nothing in its log. Two browser tabs are enough. The cockpit now refuses a second request with HTTP 409 in under a millisecond and says why, the tab turns its own button off when the lane is busy with somebody else's request, and the lock is released on every exit path so one error cannot wedge the route. Twelve findings from an adversarial review, all fixed. The three that mattered: the installer's smoke test could leave the box serving nothing, because it stops the text lane and every failure exited through die() before restarting it, so that now lives in a trap; a routine ./install.sh re-run on a box that has the lane stopped the engine it had just verified to redo the smoke generation, so that now passes --no-smoke unless the lane was explicitly asked for; and imgSync() dropped the availability term, so typing one character re-enabled Generate on a stopped lane. Also: the copyable curl carried an Authorization header this lane cannot check and addressed the browser's own host for a lane bound to loopback, image_base() hardcoded 127.0.0.1 while the installer accepts IMAGE_BIND, the raised 40 MB POST cap buffered before authenticating, the reference count raced across two file pickers, the download named PNG bytes after whatever the format select said at click time, uninstall.sh did not read WorkingDirectory from the unit, and --with-image was accepted with --no-start and silently ignored. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
0f7eb3fa63 |
Add the Qwen-Image 2.1 lane: install, serve, and drive it from the cockpit
Text to image, image editing with up to ten references, and the native RGBA this
model is built for, served by SGLang Diffusion on the same box as the LLM lane.
Opt-in with ./install.sh --with-image, which the one-liner passes through.
One engine at a time, said in systemd rather than in a wrapper someone can
bypass: the checkpoint is 31 GB of weights and a request peaks at 34.8 GB, so
the unit carries Conflicts= against all three LLM lanes. It is not enabled at
boot, because a box that reboots should come back the way its owner left it.
A venv and not docker, because the cookbook says so for this model ("no
published Docker image is verified") and Qwen-Image 2.1 is in no SGLang release.
The released wheel goes in first all the same: it carries sglang-kernel built
for aarch64, which a source tree does not build, and source-first leaves a
runtime with no native kernels that dies on the first request. The pinned
source then overlays it with --no-deps, because re-resolving pulls a
transformers that breaks the encoder this model needs.
Everything the tab claims was measured against this lane rather than copied:
1024x1024 at 40 steps in 38.2 s, 512x512 in 9.0 s, an edit with one reference
in 44.6 s, ten references in 69.6 s, a transparent generation that comes back
with 68% of its pixels genuinely transparent, and the same seed twice giving
byte-identical output.
Four refusals the cockpit makes so a client does not have to read them out of a
500 with an empty body:
- width and height must be multiples of 32; 1328x1328 answers HTTP 500 and
says why only in the engine's own log;
- an output format must always be sent. Left out, the API falls back to JPEG
when the background is not transparent, this model returns RGBA for
everything it makes, and PIL refuses to write RGBA as JPEG, so the plainest
possible request fails for that alone;
- CFG needs a scale above 1 AND a negative prompt (schedule_batch.py:399).
Either alone is ignored byte for byte: three requests differing only in
true_cfg_scale produced the same SHA-256;
- an edit sends its size as `size`, not width/height, which /edits does not
have. Sent the other way a request for 512x512 came back 1024x1024.
The lane has no API key, and that is why it is loopback. The diffusion runtime
is a different argument parser from the LLM one and has neither --api-key nor
--sleep-on-idle; passing either kills the unit at startup. `sglang serve --help`
lists both, because with no resolvable diffusion model it prints the LLM parser,
so the help text is not the evidence. The installer's own smoke test found this
on the first install. The cockpit is the authenticated door in front of it.
Editing redraws the whole picture rather than patching it. The edit asked for
does happen, and the rest comes back with about twice the fine detail of the
source: 2.16x Laplacian energy across 22 cases, every reference encoding, every
prompt, 20 to 80 steps, every guidance setting and every flow_shift, including
an edit that asks for nothing to change. Generation never does it. The tab says
so next to the button.
49 tests. The installer gates hold the wheel-before-source order, the full
commit pin, the disk check and a smoke test that reads a PNG header rather than
trusting a status code; the unit gates hold Conflicts=, the loopback bind and
the absence of the two flags that kill it; the tab gates hold the model's own
defaults, the seven aspect ratios Qwen publishes, every size being a multiple of
32, and that Reset restores every field it offers.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
8567452ac1 |
install: the engine binds localhost by default (v1.17.0)
A changed default, and the reason it could change at all. The engine listened on every interface; seven days of journal on this box put 581,479 requests at 100% from 127.0.0.1, while the machine was reached from a laptop and a phone on the cockpit port alone. An open port nobody uses would be an ordinary waste. This one is the port SGLang dies on rather than refuses (sglang#40076 and sglang#31597, both unfixed upstream, both refused at the proxy since v1.15.0), so leaving it open left a door beside the one with the lock. Nothing is lost by closing it, which is the only honest reason to move a default: the keepalive proxy is a full pass-through, every route and both dialects, verified route by route before this was decided. A client that pointed at :30000 from another machine points at :30001 and gets the guards with it. The README's own OpenAI and Anthropic lines move with it, because a default that makes the documentation wrong is two bugs, not one. The proxy's default does not move. It is the door clients are told to use. A box that deliberately put its engine on the network keeps it: convergence holds in both directions, so nobody loses a remote client to an update they did not read about. ENGINE_BIND=0.0.0.0 is the way back, and the same variable set to 127.0.0.1 is how an older box adopts the new default. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
3744c4bcd0 |
cockpit: the box says a newer version exists, instead of waiting to be asked
The release check has been in this repo since v1.5, printing its answer in a line of the Models tab that appears after a button press. It therefore reached the people who already suspected there was news, and an install could sit several releases behind a fix with nothing on screen to say so. A collector asks GitHub's releases endpoint every six hours and hands the answer to the banner strip, where this cockpit already says the things you did not go looking for, with the command that installs the update. The Setup tab carries the same line permanently. The other staleness a live cockpit can have gets a banner too: a git pull under a running process leaves new HTML served against old Python, and the banner names the files that moved and the command that fixes it. Two decisions keep it from becoming noise. Versions compare as numbers, because v1.9.0 sorts after v1.15.0 as text and would announce an update eleven releases old. And it speaks only when the published version is strictly newer than the installed one: this repo is developed on a box that runs it, and that box is regularly ahead of the newest tag. It is the one outbound request this stack makes that the operator did not type, so it is named in SECURITY.md, carries nothing but the cockpit's version in a User-Agent, backs off rather than retries when it fails, reads "latest release unknown" on a box with no network, and stops entirely on COCKPIT_UPDATE_CHECK=0. Nine assertions in a headless browser hold it, including the one that matters most: an up-to-date box shows nothing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
63a49ccfa9 |
merge main: the docs reorganisation, and this branch follows it
main turned the README into a 509-line entry point with seven sections moved
to docs/, added evals/ and fixed the cockpit's fit verdict. This branch was
written against the README that preceded it, so the merge is not only textual:
* the System One section moves to docs/systemone.md, the way the other seven
did, leaving the summary, the one call that shows it and the headline
numbers in the README, plus a row in the index table
* the proxy's new refusals were landed by git in the middle of the GB10
memory trap, which is where their old neighbour used to be; they belong
with the proxy, which now lives in docs/clients.md
* the cockpit's tab table gains System One, Image and Video, and the three
places that said "eight tabs" no longer do
* docs/cockpit.md gains the System One tab's own section
* evals/ is NEW on main, not removed by it: the CI lint and compile lines
keep it and add this branch's two tools
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
||
|
|
7eddf6d011 |
systemone: a live conformance matrix, the thinking level the measurement chose, and the numbers behind both
systemone-check.py is the half tests/test_proxy_systemone.py cannot do: a fake engine can script a NaN, and it cannot serve a model. Every shape of the contract against the real lane and graded against the contract, every refusal compared with what api.typesafe.ai answers to the same bytes, every lever on its own proxy, the door at twelve callers, and typed decisions mixed with ordinary chat, plain and streamed, on one engine. 44 of 44. Its own first run failed five checks and all five were the checker being wrong, each settled by asking the hosted API rather than by reading this repo: a Score returns the expected level index, not a fraction (8.45 on a ten-level scale), and three refusals it expected as 422 are 400 there, one with the same message to the character. Those expectations now carry where they came from. SYSTEMONE_THINK_EFFORT now defaults to xhigh instead of inheriting the lane's. This repo's template makes `lean` the default level since v1.13.0, and `lean` opens with "Answer immediately, with no reasoning": the lever whose whole purpose is thinking was telling the model not to, and behaved differently depending on whether the box's template had been patched. Measured as a pair on the same 200 MMLU-Pro rows, same budget, same engine: 80.5% inherited against 84.5% at xhigh, ECE 0.155 against 0.120, Brier 0.159 against 0.128, log loss 0.914 against 0.708, for 9.15 s against 12.54 s and the same input tokens. The accuracy gap alone does not clear significance at that size and is not claimed as one; every measure moves the same way and xhigh lands on the hosted model's own 84.0%. SYSTEMONE_THINK_EFFORT=lane restores the old behaviour. Also measured and written down: the tokenizer and chat template are byte-identical across all seven targets, not the two that had been checked, so the label table holds on every lane this repo can serve; and the 27B lane cold-prefills at 331 tok/s against the flash lane's 2,250, which is the rate SYSTEMONE_TIMEOUT_S was sized on. The System One block's mutation score, 82.7% over 271 points, and the two placeholders the earlier work left in TESTING.md and BENCHMARKS.md are filled. A CI gate refuses a document that still carries one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
719c17b947 |
docs: the README becomes an entry point, and its numbers are checked against the record
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> |
||
|
|
cb7f14b31e |
systemone: measured against the hosted Jev, and the defaults the numbers chose
Byte-identical payloads to this box (27B lane, SGLang 0.5.19) and to api.typesafe.ai (jev-1.13.0, 3.46 million input tokens, 14.5 cents) on six public tasks at pinned revisions. TypeSafe's own 20 public cases, 408 questions with two frontier references: the lane with two option orders 93.5%, the hosted model 93.2%, raw readout 91.3%. BoolQ 3,270: 89.3% against 91.9%, ECE 1.2% against 2.4%. MMLU-Pro 1,000, ekzhang's rows: 62.1% against 83.8%, the gap a single forward pass of a 27B does not close on calculation; with a 1,024-token thinking budget on the first 200 rows, 80.0% against 84.0%, an interval that holds zero, at 8.8 s a question. French: XNLI 71.4% against 78.2%, MMMLU 74.6% against 87.4%. The cookbook's 13 GDPR questions: 50 of 50 both sides, 1.1 s a call alone against the hosted 1.04 s. Three claims of the draft did not survive measurement and are gone. The readout does not repeat to the digit: five identical calls at concurrency 1 moved an uncertain yes/no by a standard deviation of 0.11 (settled ones by under 0.01), because this engine's kernels are not batch-invariant. The warm-first send lost every comparison (13 questions on a never-seen 10,800-token state: 14.9 s with it, 5.4 s without) and is off, SYSTEMONE_WARM_CHARS=0. The option cap of 64 was caution without a number: asked for 255 top_logprobs the build returned 255, so Choice takes Jev's 255. The two-order lever (SYSTEMONE_PERMUTATIONS=2) earned its place on four tasks: it never hurt, it added 2.6 points on BoolQ and 4.0 on MMLU-Pro where position bias lives, and it took the ECE from 4.7% to 1.2%, 8.3% to 4.2% and 9.8% to 4.3%. It stays opt-in: it is an average, not a readout, and the repo ships lossless-by-construction or opt-in. A fitted temperature fixes the rest of the over-confidence on the held-out half without moving one answer. A new lever, SYSTEMONE_THINK_TOKENS, thinks first in the model's native mode and reads the label off the continued turn (a message with reasoning_content would be closed as history by this build's continue_final_message, so the thought is appended as the assistant prefix after the template's own "<think>" opener). The defensive branches, the oversize guard on the longest branch and the invariant that no body ever carries token_ids_logprob are now tested. Also read off the hosted model and written down: its probabilities are sample frequencies, it spends 17 + about 7 output tokens per option, its live answers match its saved public ones at 99.8%, and its calibration does not travel to French (a temperature of 1.70 halves its ECE there). 50 offline tests, proxy coverage 82% (floor 74), the local CI green on every step with a test venv present, ruff F,E9 clean, no em dash in any file. The measurement files live in bench-systemone-data/ (gitignored); the protocol and every table are in BENCHMARKS.md "Typed decisions". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
0d25e1af73 |
README: the Agent capture is now a live session, not an empty panel
Replaces the placeholder shot with a real one: a session mid-answer, the question visible, and the model picker at the bottom naming what is answering, the 27B this same box serves at the lean effort level. The header still carries what matters, that opencode starts at boot with tool calls pre-approved. The tailnet address is masked and a hover tooltip that was open over the Fullscreen button is patched out with a clean band of the same rows. |
||
|
|
1c4e17923d |
README: the Agent tab, which is the part people do not expect
opencode's own interface framed behind the cockpit login, started at boot with tool calls pre-approved. A laptop or a phone is then enough to run a coding session on the box against the local model, with no terminal. It was described in prose and never shown. The tailnet address is masked in the capture. |
||
|
|
3925a4154a |
README: show the cockpit instead of only describing it
Three screenshots of a real box, captured through Playwright against the live cockpit rather than staged: Overview (what is served, on what pool, with the kernel's GPU-allocation refusals in the event stream), Models (the seven targets as data, each compared flag by flag against what is installed) and Requests (the proxy's feed next to the zombie guard). The cockpit is how this stack is meant to be driven and it was the one part a reader could not see before opening a terminal. Captured after v1.14.0, so they show the official image and the 0.76 fraction. No credentials in frame: the session is established through the API, so the key is never typed into a field that ends up in a capture. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|
|
4458a2c4a7 |
proxy v6.17: the identity wall learns admission, not just naming
v6.16 named WHO and admitted no one: the client's bearer went upstream verbatim and met the engine's own --api-key there, so every labeled request died with the engine's 401 past a wall that had correctly identified it. Found live on the reference box against the real engine, not in any test, because every fake engine in the suite lets everything through: that is the hole's whole biography, and the fix carries its own enforcing fake engine so it cannot reopen unnoticed. QWEN38_UPSTREAM_API_KEY names the engine's key to the proxy; when both halves are set, the client's bearer names them on the journal line and the engine's key admits them upstream, on relays and on abort calls alike (the abort path had the same verbatim habit). Without the upstream key the old verbatim behavior stays, for an engine with no check of its own or one shared key on purpose, and the banner warns loudly about the combination. Three new admission scenarios (substitution observed engine-side, verbatim pinned as the documented fallback, upstream key dormant with the wall off); root proxy coverage 78% over its 74% floor. Co-Authored-By: Qwen3.8-flash-next via opencode <noreply@opencode.ai> |
||
|
|
61a8e79d3d |
docs: clients.md (what each client must send, measured vs configured) and a roadmap with statuses
The questions the issues keep asking (can it do 1M, why does Copilot time out, can Open WebUI connect, what does an image cost an agent) have answers that exist scattered across README lines, issue replies and code comments; clients.md gathers them with a line between "measured on the reference box" and "this is how the vendor configures the client", which is the distinction the repo draws everywhere else. TLS and the client-key wall get their operator-visible surface documented (systemctl edit drop-ins that survive re-installs, the journal line a label rides). ROADMAP.md turns "on the roadmap" into shipped / in progress / planned / considered, with the considered items carrying the reason they are not planned (multi-engine parity is not a win; the quadlet path must not be able to drift from the Docker one; telemetry stays local by design). The README's doc map grew the four links the governance commits owed it. Co-Authored-By: Qwen3.8-flash-next via opencode <noreply@opencode.ai> |