Skip to content

server: /train refuses a "tools" that is not an array (Cormac on #22) - #24

Merged
joelteply merged 1 commit into
feat/props-weight-residencyfrom
continuum/train-refuses-malformed-tools
Sep 27, 2026
Merged

joelteply merged 1 commit into
feat/props-weight-residencyfrom
continuum/train-refuses-malformed-tools

Conversation

@joelteply

Copy link
Copy Markdown

Cormac's non-blocking note on #22. A non-array tools was 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-boolean train is.

Smoke on the M5 (qwen2.5-0.5b, Metal):

  • A malformed tools returns examples[0].tools must be an array.
  • A valid example still trains, with 25 trainable tokens as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

#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
@joelteply

Copy link
Copy Markdown
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

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply joelteply left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@joelteply
joelteply merged commit 9bbd62e into feat/props-weight-residency Sep 27, 2026
8 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant