Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added functionary v2.2 chat handler #1131

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions 11 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ Chat completion is available through the [`create_chat_completion`](https://llam
The high-level API also provides a simple interface for function calling.

Note that the only model that supports full function calling at this time is "functionary".
The gguf-converted files for this model can be found here: [functionary-7b-v1](https://huggingface.co/abetlen/functionary-7b-v1-GGUF)
The gguf-converted files for this model can be found here: [functionary-v2.2](https://huggingface.co/meetkai/functionary-medium-v2.2-GGUF)


```python
>>> from llama_cpp import Llama
>>> llm = Llama(model_path="path/to/functionary/llama-model.gguf", chat_format="functionary")
>>> llm = Llama(model_path="path/to/functionary/llama-model.gguf", chat_format="functionary2")
>>> llm.create_chat_completion(
messages = [
{
Expand Down Expand Up @@ -260,12 +260,7 @@ The gguf-converted files for this model can be found here: [functionary-7b-v1](h
}
}
}],
tool_choice=[{
"type": "function",
"function": {
"name": "UserDetail"
}
}]
tool_choice="auto"
)
```

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.