Skip to content

train 1119130335: #1336 #3106 (CI only) - #3962

Closed
ashhart wants to merge 10 commits into
mainfrom
lead/train-1119130335
Closed

ashhart wants to merge 10 commits into
mainfrom
lead/train-1119130335

Conversation

@ashhart

@ashhart ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #1336 #3106 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.

ajensenwaud and others added 10 commits November 19, 2026 13:03
…g, answer and tool calls

A tokenizer with <|start|>, <|message|>, <|eom|> and <|eot|> as single tokens and a chat template that writes
to=self messages (Muse Spark Open's) replies as messages to recipients. self is reasoning_content; user, commentary
and no recipient are content; any other recipient is a tool call whose <atem:function_calls> block becomes the
<tool_call><function=...> markup tool_parse and tool_stream already read, so its arguments take the tools' schema
types. While a reply streams, an unfinished header, a call message that has not closed and a partial marker are held
back, so every split extends the last and the finished split extends them all; the finished reply feeds the call
streamer once more, so a last call ended by the end token streams too. Harmony's tokenizers have no <|eom|> or
<|eot|>, so gpt-oss replies keep their channel split; tests cover both formats whole and streamed.
…ompt's open message read, thinking off kept off

A call message max_tokens cuts stays open as far as it was written, named by its header until its invoke names the
tool, so tool_stream reads it as the reply's cut call, whole and streamed, as #1299 made a GLM call; content never
shows its markup. A stop string inside a call keeps the call's text, as the other formats keep theirs. The reply goes
on from the prompt's last unclosed <|start|> header, so a generation prompt that already opened to=self<|message|>
keeps the reasoning after it; Muse Spark Open's template ends at <|start|>assistant, with or without reasoning_effort.
Only calls to offered tools become <tool_call> markup: with no tools, or a tool not offered, a call message stays as
the model wrote it, as DSML, LFM2 and Qwen's XML calls do. Thinking off no longer turns the split's reasoning on: self
messages stay out of the reply, and the template, which has no thinking switch, hears its lowest reasoning effort
rather than its default (xhigh). Raw completion prompts keep the model's text. Tests cut a call before its invoke
names the tool, inside a value, a value's closer, a parameter's name, between parameters, after the invoke closed,
and in a call's header, at strides 1, 3, 7 and whole; and cover an opened prompt, no tools, an unoffered tool and
thinking off.
…e the last call; a reply with no markup streams as it comes
With main's loop-guard stop, chat.zig plus the recipient-reply hook reached 603 lines, past lean's 600. flag (Python's
bool(fields.get(key))) is a fields helper, so it moves there unchanged; chat.zig calls fields_mod.flag.
… re-pinned

Review follow-up for #3106.

- zig/tests/fixtures/gradient-serving.tsv: the zig/src/cuda/nccl.zig row carries
  the new hash and this PR's number, so test-gradient-serving passes again.
- Library.pathFrom(raw) holds the one rule (a path is kept as written; unset,
  empty and blank keep libnccl.so.2; a control byte is refused). Library.open
  applies it to the process environment as before, and fabric/tp/config.zig
  applies it to its own getter, so a set-but-blank TF_NCCL_LIB no longer opens
  a blank path there. A malformed value is error.BadSetting, like the other
  TP settings.

Checked on a CPU-only host with Zig 0.17.0: test-gradient-serving (fails before
the re-pin with "serving source changed: zig/src/cuda/nccl.zig", passes after),
test-tp (the new config test fails on the old line and passes on the new one),
test-runtime-host, test-environment-host, the nccl.zig tests, zig fmt --check
and the lean check (0 new). No device run.
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

Landed: #1336 #3106 as main 905ce9b. This PR only carried their CI.

@ashhart ashhart closed this Nov 19, 2026
@ashhart
ashhart deleted the lead/train-1119130335 branch November 19, 2026 14:41
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.

3 participants