Instructions to use QuantFactory/Arch-Function-3B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/Arch-Function-3B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuantFactory/Arch-Function-3B-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/Arch-Function-3B-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/Arch-Function-3B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/Arch-Function-3B-GGUF", filename="Arch-Function-3B.Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/Arch-Function-3B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
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 QuantFactory/Arch-Function-3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
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 QuantFactory/Arch-Function-3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use QuantFactory/Arch-Function-3B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantFactory/Arch-Function-3B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/Arch-Function-3B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
- SGLang
How to use QuantFactory/Arch-Function-3B-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "QuantFactory/Arch-Function-3B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/Arch-Function-3B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "QuantFactory/Arch-Function-3B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/Arch-Function-3B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use QuantFactory/Arch-Function-3B-GGUF with Ollama:
ollama run hf.co/QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/Arch-Function-3B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantFactory/Arch-Function-3B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantFactory/Arch-Function-3B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/Arch-Function-3B-GGUF to start chatting
- Pi new
How to use QuantFactory/Arch-Function-3B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "QuantFactory/Arch-Function-3B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use QuantFactory/Arch-Function-3B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use QuantFactory/Arch-Function-3B-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Arch-Function-3B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Arch-Function-3B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Arch-Function-3B-GGUF-Q4_K_M
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -6,7 +6,7 @@ license_name: katanemo-research
|
|
| 6 |
license_link: >-
|
| 7 |
https://huggingface.co/katanemolabs/Arch-Function-3B/blob/main/LICENSE
|
| 8 |
base_model:
|
| 9 |
-
- Qwen/Qwen2.5-3B-Instruct
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
pipeline_tag: text-generation
|
|
@@ -66,7 +66,7 @@ Katanemo Arch-Function collection is built on top of the [Qwen 2.5](https://hugg
|
|
| 66 |
|
| 67 |
|
| 68 |
## Performance Benchmarks
|
| 69 |
-
We evaluate Katanemo Arch-Function series on the [Berkeley Function-Calling Leaderboard (BFCL)](https://gorilla.cs.berkeley.edu/leaderboard.html#leaderboard). For each model family, we select the one with the highest rank.
|
| 70 |
|
| 71 |
<table>
|
| 72 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
|
@@ -87,103 +87,113 @@ We evaluate Katanemo Arch-Function series on the [Berkeley Function-Calling Lead
|
|
| 87 |
</tr>
|
| 88 |
<tr style="text-align: center; vertical-align: middle;">
|
| 89 |
<td>1</td>
|
| 90 |
-
<td>GPT-
|
| 91 |
-
<td>
|
| 92 |
-
<td>
|
| 93 |
-
<td>
|
| 94 |
-
<td>
|
| 95 |
-
<td>
|
| 96 |
-
<td>
|
| 97 |
-
<td>
|
| 98 |
-
</tr>
|
| 99 |
-
<tr style="text-align: center; vertical-align: middle;">
|
| 100 |
-
<td>3</td>
|
| 101 |
-
<td>xLAM-8x22b-r</td>
|
| 102 |
-
<td>59.13%</td>
|
| 103 |
-
<td>89.75%</td>
|
| 104 |
-
<td>89.32%</td>
|
| 105 |
-
<td>72.81%</td>
|
| 106 |
-
<td>15.62%</td>
|
| 107 |
-
<td>97.56%</td>
|
| 108 |
-
<td>75.23%</td>
|
| 109 |
</tr>
|
| 110 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
| 111 |
<td> </td>
|
| 112 |
<td>Arch-Function-7B</td>
|
| 113 |
-
<td>
|
| 114 |
-
<td>
|
| 115 |
-
<td>
|
| 116 |
-
<td>
|
| 117 |
-
<td>
|
| 118 |
-
<td>
|
| 119 |
-
<td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
</tr>
|
| 121 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
| 122 |
<td> </td>
|
| 123 |
<td>Arch-Function-3B</td>
|
| 124 |
-
<td>
|
| 125 |
-
<td>85.
|
| 126 |
-
<td>
|
| 127 |
-
<td>
|
| 128 |
-
<td>
|
| 129 |
<td>90.24%</td>
|
| 130 |
-
<td>
|
| 131 |
</tr>
|
| 132 |
-
<tr style="text-align: center; vertical-align: middle;">
|
| 133 |
-
<td>
|
| 134 |
-
<td>
|
| 135 |
-
<td>
|
| 136 |
-
<td>
|
| 137 |
-
<td>
|
| 138 |
-
<td>
|
| 139 |
-
<td>
|
| 140 |
-
<td>
|
| 141 |
-
<td>
|
| 142 |
-
</tr>
|
| 143 |
-
<tr style="text-align: center; vertical-align: middle;">
|
| 144 |
-
<td>9</td>
|
| 145 |
-
<td>Claude-3.5-Sonnet-20240620</td>
|
| 146 |
-
<td>54.83%</td>
|
| 147 |
-
<td>70.35%</td>
|
| 148 |
-
<td>66.34%</td>
|
| 149 |
-
<td>71.39%</td>
|
| 150 |
-
<td>23.5%</td>
|
| 151 |
-
<td>63.41%</td>
|
| 152 |
-
<td>75.91%</td>
|
| 153 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
</tr>
|
| 155 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
| 156 |
<td> </td>
|
| 157 |
-
<td>Arch-Function-
|
| 158 |
-
<td>
|
| 159 |
-
<td>
|
| 160 |
-
<td>
|
| 161 |
-
<td>
|
| 162 |
-
<td>
|
| 163 |
<td>87.80%</td>
|
| 164 |
-
<td>
|
| 165 |
</tr>
|
| 166 |
-
<tr style="text-align: center; vertical-align: middle;">
|
| 167 |
-
<td>
|
| 168 |
-
<td>
|
| 169 |
-
<td>53.
|
| 170 |
-
<td>
|
| 171 |
-
<td>
|
| 172 |
-
<td>
|
| 173 |
-
<td>
|
| 174 |
-
<td>
|
| 175 |
-
<td>
|
| 176 |
</tr>
|
| 177 |
-
<tr style="text-align: center; vertical-align: middle;">
|
| 178 |
-
<td>
|
| 179 |
-
<td>
|
| 180 |
-
<td>53.
|
| 181 |
-
<td>
|
| 182 |
-
<td>
|
| 183 |
-
<td>
|
| 184 |
-
<td>
|
| 185 |
-
<td>
|
| 186 |
-
<td>
|
| 187 |
</tr>
|
| 188 |
</table>
|
| 189 |
|
|
|
|
| 6 |
license_link: >-
|
| 7 |
https://huggingface.co/katanemolabs/Arch-Function-3B/blob/main/LICENSE
|
| 8 |
base_model:
|
| 9 |
+
- Qwen/Qwen2.5-Coder-3B-Instruct
|
| 10 |
language:
|
| 11 |
- en
|
| 12 |
pipeline_tag: text-generation
|
|
|
|
| 66 |
|
| 67 |
|
| 68 |
## Performance Benchmarks
|
| 69 |
+
We evaluate Katanemo Arch-Function series on the [Berkeley Function-Calling Leaderboard (BFCL)](https://gorilla.cs.berkeley.edu/leaderboard.html#leaderboard). We compare with commonly-used models and the results (as of Oct 21st, 2024) are shwon below. For each model family, we select the one with the highest rank.
|
| 70 |
|
| 71 |
<table>
|
| 72 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
|
|
|
| 87 |
</tr>
|
| 88 |
<tr style="text-align: center; vertical-align: middle;">
|
| 89 |
<td>1</td>
|
| 90 |
+
<td>GPT-4o-2024-08-06 (FC)</td>
|
| 91 |
+
<td>62.19%</td>
|
| 92 |
+
<td>85.90%</td>
|
| 93 |
+
<td>85.64%</td>
|
| 94 |
+
<td>75.43%</td>
|
| 95 |
+
<td>25.00%</td>
|
| 96 |
+
<td>63.41%</td>
|
| 97 |
+
<td>82.93%</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
</tr>
|
| 99 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
| 100 |
<td> </td>
|
| 101 |
<td>Arch-Function-7B</td>
|
| 102 |
+
<td>59.62%</td>
|
| 103 |
+
<td>86.83%</td>
|
| 104 |
+
<td>88.07%</td>
|
| 105 |
+
<td>71.57%</td>
|
| 106 |
+
<td>21.00%</td>
|
| 107 |
+
<td>95.12%</td>
|
| 108 |
+
<td>73.63%</td>
|
| 109 |
+
</tr>
|
| 110 |
+
<tr style="text-align: center; vertical-align: middle;">
|
| 111 |
+
<td>6</td>
|
| 112 |
+
<td>o1-preview-2024-09-12 (Prompt)</td>
|
| 113 |
+
<td>59.27%</td>
|
| 114 |
+
<td>86.42%</td>
|
| 115 |
+
<td>88.88%</td>
|
| 116 |
+
<td>73.08%</td>
|
| 117 |
+
<td>17.62%</td>
|
| 118 |
+
<td>73.17%</td>
|
| 119 |
+
<td>74.60%</td>
|
| 120 |
+
</tr>
|
| 121 |
+
<tr style="text-align: center; vertical-align: middle; ">
|
| 122 |
+
<td>9</td>
|
| 123 |
+
<td>Gemini-1.5-Flash-002 (Prompt)</td>
|
| 124 |
+
<td>57.92%</td>
|
| 125 |
+
<td>86.58%</td>
|
| 126 |
+
<td>89.48%</td>
|
| 127 |
+
<td>76.28%</td>
|
| 128 |
+
<td>9.88%</td>
|
| 129 |
+
<td>85.37%</td>
|
| 130 |
+
<td>78.54%</td>
|
| 131 |
</tr>
|
| 132 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
| 133 |
<td> </td>
|
| 134 |
<td>Arch-Function-3B</td>
|
| 135 |
+
<td>57.69%</td>
|
| 136 |
+
<td>85.19%</td>
|
| 137 |
+
<td>86.18%</td>
|
| 138 |
+
<td>71.21%</td>
|
| 139 |
+
<td>17.50%</td>
|
| 140 |
<td>90.24%</td>
|
| 141 |
+
<td>72.88%</td>
|
| 142 |
</tr>
|
| 143 |
+
<tr style="text-align: center; vertical-align: middle; ">
|
| 144 |
+
<td>12</td>
|
| 145 |
+
<td>Claude-3.5-Sonnet-20240620 (FC)</td>
|
| 146 |
+
<td>57.42%</td>
|
| 147 |
+
<td>70.04%</td>
|
| 148 |
+
<td>66.27%</td>
|
| 149 |
+
<td>74.68%</td>
|
| 150 |
+
<td>28.38%</td>
|
| 151 |
+
<td>68.29%</td>
|
| 152 |
+
<td>74.58%</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
</tr>
|
| 154 |
+
<tr style="text-align: center; vertical-align: middle; ">
|
| 155 |
+
<td>13</td>
|
| 156 |
+
<td>mistral-large-2407 (FC)</td>
|
| 157 |
+
<td>56.80%</td>
|
| 158 |
+
<td>86.62%</td>
|
| 159 |
+
<td>84.57%</td>
|
| 160 |
+
<td>68.37%</td>
|
| 161 |
+
<td>20.62%</td>
|
| 162 |
+
<td>75.61%</td>
|
| 163 |
+
<td>49.44%</td>
|
| 164 |
</tr>
|
| 165 |
<tr style="text-align: center; vertical-align: middle; font-weight: bold;">
|
| 166 |
<td> </td>
|
| 167 |
+
<td>Arch-Function-1.5B</td>
|
| 168 |
+
<td>56.20%</td>
|
| 169 |
+
<td>84.40%</td>
|
| 170 |
+
<td>83.96%</td>
|
| 171 |
+
<td>69.36%</td>
|
| 172 |
+
<td>15.88%</td>
|
| 173 |
<td>87.80%</td>
|
| 174 |
+
<td>74.39%</td>
|
| 175 |
</tr>
|
| 176 |
+
<tr style="text-align: center; vertical-align: middle; ">
|
| 177 |
+
<td>21</td>
|
| 178 |
+
<td>Llama-3.1-70B-Instruct (Prompt)</td>
|
| 179 |
+
<td>53.67%</td>
|
| 180 |
+
<td>88.90%</td>
|
| 181 |
+
<td>89.34%</td>
|
| 182 |
+
<td>61.13%</td>
|
| 183 |
+
<td>12.38%</td>
|
| 184 |
+
<td>92.68%</td>
|
| 185 |
+
<td>58.38%</td>
|
| 186 |
</tr>
|
| 187 |
+
<tr style="text-align: center; vertical-align: middle; ">
|
| 188 |
+
<td>22</td>
|
| 189 |
+
<td>Gemma-2-27b-it (Prompt)</td>
|
| 190 |
+
<td>53.66%</td>
|
| 191 |
+
<td>88.52%</td>
|
| 192 |
+
<td>87.89%</td>
|
| 193 |
+
<td>69.48%</td>
|
| 194 |
+
<td>4.12%</td>
|
| 195 |
+
<td>87.8%</td>
|
| 196 |
+
<td>68.76%</td>
|
| 197 |
</tr>
|
| 198 |
</table>
|
| 199 |
|