Instructions to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-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 experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-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 experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
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 experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
Use Docker
docker model run hf.co/experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-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": "experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
- Ollama
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF with Ollama:
ollama run hf.co/experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF with Docker Model Runner:
docker model run hf.co/experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
- Lemonade
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-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:9931/v1 hermes config set model.default experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload README.md with huggingface_hub
Browse files|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
base_model: LiquidAI/LFM3-VL-2B
|
| 4 |
+
tags: [android, gui-agent, mobile, on-device, vision-language, gguf]
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# LFM3-VL-2B-AndroidControl
|
| 8 |
+
|
| 9 |
+
Screenshot-only ("pixel") Android phone agent, fine-tuned from [LiquidAI/LFM3-VL-2B](https://huggingface.co/LiquidAI/LFM3-VL-2B) for on-device automation.
|
| 10 |
+
One screenshot (+ goal + short text history) in → one JSON action out. Built to run on phones (llama.cpp GGUF).
|
| 11 |
+
|
| 12 |
+
* Merged weights: [experimentalmachines/LFM3-VL-2B-AndroidControl](https://huggingface.co/experimentalmachines/LFM3-VL-2B-AndroidControl) · Phone GGUF: [experimentalmachines/LFM3-VL-2B-AndroidControl-GGUF](https://huggingface.co/experimentalmachines/LFM3-VL-2B-AndroidControl-GGUF)
|
| 13 |
+
* Recipe: LoRA r64/α128 on all language-model linears (vision + projector frozen), lr 2e-4 cosine, 1,250 steps × 32 (40k rows), bf16
|
| 14 |
+
* Data: AndroidControl (Google) **official train split only**, re-split by the official `splits.json` (the common HF mirror's
|
| 15 |
+
random split leaks 1,238 test episodes — avoided); AndroidWorld-app episodes filtered out; synthetic `status: complete` step on each
|
| 16 |
+
episode's final screen. Dataset: `experimentalmachines/AndroidControl-screen-agent-sft` (private).
|
| 17 |
+
|
| 18 |
+
## Results
|
| 19 |
+
| Benchmark | Score |
|
| 20 |
+
|---|---|
|
| 21 |
+
| AndroidControl test, high-level | step SR **0.715**, episode SR 0.283 |
|
| 22 |
+
| AndroidControl test, low-level | step SR **0.948**, episode SR 0.783 |
|
| 23 |
+
| 'task complete' (terminal) accuracy | 0.792 |
|
| 24 |
+
| MMSTAR (forced-choice, paired vs base) | 52.1% → 57.1% (+5.0 pp, McNemar p=0.00) |
|
| 25 |
+
| MMLU (forced-choice, paired vs base) | 48.9% → 49.5% (+0.6 pp, McNemar p=0.68) |
|
| 26 |
+
|
| 27 |
+
Offline history is teacher-forced (human step instructions), as in AndroidControl-Curated; closed-loop AndroidWorld is harder.
|
| 28 |
+
|
| 29 |
+
## Prompt / action format
|
| 30 |
+
System prompt and user text exactly as in `train/agent_format.py`; screenshot resized with Qwen2-VL-style `smart_resize`
|
| 31 |
+
(factor 32, ≤ 774,400 px → ~720 image tokens for a 1080×2400 phone). Output:
|
| 32 |
+
|
| 33 |
+
```
|
| 34 |
+
<think>one-sentence intent</think>{"action_type":"click","point_2d":[x,y]}
|
| 35 |
+
```
|
| 36 |
+
Coordinates are integers on a 0–1000 grid. Actions: click, long_press, input_text, scroll(up/down/left/right; down = reveal content
|
| 37 |
+
below), open_app, navigate_back, navigate_home, keyboard_enter, wait, answer, status(complete/infeasible).
|
| 38 |
+
|
| 39 |
+
<details><summary>System prompt</summary>
|
| 40 |
+
|
| 41 |
+
```
|
| 42 |
+
You are a phone-use agent operating an Android phone to complete the user's goal.
|
| 43 |
+
Each turn you see the goal, your previous steps, and the current screenshot. Reply with ONE next action as JSON.
|
| 44 |
+
Coordinates are integers normalized to 0-1000 (x from left, y from top) of the screenshot.
|
| 45 |
+
Actions:
|
| 46 |
+
{"action_type":"click","point_2d":[x,y]}
|
| 47 |
+
{"action_type":"long_press","point_2d":[x,y]}
|
| 48 |
+
{"action_type":"input_text","text":"..."} (types into the focused field)
|
| 49 |
+
{"action_type":"scroll","direction":"up|down|left|right"} (down = reveal content below)
|
| 50 |
+
{"action_type":"open_app","app_name":"..."}
|
| 51 |
+
{"action_type":"navigate_back"}
|
| 52 |
+
{"action_type":"navigate_home"}
|
| 53 |
+
{"action_type":"keyboard_enter"}
|
| 54 |
+
{"action_type":"wait"}
|
| 55 |
+
{"action_type":"answer","text":"..."} (reply to a question about the screen)
|
| 56 |
+
{"action_type":"status","goal_status":"complete|infeasible"} (finish the task)
|
| 57 |
+
```
|
| 58 |
+
</details>
|
| 59 |
+
|
| 60 |
+
## On-device usage (llama.cpp)
|
| 61 |
+
```bash
|
| 62 |
+
llama-server -m LFM3-VL-2B-AndroidControl-Q4_K_M.gguf --mmproj mmproj-LFM3-VL-2B-Q8_0.gguf -c 8192 --image-max-tokens 1024 --reasoning-format deepseek
|
| 63 |
+
```
|
| 64 |
+
The vision tower and projector are unchanged by fine-tuning (LoRA on the language model only), so the base model's mmproj is used.
|
| 65 |
+
|
| 66 |
+
## License
|
| 67 |
+
LFM Open License v1.0 (inherited from LiquidAI/LFM3-VL-2B). Training data: AndroidControl (see its terms).
|