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
Commit History
9 days ago
-
Upload eval/lfm3vl2b-v2mix-lora_ft_nothink_high.jsonl.done with huggingface_hub
Verified signature3b3bf9f -
Upload eval/lfm3vl2b-v2mix-lora_ft_nothink_high.metrics.json with huggingface_hub
Verified signature94ac3f1 -
Upload eval/lfm3vl2b-v2mix-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature621ecf4 -
Upload eval/lfm3vl2b-v2mix-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature03acd57 -
Upload eval/lfm3vl2b-v2mix-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signature6442c76 -
Upload eval/lfm3vl2b-v2mix-lora_ft_nothink_high.jsonl.manifest.json with huggingface_hub
Verified signatured29271b -
Upload eval/lfm3vl2b-v2mix-lora_ft_nothink_high.jsonl with huggingface_hub
Verified signaturedde84ba -
Upload eval/lfm3vl2b-v2mix-lora_ft_general_logprob.summary.json with huggingface_hub
Verified signature5c22857 -
Upload eval/lfm3vl2b-v2mix-lora_ft_general_logprob.jsonl with huggingface_hub
Verified signaturecef3e64 -
Upload eval/lfm3_base_dev_screenqa.metrics.json with huggingface_hub
Verified signature4a63803 -
Upload eval/lfm3_base_dev_screenqa.jsonl.manifest.json with huggingface_hub
Verified signature7d35680 -
Upload eval/lfm3_base_dev_screenqa.jsonl with huggingface_hub
Verified signature869079b -
Upload eval/lfm3_base_dev_amex.metrics.json with huggingface_hub
Verified signatureb80160b -
Upload eval/lfm3_base_dev_amex.jsonl.manifest.json with huggingface_hub
Verified signaturea0ef336 -
Upload eval/lfm3_base_dev_amex.jsonl with huggingface_hub
Verified signature07f2e17 -
Upload eval/lfm3_base_dev_odyssey.metrics.json with huggingface_hub
Verified signature41d1f0f -
Upload eval/lfm3_base_dev_odyssey.jsonl.manifest.json with huggingface_hub
Verified signaturee2dd755 -
Upload eval/lfm3_base_dev_odyssey.jsonl with huggingface_hub
Verified signature6a381b6 -
Upload eval/lfm3_v1_dev_screenqa.metrics.json with huggingface_hub
Verified signature7d562b3 -
Upload eval/lfm3_v1_dev_screenqa.jsonl.manifest.json with huggingface_hub
Verified signature9ed5940 -
Upload eval/lfm3_v1_dev_screenqa.jsonl with huggingface_hub
Verified signature2d881a9 -
Upload eval/lfm3_v1_dev_amex.metrics.json with huggingface_hub
Verified signature993a67c -
Upload eval/lfm3_v1_dev_amex.jsonl.manifest.json with huggingface_hub
Verified signature79ee69a -
Upload eval/lfm3_v1_dev_amex.jsonl with huggingface_hub
Verified signature8077523 -
Upload eval/lfm3_v1_dev_odyssey.metrics.json with huggingface_hub
Verified signature9d6964a -
Upload eval/lfm3_v1_dev_odyssey.jsonl.manifest.json with huggingface_hub
Verified signature5d9b472 -
Upload eval/lfm3_v1_dev_odyssey.jsonl with huggingface_hub
Verified signature3b701df -
Upload eval/lfm3_v2_dev_screenqa.metrics.json with huggingface_hub
Verified signatured5cb873 -
Upload eval/lfm3_v2_dev_screenqa.jsonl.manifest.json with huggingface_hub
Verified signature54861fd -
Upload eval/lfm3_v2_dev_screenqa.jsonl with huggingface_hub
Verified signature9046684 -
Upload eval/lfm3_v2_dev_amex.metrics.json with huggingface_hub
Verified signaturee439bc6 -
Upload eval/lfm3_v2_dev_amex.jsonl.manifest.json with huggingface_hub
Verified signature33ec69e -
Upload eval/lfm3_v2_dev_amex.jsonl with huggingface_hub
Verified signaturee15d9e8 -
Upload eval/lfm3_v2_dev_odyssey.metrics.json with huggingface_hub
Verified signaturef58733b -
Upload eval/lfm3_v2_dev_odyssey.jsonl.manifest.json with huggingface_hub
Verified signature27024fd -
Upload eval/lfm3_v2_dev_odyssey.jsonl with huggingface_hub
Verified signatured5817ac -
Upload eval/lfm3vl2b-v2mix-lora_ft.metrics.json with huggingface_hub
Verified signature65a9cd5 -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signature3eb503a -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signature2be4f0a -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signature69ee225 -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signature8089192 -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signature6355ce6 -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signaturea9abd09 -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signature31f5e58 -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl.manifest.json with huggingface_hub
Verified signaturec5702e5 -
Upload eval/lfm3vl2b-v2mix-lora_ft.jsonl with huggingface_hub
Verified signaturebd89d6b -
Upload eval/qwen35-08b-ac-lora_ft.jsonl with huggingface_hub
Verified signature685db31 -
Upload eval/qwen35-08b-ac-lora_base_general.jsonl with huggingface_hub
Verified signature2787a0d -
Upload eval/qwen35-2b-ac-lora_ft_nothink_high.jsonl.done with huggingface_hub
Verified signaturedf3c451 -
Upload eval/lfm25vl450m_base.jsonl with huggingface_hub
Verified signature1458485