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-AndroidControlOnly 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-AndroidControlOnly 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-AndroidControlOnly", 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-AndroidControlOnly", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly", 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-AndroidControlOnly 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" # 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", "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
- SGLang
How to use experimentalmachines/LFM3-VL-2B-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/LFM3-VL-2B-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/LFM3-VL-2B-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/LFM3-VL-2B-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/LFM3-VL-2B-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/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly with Docker Model Runner:
docker model run hf.co/experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-AndroidControlOnly
Commit History
10 days ago
-
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl.done with huggingface_hub
Verified signature9df77c8 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.metrics.json with huggingface_hub
Verified signature75c8bd5 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature2f1b2ba -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature6bb4d5a -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature7187aa1 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature8ef8032 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature82c0ec7 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signaturef0e9915 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature292e5e1 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl.manifest.json with huggingface_hub
Verified signaturee236d58 -
Upload eval/lfm3vl2b-ac-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature730e2d3 -
Upload eval/lfm3vl2b-ac-lora_base.metrics.json with huggingface_hub
Verified signature318780b -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature1bd4d07 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature9acad85 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signaturea944c08 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signatureaefbaff -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature517416a -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature69f9265 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature4c232a5 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signaturede04445 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature1f1be39 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signaturefc0d161 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signaturedf6a881 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature05001dc -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature7368bca -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signatureb46b80f -
Upload eval/lfm3vl2b-ac-lora_base.jsonl.manifest.json with huggingface_hub
Verified signatured0cb466 -
Upload eval/lfm3vl2b-ac-lora_base.jsonl with huggingface_hub
Verified signature90f68cc -
Upload eval/lfm3vl2b-ac-lora_ft.metrics.json with huggingface_hub
Verified signature9deb059 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature4dbcd45 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signatureb361e21 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature8e4cfaf -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature08dd98d -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature64012db -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature6c7f9fe -
Upload eval/lfm3vl2b-ac-lora_ft_general_logprob.summary.json with huggingface_hub
Verified signaturef0c8de7 -
Upload eval/lfm3vl2b-ac-lora_ft_general_logprob.jsonl with huggingface_hub
Verified signature4745bad -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature49bb326 -
Upload eval/lfm3vl2b-ac-lora_base_general_logprob.summary.json with huggingface_hub
Verified signature2aaf295 -
Upload eval/lfm3vl2b-ac-lora_base_general_logprob.jsonl with huggingface_hub
Verified signature228d7aa -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature04a4d54 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature30e5225 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature13e5d61 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature1831036 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature567c3b6 -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signatured9b2ddb -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signaturebcc443a -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl.manifest.json with huggingface_hub
Verified signature7d33faf -
Upload eval/lfm3vl2b-ac-lora_ft.jsonl with huggingface_hub
Verified signature5670dc4 -
Upload eval/lfm3vl2b-ac-lora_ft_general.summary.json with huggingface_hub
Verified signature9ddd748