Image-Text-to-Text
Transformers
TensorBoard
Safetensors
English
lfm3_vl
android
gui-agent
mobile-agent
screenshot
lora
conversational
custom_code
Instructions to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-MultiSource with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-MultiSource with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-MultiSource", trust_remote_code=True) 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/LFM3-VL-2B-MobileAgent-Dev-MultiSource", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-MultiSource", trust_remote_code=True, 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/LFM3-VL-2B-MobileAgent-Dev-MultiSource 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-MultiSource" # 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-MultiSource", "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-MultiSource
- SGLang
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-MultiSource 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/LFM3-VL-2B-MobileAgent-Dev-MultiSource" \ --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/LFM3-VL-2B-MobileAgent-Dev-MultiSource", "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/LFM3-VL-2B-MobileAgent-Dev-MultiSource" \ --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/LFM3-VL-2B-MobileAgent-Dev-MultiSource", "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/LFM3-VL-2B-MobileAgent-Dev-MultiSource with Docker Model Runner:
docker model run hf.co/experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-MultiSource
model card (v2 results)
Browse files
README.md
CHANGED
|
@@ -24,9 +24,11 @@ Screenshot-only Android phone agent: one screenshot + goal + short text history
|
|
| 24 |
| GUI-Odyssey held-out (test episodes) | 0.269 | **0.644** |
|
| 25 |
| AMEX held-out episodes | 0.306 | **0.735** |
|
| 26 |
| ScreenQA validation (answer) | 0.000 | **0.764** |
|
| 27 |
-
| AndroidWorld (116 tasks, this GGUF, 1 screenshot/step) | 15/116 (12.9%), 2.7 s/step |
|
| 28 |
| General knowledge (forced-choice) | mmstar 57.1% (+5.0 pp vs base, p=3e-07); mmlu 49.5% (+0.6 pp vs base, p=0.68) | mmstar 54.6% (+2.5 pp vs base, p=0.018); mmlu 50.9% (+2.0 pp vs base, p=0.085) |
|
| 29 |
|
|
|
|
|
|
|
| 30 |
v2's lower low-level / terminal numbers are expected: v2 drops AndroidControl's step-hint rows and keeps terminal rows
|
| 31 |
only from AndroidControl (unreliable source completion markers were quarantined). Offline step accuracy does not
|
| 32 |
transfer proportionally to closed-loop success; AndroidWorld is the deciding test.
|
|
|
|
| 24 |
| GUI-Odyssey held-out (test episodes) | 0.269 | **0.644** |
|
| 25 |
| AMEX held-out episodes | 0.306 | **0.735** |
|
| 26 |
| ScreenQA validation (answer) | 0.000 | **0.764** |
|
| 27 |
+
| AndroidWorld (116 tasks, this GGUF, 1 screenshot/step) | 15/116 (12.9%), 2.7 s/step | 3/116 (2.6%), 2.7 s/step on an Apple M5 |
|
| 28 |
| General knowledge (forced-choice) | mmstar 57.1% (+5.0 pp vs base, p=3e-07); mmlu 49.5% (+0.6 pp vs base, p=0.68) | mmstar 54.6% (+2.5 pp vs base, p=0.018); mmlu 50.9% (+2.0 pp vs base, p=0.085) |
|
| 29 |
|
| 30 |
+
**AndroidWorld regressed vs v1** (paired over 108 tasks: v1-only 11, v2-only 0, McNemar p=0.001). v2 leaves its intent (`<think>`) empty on 30.4% of AndroidWorld steps (v1: 0%), traced to 8,739 v2 training rows with blank intents (AMEX/GUI-Odyssey). v3 fills them; use v1 or v3 for closed-loop use.
|
| 31 |
+
|
| 32 |
v2's lower low-level / terminal numbers are expected: v2 drops AndroidControl's step-hint rows and keeps terminal rows
|
| 33 |
only from AndroidControl (unreliable source completion markers were quarantined). Offline step accuracy does not
|
| 34 |
transfer proportionally to closed-loop success; AndroidWorld is the deciding test.
|