Instructions to use dispatchAI/Llama-3.2-1B-Instruct-mobile 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 dispatchAI/Llama-3.2-1B-Instruct-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-Instruct-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/Llama-3.2-1B-Instruct-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-Instruct-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/Llama-3.2-1B-Instruct-mobile
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf dispatchAI/Llama-3.2-1B-Instruct-mobile # Run inference directly in the terminal: ./build/bin/llama cli -hf dispatchAI/Llama-3.2-1B-Instruct-mobile
Use Docker
docker model run hf.co/dispatchAI/Llama-3.2-1B-Instruct-mobile
- Llama new
- LM Studio
- Jan
- vLLM
How to use dispatchAI/Llama-3.2-1B-Instruct-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-Instruct-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-Instruct-mobile", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dispatchAI/Llama-3.2-1B-Instruct-mobile
- Ollama
How to use dispatchAI/Llama-3.2-1B-Instruct-mobile with Ollama:
ollama run hf.co/dispatchAI/Llama-3.2-1B-Instruct-mobile
- Unsloth Desktop
- Docker Model Runner
How to use dispatchAI/Llama-3.2-1B-Instruct-mobile with Docker Model Runner:
docker model run hf.co/dispatchAI/Llama-3.2-1B-Instruct-mobile
- Lemonade
How to use dispatchAI/Llama-3.2-1B-Instruct-mobile with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dispatchAI/Llama-3.2-1B-Instruct-mobile
Run and chat with the model
lemonade run user.Llama-3.2-1B-Instruct-mobile-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -14,29 +14,21 @@ pipeline_tag: text-generation
|
|
| 14 |
|
| 15 |
# Llama-3.2-1B-Instruct-mobile
|
| 16 |
|
| 17 |
-
✅ **
|
| 18 |
|
| 19 |
-
##
|
| 20 |
|
| 21 |
-
|
|
| 22 |
-
|--------|-------
|
| 23 |
-
|
|
| 24 |
-
|
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
## Model Details
|
| 28 |
-
|
| 29 |
-
| Attribute | Value |
|
| 30 |
-
|-----------|-------|
|
| 31 |
-
| **Base Model** | meta-llama/Llama-3.2-1B-Instruct |
|
| 32 |
| **File Size** | 1260 MB |
|
| 33 |
-
| **Format** | GGUF |
|
| 34 |
| **Chat Format** | llama-3 |
|
| 35 |
-
| **
|
| 36 |
-
| **License** | llama3.2 |
|
| 37 |
|
| 38 |
## Usage
|
| 39 |
|
|
|
|
| 40 |
```python
|
| 41 |
from llama_cpp import Llama
|
| 42 |
|
|
@@ -52,7 +44,26 @@ print(response["choices"][0]["message"]["content"])
|
|
| 52 |
```python
|
| 53 |
from dispatchai import load_model
|
| 54 |
model = load_model("Llama-3.2-1B-Instruct-mobile", backend="gguf")
|
| 55 |
-
print(model.chat("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
```
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# Llama-3.2-1B-Instruct-mobile
|
| 16 |
|
| 17 |
+
✅ **Verified on real phone hardware** — Snapdragon 865, June 2026.
|
| 18 |
|
| 19 |
+
## Phone Benchmark (Samsung S20 FE, Snapdragon 865)
|
| 20 |
|
| 21 |
+
| Metric | Value |
|
| 22 |
+
|--------|-------|
|
| 23 |
+
| **Phone Speed** | **10.4 tokens/sec** |
|
| 24 |
+
| **CPU Speed** | 4.9 tokens/sec |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
| **File Size** | 1260 MB |
|
|
|
|
| 26 |
| **Chat Format** | llama-3 |
|
| 27 |
+
| **Test Output** | "Paris" ✅ (correct) |
|
|
|
|
| 28 |
|
| 29 |
## Usage
|
| 30 |
|
| 31 |
+
### Python (llama-cpp-python)
|
| 32 |
```python
|
| 33 |
from llama_cpp import Llama
|
| 34 |
|
|
|
|
| 44 |
```python
|
| 45 |
from dispatchai import load_model
|
| 46 |
model = load_model("Llama-3.2-1B-Instruct-mobile", backend="gguf")
|
| 47 |
+
print(model.chat("What is the capital of France?"))
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
### On Android (via ADB)
|
| 51 |
+
```bash
|
| 52 |
+
hf download dispatchAI/Llama-3.2-1B-Instruct-mobile model.gguf
|
| 53 |
+
MSYS_NO_PATHCONV=1 adb push model.gguf /data/local/tmp/
|
| 54 |
+
MSYS_NO_PATHCONV=1 adb shell "cd /data/local/tmp && LD_LIBRARY_PATH=/data/local/tmp ./llama-cli -m model.gguf -p 'Hello' -n 30 -t 4 -st"
|
| 55 |
```
|
| 56 |
|
| 57 |
+
## Model Details
|
| 58 |
+
|
| 59 |
+
| Attribute | Value |
|
| 60 |
+
|-----------|-------|
|
| 61 |
+
| **Base Model** | meta-llama/Llama-3.2-1B-Instruct |
|
| 62 |
+
| **File Size** | 1260 MB |
|
| 63 |
+
| **Format** | GGUF |
|
| 64 |
+
| **Chat Format** | llama-3 |
|
| 65 |
+
| **License** | llama3.2 |
|
| 66 |
+
|
| 67 |
+
## About dispatchAI
|
| 68 |
+
|
| 69 |
+
[dispatchAI](https://huggingface.co/dispatchAI) — Small. Mobile. Free. UAE-built.
|