Skip to content

train 1117071103: #3194 #2839 #3215 #3248 (CI only) - #3664

Closed
ashhart wants to merge 12 commits into
mainfrom
lead/train-1117071103
Closed

ashhart wants to merge 12 commits into
mainfrom
lead/train-1117071103

Conversation

@ashhart

@ashhart ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3194 #2839 #3215 #3248 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 12 commits November 17, 2026 07:11
…rompt

A /v1/completions prompt of two to 64 strings was joined with newlines into one prompt. Each string now runs as
its own request with the body's other fields and the replies merge into one: choice i is prompt i's own text, stop
and tensorfold block, usage sums them, and a stream sends each prompt's chunks with its index, then the finishes in
order. Up to eight run at once; under --max-inflight or --max-inflight-per-key they take turns in the request's one
place. A string, a one-string list and the token-id forms are unchanged; n must still be 1. The strings golden now
has two choices.

Issue #3171.
…back under 600 (#3194)

On main 3f1290f the prompt-list route takes zig/src/server/openai.zig to 601 lines even with three blank lines
removed. legacyPrompt and its helpers (promptId, allInts, promptText), main's reading of a raw completion's
prompt, move unchanged to completion_prompt.zig, and the three blank lines come back: openai.zig is 562 lines.
…ayer

A window's latent MoE jobs to rank 1 go under one pass header (rows, job count, layer mask) in the
fixed first message; every later job sends only its rows, at the size that header gave. Rank 1 reads
one header a window, then queues each layer's receive, partials and reply with no host read between.
A job's rows land where a job of its size always did, on both ranks, so rank 1 runs the same bytes
from the same places. Prompt chunks and the MTP head keep a header a job. The pass header has its own
magic, so a build without passes refuses it as a bad job. test-nemotron-tp-jobs-host runs rank 0's
real posts against rank 1's real loop over a fake link. #2834.
Once a window's first job is out, rank 1 has queued a receive for every later job of its pass. An
eager window that then failed on rank 0's host (a launch error in verifyShared, a masked window off
its graphs, a dump run) left rank 1 waiting, and rank 0's next message (its end header, or the next
window's) would land in a receive of another size, which NCCL leaves undefined. A window now counts
its jobs out and replies in (Flight); windowSegs hands a failure to windowFailed, and while rank 1
still waits inside the window, rank 0 tells every rank the error's name on its liveness line and
exits, the way completion.drain does. A capture sent nothing and stops no rank, nor does a failure
before the first job or after the last reply. Host tests pin a failure after k of 40 jobs: rank 1
runs exactly those k jobs, then stops with rank 0's error's name. #2834.
…ward.zig back under 600 (#2839)

On main 3f1290f the TP=2 job headers take zig/src/families/nemotron/cuda_forward.zig to 610 lines. The window
profile's timing types, Class and Marks (tf-cuda-test window-profile's events), move unchanged to
cuda_window_marks.zig; cuda_forward.zig re-exports both names, so every caller is as it was. 597 lines.
…ith the tiles' bits (#2089)

tf_sq_prep writes each row's 64-input group sums by the tiles' own tree, and with them X as half, rows paired.
The half tiles (tf_sq_mmh) read both after each norm instead of redoing them in every column threadgroup; prompt
rows' chunk pairs (tf_sq_mmx) read the sums. Each path is checked once per shape against the fp32 tiles.
…server

Claude Code, Codex, OpenCode and Hermes, each pointed at the server through the base-URL and key variables it
documents, set only in the child's environment; arguments after the agent's name pass through and its exit code comes
back. The command first asks the server for its model and refuses when nothing answers. Claude Code gets the server's
root (it adds /v1/messages itself), the others the /v1 URL; the key is TENSORFOLD_API_KEY's first key when set, else
local. TENSORFOLD_LAUNCH_URL picks another server. Host tests: zig build -Dfixed-cpu test-launch-cli-host. Refs #3199
@ashhart

ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

CI red on this tip (zig-b); the PRs go on as two smaller trains.

@ashhart ashhart closed this Nov 17, 2026
@ashhart
ashhart deleted the lead/train-1117071103 branch November 17, 2026 08:17
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.

2 participants