Skip to content
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

workaround for tool calling #253

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

randoentity
Copy link

Is your pull request related to a problem? Please describe.
Related to #234.

Why should this feature be added?
Not a proper fix, but could be merged into a local branch if anyone needs a quick workaround.

Examples
Enables tool calling again. However, it still raises an error when combined with draft models. To work around that background_drop should be called early. I'm having a hard time understanding the code in the time I have, and SD+TC is probably only wanted by a few people, so this is all I have for now.

Additional context
I tried disabling the draft model just before generating the prompt for the tool call (mainly to not have to relaunch TabbyAPI to switch from using a draft for coding and back to using tool calling), but I got into a tool call loop. That's not the way to fix this anyway.

randoentity and others added 2 commits November 24, 2024 13:40
Don't exclude the vision embeddings when regenerating for a tool call.

Signed-off-by: kingbri <[email protected]>
@bdashore3
Copy link
Member

For now, this should be okay. The draft model issue can be tested and fixed at a later date.

@bdashore3 bdashore3 merged commit fe44e4a into theroyallab:main Nov 29, 2024
1 check passed
@randoentity randoentity deleted the workaround-toolcall branch November 29, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants