Repository navigation
server: give each Inkling 2 tool call its own id - #4124
ajensenwaud wants to merge 1 commit into
Conversation
|
Thanks @ajensenwaud for the Inkling 2 series (#4124 to #4128). Before we review it, one housekeeping ask that applies to all five: the commits' authors use your GitHub noreply address, but their committer is a personal email address. Our landing checks only accept noreply identities in a commit's history, so please rewrite the committer on each branch, for example with
|
f6ce80c to
2aec728
Compare
|
Done: all five heads are rewritten with the noreply address as committer and force-pushed. The kernel PRs also now use the common CUDA helpers, which fixes the |
883d011 to
5f93ca1
Compare
|
@ajensenwaud @ashhart I checked the three Inkling route regressions from a clean checkout of
The suite includes whole and streamed call parsing, suppression of the tool block header as text, and the request-specific call IDs. The fixture supplies scripted tokens and checks the route output. My test merge against Igor Lessio - AIFLOW LABS |
5f93ca1 to
f97e7f8
Compare
|
Follow-up on the new public head I also applied the filters Rechecked the rebase at I checked the committer requirement on the four still-open Inkling heads, #4124 and #4126 through #4128. Every commit ahead of main on these branches now uses a GitHub noreply committer. #4125 has already landed. Igor Lessio - AIFLOW LABS |
|
Shared-core review at Copies of server code
Behaviour
Nit
|
|
Thanks @ajensenwaud. Splitting Inkling 2 replies into reasoning, text and tool calls is the right shape, and it follows main's other reply parsers. Before it lands, it needs to match what those parsers already do in six places:
A host test for each would be ideal. We'll rebase it onto main for you afterwards if main has moved.
|
52bf7dc to
c8f1556
Compare
|
Thanks, Ash, and thanks @jschmied for the earlier read. Both reviews are answered in
From @jschmied's review, Kimi and Inkling now share one
|
|
@ajensenwaud, I checked
|
|
I tested On M5 Max with Zig 0.17.0, the combined tree passed 1,870 tests with 19 skips and compiled the native Linux ARM64 CUDA target. zig build test-server-cpu test-inkling2-host test-inkling2-cuda-host \
test-gradient-serving check-native-cuda-host \
-Dcpu=apple_m1 -Doptimize=ReleaseSafe -j2 --summary allThis checks the server parser, family code and serving pins together. GPU inference and the release checkpoint were outside the run. Igor Lessio - AIFLOW LABS |
c8f1556 to
55c307b
Compare
… does to them - A reply puts the raw string in content as well and reasoning_tokens is 0; ashhart#4124 merged into this branch fixes both.
|
I rechecked the new On that exact main SHA, One behavior from this PR still differs: main's native Inkling route test expects Igor Lessio - AIFLOW LABS |
|
Thanks @ajensenwaud. All six earlier requests are addressed in this parser. Main now has a native Inkling parser, so the remaining benefit should be carried onto that path. Please preserve its token-identity grammar, UTF-8, stop and token-cap behavior. Decoded marker text and argument arrays behave differently in this older parser. The added ID loop also skips main's existing call_0 IDs, so it does not yet give native calls distinct request IDs. A focused change with whole/streamed and distinct-turn fixtures would address that without replacing the shipped parser. We can handle the main overlap.
|
The Inkling 2 reply parser numbered calls within each reply, so every turn's first call came back as call_0 and agent clients could not tell one turn's call from the next. The parser now writes no id, and the route gives native calls without one the request's keyed id, as it does for parsed calls. Kimi's model-written ids are kept.
55c307b to
fa5fae1
Compare
|
Thanks, Ash, and thanks @AIFlowML. I took the focused route: the PR now carries only the id fix, on main's native parser.
|
|
Thank you, @ajensenwaud. The focused shape is right: the native parser keeps its token-identity grammar, UTF-8, stop and token-cap behavior, and the old parser is gone. Native marker calls now take the request-keyed ID, Kimi's own IDs remain untouched, and the new whole/stream two-turn fixture checks the intended distinction. One supported path still keeps the repeated ID. Bare grammar calls go through Please remove that obsolete comment and ID loop. Bare calls will then use the same request-keyed missing-ID path as native marker calls. Add the same whole/stream, distinct-turn assertions for a bare call; on the current head, both turns still return The supplied host results are credited. I did not rerun them in this static review.
|
When an agent calls tools through Inkling 2, every turn's tool call comes back with the same id,
call_0. This is because main's Inkling 2 reply parser numbers calls within each reply, and the route passes those ids through unchanged. This PR fixes that.What this changes
The parser no longer writes an id. The route gives each such call the request's keyed id, as it already does for parsed calls.
Kimi writes its own call ids, and the route keeps them.
This PR first carried a whole Inkling 2 reply parser. Main has since shipped its own, so the PR now carries only this fix on top of it.
Issue: Refs Inkling 2 Small on four DGX Sparks: a native CUDA family #3476.
Stacked on: main
9961ca492.Checks on this head
fa5fae121. The lean checker reports 164 problems on main and 164 on this head.zig build test-server-cpu -Dfixed-cpupasses 2,069 of 2,085 server tests, with 16 skipped.test-server-inkling2-reply-hostpasses 97 of 98, with one skipped. Four route tests fail with the route change reverted, including a new two-turn test.zig fmt --checkandgit diff --checkare clean.Receipt
n/a: no family on main serves Inkling 2 yet.