Repository navigation
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.
Merge upstream main #164
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
Uh oh!
There was an error while loading. Please reload this page.
Merge upstream main #164
Changes from 1 commit
1dfcfc6cb440a008b108fa41b3b0eb17dc00b119dfb3d00eb5cd13708d1175e2353e87240e92faf553f087835016db2eaa3f3b9715d967bb1bf981c23984f45c9e83e804052133bf8c1e30ee205f0de4f1867fc7220cbd57ab4e934b541ef00e0e98475c2b699df7d3703501667e686ee1e2e502e269bb26fac6b1acf0a24166db3de85eefeeeee2441cb783eea0560e3c6f79b4779cee98eec87620d573e51d24ef6bf1bdcdb5289edf2f80495b34485d4a0c1e5deabb475a7c13c5979f178f7fdbb219c43926e9d840468d2066afc1a1b8a0f75304a71066c1ba17faf9c217fb6591d66aa87e26abf6010b93fcbeaa4310d8cbb2268e4c5ab223fc217055d84022863e2469583acba09a38b1f5093db5d2304896ecc6c9191b7e868653c29719d03af3e226b1bb7952731472220bf2d7ea9ec20566962c9abcf93942d68ac62f6cc11675d97778c91405a36339d7afb82d295da871aa0568fc3120c55f5c8eaa4c576f59d507f1e99c6f060c935dcea773add30325d54c32ba257d248c27941f04a02ad75977e95b2de1ca0fe348deb041eff73e74aa3422f439c04b7aadce5375b08b5e0d6e2447cfb4b2fe9c51b3798be119ed338a69cd4ae11c8562b0bcb7e7b7919651c14219086faf95632f34edf0d018984638171a7151efa15c7b040bf1721d241b02df6a90fa43c48ad09eda4c379f9ee2fca2df64c548d12304cd008188385d3c0652b79a9f2d9955c7dfe22f6d041480565d66b9982b1758c8b22692ea14ffe17a6ca40f1890e1e5072a4e9c3d7a098859a19197675cb8faae899da71c71614235cab7f238a14302fe225480dabd8d90483dea9ab3f96919687019b34444395591a99852a75549b55a373f828ac79d6da1da855c4af696f196d629d2493829d03a5313131b6862833c2c4366e6413373e1c4c56eb6d13eb0a7c957fd2ef819f35ef7fc8e929bb4c5d5ad72e564e5d2971a3f5411a9fca5d476f10a6175c0b2a4f0bfa07bf99c607d02c00da129232fc109861cab5f763ced50fc080c6ca081afba1a7079a8eb838bb233d7bbc1eefcbd993ab95f986891c21bc896d42482121a1c2f2064af850527ad7c0141bd03795e60f2bacd21b78b1a6b58c7163bfba0b7ca5fad569ab4294f7d0467d1e5d4e78a26b4c3d99bf096209c2c241db7595cedf8f140d3cbfad658c7ce0c40cc8ff8274619b5195dcf0494e0f2d2249932ae78e0c021d7dbFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Inkling 2's chat template writes every tool call as its own model message, <|message_model|>NAME<|content_invoke_tool_json|>{"name":NAME,"args":{...}} <|end_message|>, back to back, and ends the turn with its end of sampling. The required-tool grammar instead forced the generic <tool_call>{...}</tool_call> envelope with blanks between calls, a form the model was not trained on. Unconstrained, its top choice after each </tool_call> is a newline, so a two-call request kept calling to the cap. With the native Inkling 2 template, a required or named call now compiles a grammar in that per-message form: one call message, or with parallel calls one or more, the grammar's stop being the end of sampling. It is compiled on the shared compiler, whose stops are the eos ids alone, since the end of message is now part of each call. The generic grammar, its compiler and the complete-call stop are unchanged for every other case; auto, plain and JSON-schema requests and every other family are untouched. Whether the grammar library lets a grammar constant match Inkling 2's special tokens is checked by a probe that skips without the library.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing