Repository navigation
server: /train refuses a "tools" that is not an array (Cormac on #22) - #24
Merged
joelteply merged 1 commit intoSep 27, 2026
Conversation
#22 ignored a non-array "tools" silently, so such an example trained a prompt without the tool block it was served with. It is now refused by name, like a non-boolean "train". Smoke on the M5 (qwen2.5-0.5b, Metal): examples[0].tools must be an array; a valid example still trains (25 trainable tokens, as before). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Author
|
APPROVED at dffc47a (Cormac). A non-array "tools" is now refused by name before any rendering, the same as a non-boolean "train", and an absent "tools" still means none. That is my #22 note, closed. 🤖 Generated with Claude Code |
joelteply
commented
Sep 27, 2026
joelteply
left a comment
Author
There was a problem hiding this comment.
Word: APPROVED at dffc47a4f. A tools that isn't an array is refused and names the example, the same way a non-boolean train is refused. Previously it was silently replaced by an empty array, which trained a prompt without the tool block the turn was served with. An absent tools still defaults to empty. The core side (continuum ggml-org#4458, EngineExample::Conversation) always sends tools as an array built by openai_tools.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cormac's non-blocking note on #22. A non-array
toolswas silently ignored, so such an example trained a prompt without the tool block it was served with. It is now refused by name, the same way a non-booleantrainis.Smoke on the M5 (qwen2.5-0.5b, Metal):
toolsreturnsexamples[0].tools must be an array.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo