-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tool-call
: support Command R7B (+ return tool_plan "thoughts" in API)
#11585
Conversation
examples/server/server.cpp
Outdated
if (ids.size() == 1) { | ||
LOG_DBG("Preserved token: %d\n", ids[0]); | ||
params.sampling.preserved_tokens.insert(ids[0]); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we don't handle ids.size() > 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good point, just added a comment + debug warning log for now, should only happen when using a native tool call format with an incompatible model (e.g. wrong template override)
…I) (ggml-org#11585) * `tool-call`: support Command R7B (w/ tool_plan return) * `tool-call`: cleaner preservation of tokens + warn when likely bad chat template override * `tool-call`: test cleanup / handle lazy grammar triggers
…I) (ggml-org#11585) * `tool-call`: support Command R7B (w/ tool_plan return) * `tool-call`: cleaner preservation of tokens + warn when likely bad chat template override * `tool-call`: test cleanup / handle lazy grammar triggers
…I) (ggml-org#11585) * `tool-call`: support Command R7B (w/ tool_plan return) * `tool-call`: cleaner preservation of tokens + warn when likely bad chat template override * `tool-call`: test cleanup / handle lazy grammar triggers
CohereForAI/c4ai-command-r-v01
norCohereForAI/c4ai-command-r-plus
trigger detection (different format)Note
Needs a template override:
cf. #9639