alpharomercoma commited on
Commit
ea7c8db
·
verified ·
1 Parent(s): 20e1713

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md ADDED
@@ -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).