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-WaitRelabel 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-WaitRelabel 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-WaitRelabel", 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-WaitRelabel", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-WaitRelabel", 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-WaitRelabel 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-WaitRelabel" # 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-WaitRelabel", "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-WaitRelabel
- SGLang
How to use experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-WaitRelabel 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-WaitRelabel" \ --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-WaitRelabel", "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-WaitRelabel" \ --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-WaitRelabel", "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-WaitRelabel with Docker Model Runner:
docker model run hf.co/experimentalmachines/LFM3-VL-2B-MobileAgent-Dev-WaitRelabel
Commit History
5 days ago
-
Upload eval/lfm3_v41_dev_amex.metrics.json with huggingface_hub
Verified signature68fae1a -
Upload eval/lfm3_v41_dev_amex.jsonl.manifest.json with huggingface_hub
Verified signaturec493dc5 -
Upload eval/lfm3_v41_dev_amex.jsonl with huggingface_hub
Verified signaturee95c324 -
Upload eval/lfm3_v41_dev_odyssey.metrics.json with huggingface_hub
Verified signature3ac03f7 -
Upload eval/lfm3_v41_dev_odyssey.jsonl.manifest.json with huggingface_hub
Verified signature04e6a81 -
Upload eval/lfm3_v41_dev_odyssey.jsonl with huggingface_hub
Verified signatured1598e3 -
Upload eval/lfm3_v41_dev_screenqa.metrics.json with huggingface_hub
Verified signature963b938 -
Upload eval/lfm3_v41_dev_screenqa.jsonl.manifest.json with huggingface_hub
Verified signature2021ebe -
Upload eval/lfm3_v41_dev_screenqa.jsonl with huggingface_hub
Verified signature76c0206 -
Upload eval/lfm3_v41_dev_complete.metrics.json with huggingface_hub
Verified signature2af1bce -
Upload eval/lfm3_v41_dev_complete.jsonl.manifest.json with huggingface_hub
Verified signature1d61690 -
Upload eval/lfm3_v41_dev_complete.jsonl with huggingface_hub
Verified signatured255967 -
Upload eval/lfm3_v41_dev_answer.metrics.json with huggingface_hub
Verified signature5977b17 -
Upload eval/lfm3_v41_dev_answer.jsonl.manifest.json with huggingface_hub
Verified signature01e7e69 -
Upload eval/lfm3_v41_dev_answer.jsonl with huggingface_hub
Verified signature0644f1b -
Upload eval/lfm3_v42_dev_answer.metrics.json with huggingface_hub
Verified signature100b59a -
Upload eval/lfm3vl2b-v42-lora_ft.metrics.json with huggingface_hub
Verified signatureb845a80 -
Upload eval/lfm3_v42_dev_screenqa.metrics.json with huggingface_hub
Verified signature1b70a7b -
Upload eval/lfm3_v42_dev_screenqa.jsonl with huggingface_hub
Verified signature09b4f4d -
Upload eval/lfm3_v42_dev_complete.jsonl.manifest.json with huggingface_hub
Verified signaturec32b839 -
Upload eval/v42_data_manifest.json with huggingface_hub
Verified signaturec6d5ae8 -
Upload eval/lfm3vl2b-v42-lora_ft_general_logprob.summary.json with huggingface_hub
Verified signature239e171 -
Upload eval/lfm3_v42_dev_amex.jsonl with huggingface_hub
Verified signature39f0521 -
Upload eval/v42_selfhist_stats.json with huggingface_hub
Verified signature26ecaa8 -
Upload eval/lfm3vl2b-v42-lora_ft_general_logprob.jsonl with huggingface_hub
Verified signaturec79902e -
Upload eval/lfm3vl2b-v42-lora_ft.jsonl with huggingface_hub
Verified signature8f61efb -
Upload eval/lfm3_v42_dev_complete.metrics.json with huggingface_hub
Verified signature88574cd -
Upload eval/lfm3_v42_dev_answer.jsonl.manifest.json with huggingface_hub
Verified signature99652e1 -
Upload eval/lfm3_v42_dev_amex.metrics.json with huggingface_hub
Verified signature061ba98 -
Upload eval/lfm3_v42_dev_complete.jsonl with huggingface_hub
Verified signaturebad28ae -
Upload eval/lfm3_v42_dev_screenqa.jsonl.manifest.json with huggingface_hub
Verified signature2200a59 -
Upload eval/lfm3_v42_dev_odyssey.jsonl.manifest.json with huggingface_hub
Verified signaturef285da1 -
Upload eval/lfm3vl2b-v42-lora_ft.jsonl.manifest.json with huggingface_hub
Verified signatured12ab4d -
Upload eval/lfm3_v42_dev_odyssey.jsonl with huggingface_hub
Verified signature077d1e7 -
Upload eval/lfm3_v42_dev_odyssey.metrics.json with huggingface_hub
Verified signature7136bda -
Upload eval/lfm3_v42_dev_amex.jsonl.manifest.json with huggingface_hub
Verified signatureb0f6b4f -
Upload eval/lfm3_v42_dev_answer.jsonl with huggingface_hub
Verified signature37e6dbf -
Upload eval/lfm3vl2b-v41-lora_ft_general_logprob.jsonl with huggingface_hub
Verified signature7e60d88 -
Upload eval/lfm3vl2b-v41-lora_ft_general_logprob.summary.json with huggingface_hub
Verified signaturebaedf39 -
Upload eval/lfm3vl2b-v41-lora_ft.metrics.json with huggingface_hub
Verified signature67189d1 -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signatureeb03df5 -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature6feee52 -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature937169b -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature4daf12d -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signatureb34bb33 -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature82cc617 -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature3f14090 -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature09fd1ae -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature4a08ae9 -
Upload eval/lfm3vl2b-v41-lora_ft.jsonl with huggingface_hub
Verified signature57193bd