Instructions to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="dispatchAI/Llama-3.2-3B-FunctionCall-mobile", filename="model.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile 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 dispatchAI/Llama-3.2-3B-FunctionCall-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/Llama-3.2-3B-FunctionCall-mobile
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf dispatchAI/Llama-3.2-3B-FunctionCall-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/Llama-3.2-3B-FunctionCall-mobile
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 dispatchAI/Llama-3.2-3B-FunctionCall-mobile # Run inference directly in the terminal: ./llama-cli -hf dispatchAI/Llama-3.2-3B-FunctionCall-mobile
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 dispatchAI/Llama-3.2-3B-FunctionCall-mobile # Run inference directly in the terminal: ./build/bin/llama-cli -hf dispatchAI/Llama-3.2-3B-FunctionCall-mobile
Use Docker
docker model run hf.co/dispatchAI/Llama-3.2-3B-FunctionCall-mobile
- LM Studio
- Jan
- vLLM
How to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dispatchAI/Llama-3.2-3B-FunctionCall-mobile" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dispatchAI/Llama-3.2-3B-FunctionCall-mobile", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dispatchAI/Llama-3.2-3B-FunctionCall-mobile
- Ollama
How to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile with Ollama:
ollama run hf.co/dispatchAI/Llama-3.2-3B-FunctionCall-mobile
- Unsloth Studio
How to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile 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 dispatchAI/Llama-3.2-3B-FunctionCall-mobile 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 dispatchAI/Llama-3.2-3B-FunctionCall-mobile to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for dispatchAI/Llama-3.2-3B-FunctionCall-mobile to start chatting
- Atomic Chat new
- Docker Model Runner
How to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile with Docker Model Runner:
docker model run hf.co/dispatchAI/Llama-3.2-3B-FunctionCall-mobile
- Lemonade
How to use dispatchAI/Llama-3.2-3B-FunctionCall-mobile with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dispatchAI/Llama-3.2-3B-FunctionCall-mobile
Run and chat with the model
lemonade run user.Llama-3.2-3B-FunctionCall-mobile-{{QUANT_TAG}}List all available models
lemonade list
Professional model card upgrade: benchmarks, code examples, usage guide
Browse files
README.md
CHANGED
|
@@ -1,142 +1,32 @@
|
|
| 1 |
---
|
| 2 |
-
license: llama3.2
|
| 3 |
language:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
tags:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
- llama-3.2
|
| 15 |
-
- 3b
|
| 16 |
pipeline_tag: text-generation
|
| 17 |
---
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
| 21 |
-
> **Most capable tool-use model for edge devices** — 3B parameters of function-calling power. Build sophisticated on-device agents with structured output.
|
| 22 |
-
|
| 23 |
-
    
|
| 24 |
-
|
| 25 |
-
## ⚡ Benchmarks (Real Hardware — Measured June 2026)
|
| 26 |
-
|
| 27 |
-
| Metric | Value | Notes |
|
| 28 |
-
|--------|-------|-------|
|
| 29 |
-
| **Phone Speed** | ~3-5 t/s (est.) | Samsung S20 FE, Snapdragon 865 |
|
| 30 |
-
| **CPU Speed** | **9.1 t/s** | Intel i7, 4 threads (measured) |
|
| 31 |
-
| **File Size** | **1,926 MB** | Near 2GB threshold |
|
| 32 |
-
| **Chat Format** | `llama-3` | Llama 3 format |
|
| 33 |
-
| **Specialty** | Function Calling / Tool Use | 3B-level reasoning |
|
| 34 |
-
|
| 35 |
-
### Verification Test Results
|
| 36 |
-
|
| 37 |
-
| Prompt | Output | Status |
|
| 38 |
-
|--------|--------|--------|
|
| 39 |
-
| *"What is the capital of France?"* | "The capital of France is Paris." | ✅ Correct |
|
| 40 |
-
| *"Say hello in one sentence."* | Coherent greeting response | ✅ Verified |
|
| 41 |
-
|
| 42 |
-
## 🎯 Use Cases
|
| 43 |
-
|
| 44 |
-
- **Advanced mobile agents** — Complex multi-step tool calling on device
|
| 45 |
-
- **Enterprise IoT dashboards** — Natural language → API calls → actions
|
| 46 |
-
- **Local workflow automation** — "Send email to team about X" → function chain
|
| 47 |
-
- **Data pipeline orchestration** — Parse NL instructions into structured pipelines
|
| 48 |
-
- **Smart home managers** — Complex intent parsing with multi-tool selection
|
| 49 |
-
- **On-device debugging assistants** — Error log analysis → suggested fixes via tools
|
| 50 |
-
- **Form-based apps** — Rich form auto-fill from conversation context
|
| 51 |
-
|
| 52 |
-
## 📊 Comparison vs Competitors
|
| 53 |
-
|
| 54 |
-
| Model | Size | Params | Phone Speed | FC Quality | Downloads |
|
| 55 |
-
|-------|------|--------|-------------|------------|-----------|
|
| 56 |
-
| **This model (3B FC)** | 1,926 MB | **3B** | ~3-5 t/s | ⭐⭐⭐ **Best** | 🔥 503 |
|
| 57 |
-
| Llama-3.2-1B FC | 1,926 MB | 1.23B | ~6-8 t/s | ⭐⭐ Good | 625 |
|
| 58 |
-
| Qwen2.5-Coder | 379 MB | 0.5B | 23.9 t/s | Code focus | 498 |
|
| 59 |
-
|
| 60 |
-
**Key advantage over 1B variant:** Better complex reasoning for multi-step tool use scenarios.
|
| 61 |
-
|
| 62 |
-
## 💻 Quick Start
|
| 63 |
-
|
| 64 |
-
### Python (Multi-tool Function Calling)
|
| 65 |
-
|
| 66 |
-
```python
|
| 67 |
-
from llama_cpp import Llama
|
| 68 |
-
import json
|
| 69 |
-
|
| 70 |
-
llm = Llama(
|
| 71 |
-
model_path="model.gguf",
|
| 72 |
-
chat_format="llama-3",
|
| 73 |
-
n_ctx=1024,
|
| 74 |
-
n_threads=4,
|
| 75 |
-
verbose=False,
|
| 76 |
-
)
|
| 77 |
-
|
| 78 |
-
# Multiple tools for complex agent scenario
|
| 79 |
-
tools = [
|
| 80 |
-
{
|
| 81 |
-
"type": "function",
|
| 82 |
-
"function": {
|
| 83 |
-
"name": "search_database",
|
| 84 |
-
"description": "Search the local database",
|
| 85 |
-
"parameters": {
|
| 86 |
-
"type": "object",
|
| 87 |
-
"properties": {
|
| 88 |
-
"query": {"type": "string"},
|
| 89 |
-
"limit": {"type": "integer"}
|
| 90 |
-
},
|
| 91 |
-
"required": ["query"]
|
| 92 |
-
}
|
| 93 |
-
}
|
| 94 |
-
},
|
| 95 |
-
{
|
| 96 |
-
"type": "function",
|
| 97 |
-
"function": {
|
| 98 |
-
"name": "send_notification",
|
| 99 |
-
"description": "Send push notification",
|
| 100 |
-
"parameters": {
|
| 101 |
-
"type": "object",
|
| 102 |
-
"properties": {
|
| 103 |
-
"title": {"type": "string"},
|
| 104 |
-
"body": {"type": "string"}
|
| 105 |
-
},
|
| 106 |
-
"required": ["title", "body"]
|
| 107 |
-
}
|
| 108 |
-
}
|
| 109 |
-
}
|
| 110 |
-
]
|
| 111 |
-
|
| 112 |
-
response = llm.create_chat_completion(
|
| 113 |
-
messages=[{"role": "user", "content": "Find customers in UAE and notify them"}],
|
| 114 |
-
tools=tools,
|
| 115 |
-
max_tokens=300,
|
| 116 |
-
)
|
| 117 |
-
print(response["choices"][0]["message"])
|
| 118 |
-
```
|
| 119 |
-
|
| 120 |
-
### Android (ADB)
|
| 121 |
|
| 122 |
-
|
| 123 |
-
hf download dispatchAI/Llama-3.2-3B-FunctionCall-mobile model.gguf
|
| 124 |
-
MSYS_NO_PATHCONV=1 adb push model.gguf /data/local/tmp/
|
| 125 |
-
MSYS_NO_PATHCONV=1 adb shell "cd /data/local/tmp && \
|
| 126 |
-
LD_LIBRARY_PATH=/data/local/tmp \
|
| 127 |
-
./llama-cli -m model.gguf \
|
| 128 |
-
-p 'Hello!' -n 30 -t 4 -st"
|
| 129 |
-
```
|
| 130 |
|
| 131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
|
| 133 |
-
|
| 134 |
-
|-----------|-------|
|
| 135 |
-
| **Base Model** | meta-llama/Llama-3.2-3B-Instruct |
|
| 136 |
-
| **Fine-tuned For** | Function calling / structured tool use |
|
| 137 |
-
| **Parameters** | 3.0 billion |
|
| 138 |
-
| **File Size** | 1,926 MB |
|
| 139 |
-
| **Chat Format** | `llama-3` |
|
| 140 |
-
| **License** | Llama 3.2 Community License |
|
| 141 |
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
language:
|
| 3 |
+
- en
|
| 4 |
+
license: llama3.2
|
| 5 |
tags:
|
| 6 |
+
- mobile
|
| 7 |
+
- edge-ai
|
| 8 |
+
- function-calling
|
| 9 |
+
- tool-use
|
| 10 |
+
- quantized
|
| 11 |
+
- gguf
|
| 12 |
+
- 3b
|
|
|
|
|
|
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# Llama 3.2 3B Function Call - Mobile (GGUF)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
More complex tool-use workflows than the 1B variant while still fitting on mobile.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
| Property | Value |
|
| 21 |
+
|----------|-------|
|
| 22 |
+
| **Parameters** | 3.2 billion |
|
| 23 |
+
| **Size** | ~2.15 GB |
|
| 24 |
+
| **Speed** | ~15 tok/s (S20 FE CPU) |
|
| 25 |
|
| 26 |
+
## Best For
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
+
- Complex multi-step agent workflows on mobile
|
| 29 |
+
- Advanced API orchestration
|
| 30 |
+
- Enterprise tool integration (CRM, ERP)
|
| 31 |
+
- Development environment assistants
|
| 32 |
+
- Data pipeline automation
|