Image-Text-to-Text
Transformers
TensorBoard
Safetensors
English
lfm2_vl
android
gui-agent
mobile-agent
screenshot
lora
conversational
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
Commit History
Today
-
Update card (scripts/publish/cards)
Verified signaturea761e4e -
Remove lora_adapter/training_args.bin (a pickled TrainingArguments object, configuration only; the run configuration is in training_logs/run_config.json). No training state is published.
Verified signatureb83bc12 -
Update card (scripts/publish/cards)
Verified signature779250f -
Rename to the MobileAgent naming scheme (formerly LFM2.5-VL-450M-MobileAgent-v1); card rewritten
Verified signature36c34ac
3 days ago
-
LFM3 Mobile Agent public release: card, license, names
Verified signature36751ba
10 days ago
-
Upload README.md with huggingface_hub
Verified signaturec6d4895 -
Upload README.md with huggingface_hub
Verified signature19a1919 -
Upload README.md with huggingface_hub
Verified signatureae7c9a3 -
Upload eval/lfm25vl450m-ac-lora_ft_general_logprob.summary.json with huggingface_hub
Verified signature01b984f -
Upload eval/lfm25vl450m-ac-lora_ft_general_logprob.jsonl with huggingface_hub
Verified signature9466ca2 -
Upload eval/lfm25vl450m-ac-lora_base_general_logprob.summary.json with huggingface_hub
Verified signaturec322853 -
Upload eval/lfm25vl450m-ac-lora_base_general_logprob.jsonl with huggingface_hub
Verified signatureb029f55 -
Upload eval/lfm25vl450m-ac-lora_base.metrics.json with huggingface_hub
Verified signature1c90442 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signaturee771ba9 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signaturefd62657 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature8ebfabd -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature83efe07 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signaturec6b1497 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature04838ab -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signatured2938e5 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signaturef4d64c7 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature37b2fba -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature36f7c9d -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature0d31f46 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature5914eab -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature6e6283c -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signatureb5a0462 -
Upload eval/lfm25vl450m-ac-lora_base.jsonl.manifest.json with huggingface_hub
Verified signature27408dc -
Upload eval/lfm25vl450m-ac-lora_base.jsonl with huggingface_hub
Verified signature4d3b55a -
Upload eval/lfm25vl450m-ac-lora_ft.metrics.json with huggingface_hub
Verified signaturea1af8e0 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signaturea52e456 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signaturee3a2d08 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature2c4ebca -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signaturef9abfe6 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature2467d49 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signaturee4949b2 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signaturea77383f -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature13dfd04 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature1da2795 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature62d3999 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature2595c88 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature69052f2 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature57e0586 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature4d5b0e2 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl.manifest.json with huggingface_hub
Verified signature97c3f73 -
Upload eval/lfm25vl450m-ac-lora_ft.jsonl with huggingface_hub
Verified signature7980f6a -
Upload eval/lfm25vl450m-ac-lora_ft_general.summary.json with huggingface_hub
Verified signatureb8e27b6 -
Upload eval/lfm25vl450m-ac-lora_ft_general.jsonl with huggingface_hub
Verified signature29060e5 -
Upload folder using huggingface_hub
Verified signaturee9ae9a2 -
Upload folder using huggingface_hub
Verified signature03f435b