-
Notifications
You must be signed in to change notification settings - Fork 334
Add Tool Calling and Reasoning Token Metadata to genai_config.json with Fallback Map
#2215
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
Merged
Merged
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
7cdfc14
add initial tool and reasoning tag migration
5a053fe
Merge branch 'main' of https://github.com/microsoft/onnxruntime-genai…
476e71e
consolidate APIs
5d13270
Rename GetGenerationTag -> GetTag per review feedback from Scott
4da60c4
Clean up temp directory before test to avoid leftover collisions
e1df10c
Refactor: store tag token IDs in model section, expose GetTagId API
388b009
Merge origin/main into sayanshaw/tool-tags
f499725
Refactor: move tag IDs to Tokenizer, rename to bot/eot/bor/eor
43a695d
Merge branch 'main' of https://github.com/microsoft/onnxruntime-genai…
6276e87
Address review: simplify fallback, add C#/Java/ObjC/Python bindings
2260ede
Merge branch 'main' of https://github.com/microsoft/onnxruntime-genai…
1cb59fb
Fix clang-format in config.cpp switch/case block from main (unrelated)
e418c62
Fix phi3 fallback: use <|tool_call|>/<|/tool_call|> (with pipes)
03bce7b
Add reasoning fallback entries to qwen2 (covers DeepSeek think tags)
4270829
Use std::optional for tag IDs, extract fallback to tokenizer_tag_util…
4585871
Merge branch 'main' of https://github.com/microsoft/onnxruntime-genai…
c7f6ddf
Update comments: getters throw on unsupported, not return -1
8933b44
Merge branch 'main' of https://github.com/microsoft/onnxruntime-genai…
90feec9
Merge branch 'main' of https://github.com/microsoft/onnxruntime-genai…
b1a5aff
Standardize fallback map keys to bot/eot/bor/eor
b9b8b83
use fallback IDs, remove TokenToTokenId call, add Config::Defaults co…
26086e6
Merge branch 'main' of https://github.com/microsoft/onnxruntime-genai…
46677b9
Use Config::Defaults constants in fallback map keys for consistency
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.