Skip to content

train 1114100118: #3159 (CI only) - #3319

Closed
ashhart wants to merge 28 commits into
mainfrom
lead/train-1114100118
Closed

ashhart wants to merge 28 commits into
mainfrom
lead/train-1114100118

Conversation

@ashhart

@ashhart ashhart commented Nov 14, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3159 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.

ashhart and others added 28 commits November 14, 2026 07:31
Keep headless per-stream verification at one row while opting into exact cross-stream rounds. Retain the pipelined lone path and test shared transitions without drafts or copies.
…e watch, not a 2 s wall bound

The bring-up test for a peer that stops after agreeing asserted that it was
found dead in under 2 s. Membership promises only that a member is dead once
it has been quiet for dead_ns, found at the watch's first step after that; on
a loaded hosted runner the step came late and the bound failed, sending a
landing train red. The test keeps what the code promises: dead by name, never
before dead_ns, and found by the dead rule before the watch gives up. The
watch window, now watch_ns, grows from 5 s to 30 s so a slow runner still
finds it; a passing run returns at the dead time as before. No change to the
code under test.
…ne, page or slot (#2135)

The real lane host on the fake target, its lanes taking pages from a counted kv pool, runs 200 requests down each way a request can end without finishing: the six refusals (busy, closed, stale, memory pressure, invalid request, bad decode spans), a cancel while queued behind full lanes, at once, mid-prompt and mid-decode, a backend error in the prompt pass and in a round, and no lane memory with nothing else running, then a mixed run through all of them, on whole and stepped prompts. After each request every host list, load-ledger count, live stream, fake lane, pool lease and page must be back at its idle value, and a normal request is then served. No path strands anything. The rig publishes the pool's census once before it starts, as a paged backend does, so the ledger shows the paged capacity group.
GLM-5.3's template writes "Reasoning Effort: Max" when it hears no effort,
so a thinking-off request could not ask for High or Low. With thinking off,
native now passes the template the effort the request (or
--reasoning-effort) named, on the template's levels. With none named, or
`none`, it passes null as before, so default prompts keep their bytes.
Prefix probes, the warm pass and the token-count route carry the same
named effort, so their renders match the request's.

Host tests: GLM-5.3 thinking-off requests with high, low, none, no effort
and a server effort, checked against the template's own render, and
namedEffort's rule (no Kimi max fallback, none is unnamed, request wins).
…1911)

--reasoning-effort no longer reaches a thinking-off prompt, so default
bytes stay unchanged for every server configuration. The reply's
tensorfold.reasoning_effort names the effort the template heard (the
request's, or none), and the Messages count_tokens route sets the named
effort as the chat route does.

Host tests: a server started with --reasoning-effort high keeps main's
thinking-off prompt; Qwen3.8's template takes a named effort with
thinking off (and reads it only while thinking, so its prompt is
unchanged), with its template and tokenizer config as fixtures.
…ake is a 400

A client could not tell from /v1/models whether a model takes image or
video parts, and a video_url part sent to a server whose model reads video
but which has no libtfvideo (GLM-5.3-Flash with the default image) ended in
HTTP 500 at the first video (#3004).

Each model entry now ends with "input_types": ["text"], plus "image" with
--vision, plus "video" when the checkpoint offers video and libtfvideo
loads. The keys before it keep their order and bytes. There is no new
option: the server decides it once at startup (input_types.zig), loading
libtfvideo with the loader every video uses, which keeps its answer, and
only when the model offers video. Server.media() takes its image and video
flags from the same Inputs, so every request route (chat, completions,
responses, messages, tokenize) refuses a video_url part on a server that
does not list "video" with the 400 an unsupported part gets
(invalid_request_error). The startup log names the missing library once.
If libtfvideo still fails at a video, that is now a 400 naming the library
instead of a 500.

The 17 server goldens holding a /v1/models reply gain the key on each
entry (the fake engine is text only) and 25 bytes of Content-Length per
entry, and nothing else. New tests in models_input_types_test.zig cover
the listing (text, image, image and video, and video without the library),
the 400 for both kinds of model without video, and the library refusal.
docs/api.md describes the key; docs/vision.md says when libtfvideo loads.

Co-authored-by: WebReflection <85749+WebReflection@users.noreply.github.com>
The "request text: N tokens" figure encoded the raw input on its own. It now
comes from the build itself: the request segment's rows, with the speaker-0
tag the builder adds and, on the default voice, the tokenizer's special
tokens. The family builder records them as Built.text_rows, the default
prompt as encodeCounted's text_tokens, and the check no longer re-encodes.
A test with untagged and space-led inputs checks that the figure equals the
request's share of the assembled rows on both paths; the HTTP fixtures now
expect 4110 (4096 bytes behind the 14-byte tag), which the previous head
reported as 4096.

docs/speech-sampling.md describes the exact --max-frames rule and its
message, and docs/drama-http-voices.md states the limits as they are. The
--speed-up refusal joins the Metal shape check with a test, the generic
check drops its unreachable --speed-up clause and its message no longer
lists context, lanes and TP. The CHANGELOG line comes with the landing.

Co-authored-by: akol1 <15747200+akol1@users.noreply.github.com>
reply_text.Incremental decodes a reply's new tokens with the previous
chunk as context and holds a character split across tokens until it is
whole (reply_text.zig:453-485, used at chat_generation.zig:108). No test
named either property; main's suite saw them only through other outputs
(thinking-tail and wire-byte tests for the hold, two stream arena bounds
at 7500 tokens for the window).

Two tests over a byte tokenizer whose decode spells a trailing partial
UTF-8 sequence as U+FFFD: a split euro sign streams only once whole and
the result equals a full decode; over 300 chunks no decode reads more
than four tokens. Each fails on its planted mutation (no hold, full
re-decode) and passes on main.
#1449's two kernels give tf_glm_scores' and tf_glm_select_rows' bytes, so a prompt chunk takes them unless
TF_GLM_INDEX_CUDA=0; scores still bisects. Shapes the kernels do not take keep the old launches either way: a
recorded-launch test pins prompt chunks to the kernels and a decode row, an unaligned key cache and a small pool cap
to tf_glm_scores.
…ine for the default

With the kernels on by default, the warning a failed load prints reaches people who never set
TF_GLM_INDEX_CUDA, so it starts glm:, as GLM's other start-up lines do, and says the fallback is what
TF_GLM_INDEX_CUDA=0 asks for. The changelog line records the new default: unset takes the kernels, 0 keeps
tf_glm_scores.
@ashhart

ashhart commented Nov 14, 2026

Copy link
Copy Markdown
Owner Author

Stopped: the train this one was stacked on did not land whole; its PRs go back to the queue.

@ashhart ashhart closed this Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants