Instructions to use dispatchAI/Llama-3.2-1B-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-1B-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-1B-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-1B-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-1B-FunctionCall-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/Llama-3.2-1B-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-1B-FunctionCall-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/Llama-3.2-1B-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-1B-FunctionCall-mobile # Run inference directly in the terminal: ./llama-cli -hf dispatchAI/Llama-3.2-1B-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-1B-FunctionCall-mobile # Run inference directly in the terminal: ./build/bin/llama-cli -hf dispatchAI/Llama-3.2-1B-FunctionCall-mobile
Use Docker
docker model run hf.co/dispatchAI/Llama-3.2-1B-FunctionCall-mobile
- LM Studio
- Jan
- vLLM
How to use dispatchAI/Llama-3.2-1B-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-1B-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-1B-FunctionCall-mobile", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dispatchAI/Llama-3.2-1B-FunctionCall-mobile
- Ollama
How to use dispatchAI/Llama-3.2-1B-FunctionCall-mobile with Ollama:
ollama run hf.co/dispatchAI/Llama-3.2-1B-FunctionCall-mobile
- Unsloth Studio
How to use dispatchAI/Llama-3.2-1B-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-1B-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-1B-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-1B-FunctionCall-mobile to start chatting
- Atomic Chat new
- Docker Model Runner
How to use dispatchAI/Llama-3.2-1B-FunctionCall-mobile with Docker Model Runner:
docker model run hf.co/dispatchAI/Llama-3.2-1B-FunctionCall-mobile
- Lemonade
How to use dispatchAI/Llama-3.2-1B-FunctionCall-mobile with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dispatchAI/Llama-3.2-1B-FunctionCall-mobile
Run and chat with the model
lemonade run user.Llama-3.2-1B-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,130 +1,31 @@
|
|
| 1 |
---
|
| 2 |
-
license: llama3.2
|
| 3 |
language:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
tags:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
- tool-use
|
| 14 |
-
- llama-3.2
|
| 15 |
pipeline_tag: text-generation
|
| 16 |
---
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
| 20 |
-
> **Tool-use capable LLM for edge devices** — call functions, parse JSON responses, build agents that run entirely on-phone.
|
| 21 |
-
|
| 22 |
-
   
|
| 23 |
-
|
| 24 |
-
## ⚡ Benchmarks (Real Hardware — Measured June 2026)
|
| 25 |
-
|
| 26 |
-
| Metric | Value | Notes |
|
| 27 |
-
|--------|-------|-------|
|
| 28 |
-
| **Phone Speed** | ~6-8 t/s (est.) | Samsung S20 FE, Snapdragon 865 |
|
| 29 |
-
| **CPU Speed** | **8.9 t/s** | Intel i7, 4 threads (measured) |
|
| 30 |
-
| **File Size** | **1,926 MB** | Largest 1B-class variant |
|
| 31 |
-
| **Chat Format** | `chatml` | Tool-formatted |
|
| 32 |
-
| **Specialty** | Function Calling / Tool Use | Structured output |
|
| 33 |
-
|
| 34 |
-
### Verification Test Results
|
| 35 |
-
|
| 36 |
-
| Prompt | Output | Status |
|
| 37 |
-
|--------|--------|--------|
|
| 38 |
-
| *"What is the capital of France?"* | "The capital of France is Paris." | ✅ Correct |
|
| 39 |
-
| *"Say hello in one sentence."* | Coherent greeting response | ✅ Verified |
|
| 40 |
-
|
| 41 |
-
## 🎯 Use Cases
|
| 42 |
-
|
| 43 |
-
- **Mobile agent frameworks** — On-device function calling for app automation
|
| 44 |
-
- **IoT control hubs** — Parse natural language into device commands
|
| 45 |
-
- **Local API servers** — Self-hosted tool-use endpoints without cloud
|
| 46 |
-
- **Smart home controllers** — "Turn on the lights" → function call to home automation
|
| 47 |
-
- **Data extraction** — Structured JSON output from unstructured text
|
| 48 |
-
- **Form filling apps** — Extract fields from documents as function args
|
| 49 |
-
- **Voice command routing** — Speech-to-intent-to-action pipeline
|
| 50 |
-
|
| 51 |
-
## 🌍 Multilingual & Arabic Support
|
| 52 |
-
|
| 53 |
-
- ✅ **English** — Strong function calling capability
|
| 54 |
-
- ⚠️ **Other languages** — Basic support; tool definitions should be in English for best results
|
| 55 |
-
- ℹ️ **Tip:** For multilingual tool-use with Arabic input, consider using a translation pre-processing step
|
| 56 |
-
|
| 57 |
-
## 📊 Comparison vs Competitors
|
| 58 |
-
|
| 59 |
-
| Model | Size | Phone Speed | Specialty | Downloads |
|
| 60 |
-
|-------|------|-------------|-----------|-----------|
|
| 61 |
-
| **This model (FC)** | 1,926 MB | ~6-8 t/s | **Function Calling** | 🔥 625 |
|
| 62 |
-
| Llama-3.2-1B Instruct | 1,260 MB | 10.4 t/s | General Chat | 629 |
|
| 63 |
-
| Llama-3.2-3B FC | 1,926 MB | ~4-5 t/s | Better Reasoning | 503 |
|
| 64 |
-
| Qwen2.5 Coder | 379 MB | 23.9 t/s | Code Generation | 498 |
|
| 65 |
-
|
| 66 |
-
## 💻 Quick Start
|
| 67 |
-
|
| 68 |
-
### Python (Function Calling Example)
|
| 69 |
-
|
| 70 |
-
```python
|
| 71 |
-
from llama_cpp import Llama
|
| 72 |
-
import json
|
| 73 |
-
|
| 74 |
-
llm = Llama(
|
| 75 |
-
model_path="model.gguf",
|
| 76 |
-
chat_format="chatml",
|
| 77 |
-
n_ctx=512,
|
| 78 |
-
n_threads=4,
|
| 79 |
-
verbose=False,
|
| 80 |
-
)
|
| 81 |
-
|
| 82 |
-
# Define tools
|
| 83 |
-
tools = [
|
| 84 |
-
{
|
| 85 |
-
"type": "function",
|
| 86 |
-
"function": {
|
| 87 |
-
"name": "get_weather",
|
| 88 |
-
"description": "Get current weather for a city",
|
| 89 |
-
"parameters": {
|
| 90 |
-
"type": "object",
|
| 91 |
-
"properties": {
|
| 92 |
-
"city": {"type": "string", "description": "City name"}
|
| 93 |
-
},
|
| 94 |
-
"required": ["city"]
|
| 95 |
-
}
|
| 96 |
-
}
|
| 97 |
-
}
|
| 98 |
-
]
|
| 99 |
-
|
| 100 |
-
response = llm.create_chat_completion(
|
| 101 |
-
messages=[{"role": "user", "content": "What's the weather in Dubai?"}],
|
| 102 |
-
tools=tools,
|
| 103 |
-
max_tokens=200,
|
| 104 |
-
)
|
| 105 |
-
print(response["choices"][0]["message"]["content"])
|
| 106 |
-
```
|
| 107 |
-
|
| 108 |
-
### Android (ADB)
|
| 109 |
|
| 110 |
-
|
| 111 |
-
hf download dispatchAI/Llama-3.2-1B-FunctionCall-mobile model.gguf
|
| 112 |
-
MSYS_NO_PATHCONV=1 adb push model.gguf /data/local/tmp/
|
| 113 |
-
MSYS_NO_PATHCONV=1 adb shell "cd /data/local/tmp && \
|
| 114 |
-
LD_LIBRARY_PATH=/data/local/tmp \
|
| 115 |
-
./llama-cli -m model.gguf \
|
| 116 |
-
-p 'Hello!' -n 30 -t 4 -st"
|
| 117 |
-
```
|
| 118 |
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
-
|
| 122 |
-
|-----------|-------|
|
| 123 |
-
| **Base Model** | meta-llama/Llama-3.2-1B-Instruct |
|
| 124 |
-
| **Fine-tuned For** | Function calling / tool use |
|
| 125 |
-
| **File Size** | 1,926 MB |
|
| 126 |
-
| **Format** | GGUF |
|
| 127 |
-
| **Chat Format** | `chatml` |
|
| 128 |
-
| **License** | Llama 3.2 Community License |
|
| 129 |
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
pipeline_tag: text-generation
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Llama 3.2 1B Function Call - Mobile (GGUF)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
**Meta's Llama 3.2 1B optimized for function calling and tool use.** Build agentic workflows running locally on mobile.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
| Property | Value |
|
| 20 |
+
|----------|-------|
|
| 21 |
+
| **Parameters** | 1.23 billion |
|
| 22 |
+
| **Size** | ~782 MB |
|
| 23 |
+
| **Speed** | ~27 tok/s (S20 FE) |
|
| 24 |
|
| 25 |
+
## Use Cases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
+
- Function calling / API orchestration on edge devices
|
| 28 |
+
- Building mobile AI agents with tool integration
|
| 29 |
+
- Home automation (local voice control)
|
| 30 |
+
- Workflow automation apps
|
| 31 |
+
- Enterprise tool connectors (CRM, ERP) locally
|