Instructions to use meetkai/functionary-small-v2.2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use meetkai/functionary-small-v2.2-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf meetkai/functionary-small-v2.2-GGUF:F16 # Run inference directly in the terminal: llama cli -hf meetkai/functionary-small-v2.2-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf meetkai/functionary-small-v2.2-GGUF:F16 # Run inference directly in the terminal: llama cli -hf meetkai/functionary-small-v2.2-GGUF:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf meetkai/functionary-small-v2.2-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf meetkai/functionary-small-v2.2-GGUF:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf meetkai/functionary-small-v2.2-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf meetkai/functionary-small-v2.2-GGUF:F16
Use Docker
docker model run hf.co/meetkai/functionary-small-v2.2-GGUF:F16
- LM Studio
- Jan
- Ollama
How to use meetkai/functionary-small-v2.2-GGUF with Ollama:
ollama run hf.co/meetkai/functionary-small-v2.2-GGUF:F16
- Unsloth Desktop
- Docker Model Runner
How to use meetkai/functionary-small-v2.2-GGUF with Docker Model Runner:
docker model run hf.co/meetkai/functionary-small-v2.2-GGUF:F16
- Lemonade
How to use meetkai/functionary-small-v2.2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull meetkai/functionary-small-v2.2-GGUF:F16
Run and chat with the model
lemonade run user.functionary-small-v2.2-GGUF-F16
List all available models
lemonade list
- Atomic Chat
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -64,7 +64,7 @@
|
|
| 64 |
"<|stop|>"
|
| 65 |
],
|
| 66 |
"bos_token": "<s>",
|
| 67 |
-
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' or message['role'] == 'system' %}\n{{ '<|from|>' + message['role'] + '\n<|recipient|>all\n<|content|>' + message['content'] + '\n' }}{% elif message['role'] == 'tool' %}\n{{ '<|from|>' + message['name'] + '\n<|recipient|>all\n<|content|>' + message['content'] + '\n' }}{% else %}\n{% set contain_content='no'%}\n{% if message['content'] is not none %}\n{{ '<|from|>assistant\n<|recipient|>all\n<|content|>' + message['content'] }}{% set contain_content='yes'%}\n{% endif %}\n{% if 'tool_calls' in message and message['tool_calls'] is not none %}\n{% for tool_call in message['tool_calls'] %}\n{% set prompt='<|from|>assistant\n<|recipient|>' + tool_call['function']['name'] + '\n<|content|>' + tool_call['function']['arguments'] %}\n{% if loop.index == 1 and contain_content == \"no\" %}\n{{ prompt }}{% else %}\n{{ '\n' + prompt}}{% endif %}\n{% endfor %}\n{% endif %}\n{{ '<|stop|>\n' }}{% endif %}\n{% endfor %}\n{% if add_generation_prompt %}{{ '<|from|>assistant\n<|recipient|>' }}{% endif %}",
|
| 68 |
"clean_up_tokenization_spaces": false,
|
| 69 |
"eos_token": "</s>",
|
| 70 |
"legacy": true,
|
|
|
|
| 64 |
"<|stop|>"
|
| 65 |
],
|
| 66 |
"bos_token": "<s>",
|
| 67 |
+
"chat_template": "{#v2.2#}\n{% for message in messages %}\n{% if message['role'] == 'user' or message['role'] == 'system' %}\n{{ '<|from|>' + message['role'] + '\n<|recipient|>all\n<|content|>' + message['content'] + '\n' }}{% elif message['role'] == 'tool' %}\n{{ '<|from|>' + message['name'] + '\n<|recipient|>all\n<|content|>' + message['content'] + '\n' }}{% else %}\n{% set contain_content='no'%}\n{% if message['content'] is not none %}\n{{ '<|from|>assistant\n<|recipient|>all\n<|content|>' + message['content'] }}{% set contain_content='yes'%}\n{% endif %}\n{% if 'tool_calls' in message and message['tool_calls'] is not none %}\n{% for tool_call in message['tool_calls'] %}\n{% set prompt='<|from|>assistant\n<|recipient|>' + tool_call['function']['name'] + '\n<|content|>' + tool_call['function']['arguments'] %}\n{% if loop.index == 1 and contain_content == \"no\" %}\n{{ prompt }}{% else %}\n{{ '\n' + prompt}}{% endif %}\n{% endfor %}\n{% endif %}\n{{ '<|stop|>\n' }}{% endif %}\n{% endfor %}\n{% if add_generation_prompt %}{{ '<|from|>assistant\n<|recipient|>' }}{% endif %}",
|
| 68 |
"clean_up_tokenization_spaces": false,
|
| 69 |
"eos_token": "</s>",
|
| 70 |
"legacy": true,
|