Instructions to use experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly") model = AutoModelForMultimodalLM.from_pretrained("experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly" # 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/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly", "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/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly
- SGLang
How to use experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly", "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 images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly", "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" } } ] } ] }' - Docker Model Runner
How to use experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly with Docker Model Runner:
docker model run hf.co/experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly
LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly
- Name:
LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly(formerlyLFM2.5-VL-450M-MobileAgent-v1; see the naming guide) - Status: Development model: kept so results can be reproduced, not recommended. Use
LFM3-VL-2B-MobileAgentinstead - Initialised from: the base model
- What was added: SFT on AndroidControl, same recipe family as the LFM3 model of this name
LiquidAI/LFM2.5-VL-450M fine-tuned on AndroidControl with a smaller recipe. Trained on the same data as LFM3-VL-2B AndroidControlOnly to compare base models; not part of the main line. The project's main model is LFM3-VL-2B-MobileAgent.
| Base | LiquidAI/LFM2.5-VL-450M |
| Method / training | LoRA SFT (rank 16, alpha 32), lr 1e-4, one epoch: 1,875 steps × 32 rows of 48,000 AndroidControl rows + 12,000 general image-text replay rows (to protect general knowledge); merged (adapter in lora_adapter/) |
| Data | MobileAgent-SFT-AndroidControl (AndroidControl) + general replay rows |
| Phone format | 4-bit GGUF: LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly-GGUF |
| Status | Comparison model |
Evaluation
| Benchmark | LFM2.5-VL-450M AndroidControlOnly | Base model |
|---|---|---|
| AndroidWorld seed 30 (116 tasks, development) | 2 | 0 |
| AndroidControl test, high- / low-level step accuracy | 0.536 / 0.862 | — |
Terminal complete accuracy |
0.561 | — |
| MMStar / MMLU | 39.3% / 39.2% | — |
| Apple M5 GPU, median seconds per step | 1.14 | 2.21 |
- Too small for multi-step phone tasks at this recipe.
Input and output
| Part | Format |
|---|---|
| Image | One screenshot per step at the processor's default size |
| User text | Goal: … / Previous steps: (last 8 steps as n. <intent> -> <action JSON>, or None) / What is the next action? |
| Output | <think>short intent</think> followed by one compact JSON action; coordinates are integers on a 0–1000 grid |
| Decoding | Thinking on, temperature 0 |
System prompt (the earlier Dev models (AndroidControlOnly, MultiSource, FilledIntents) format)
You are a phone-use agent operating an Android phone to complete the user's goal.
Each turn you see the goal, your previous steps, and the current screenshot. Reply with ONE next action as JSON.
Coordinates are integers normalized to 0-1000 (x from left, y from top) of the screenshot.
Actions:
{"action_type":"click","point_2d":[x,y]}
{"action_type":"long_press","point_2d":[x,y]}
{"action_type":"input_text","text":"..."} (types into the focused field)
{"action_type":"scroll","direction":"up|down|left|right"} (down = reveal content below)
{"action_type":"open_app","app_name":"..."}
{"action_type":"navigate_back"}
{"action_type":"navigate_home"}
{"action_type":"keyboard_enter"}
{"action_type":"wait"}
{"action_type":"answer","text":"..."} (reply to a question about the screen)
{"action_type":"status","goal_status":"complete|infeasible"} (finish the task)
Limitations
- Research model. Do not let it act unattended on a phone with real accounts, messages or payments.
- English goals, one screenshot per step, no memory beyond the 8-step text history.
- Trained only on recorded demonstrations; it has never interacted with a live phone during training.
Project
Code, data builders, benchmark harnesses and every result with its source: experimentalmachines/lfm3-mobile-agent (see models and results).
License
LFM Open License v1.0, inherited from LiquidAI/LFM2.5-VL-450M (LICENSE).
- Downloads last month
- 26
Model tree for experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly
Base model
LiquidAI/LFM2.5-350M-Base
docker model run hf.co/experimentalmachines/LFM2.5-VL-450M-MobileAgent-Dev-AndroidControlOnly