Image-Text-to-Text
Transformers
Safetensors
lfm2_vl
browser-automation
gui-understanding
vision-language-model
webbrain
conversational
Instructions to use webbrain-one/webbrain-vl-2-450M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use webbrain-one/webbrain-vl-2-450M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="webbrain-one/webbrain-vl-2-450M") 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("webbrain-one/webbrain-vl-2-450M") model = AutoModelForMultimodalLM.from_pretrained("webbrain-one/webbrain-vl-2-450M", 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 webbrain-one/webbrain-vl-2-450M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "webbrain-one/webbrain-vl-2-450M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "webbrain-one/webbrain-vl-2-450M", "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/webbrain-one/webbrain-vl-2-450M
- SGLang
How to use webbrain-one/webbrain-vl-2-450M 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 "webbrain-one/webbrain-vl-2-450M" \ --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": "webbrain-one/webbrain-vl-2-450M", "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 "webbrain-one/webbrain-vl-2-450M" \ --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": "webbrain-one/webbrain-vl-2-450M", "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 webbrain-one/webbrain-vl-2-450M with Docker Model Runner:
docker model run hf.co/webbrain-one/webbrain-vl-2-450M
Download eval/base-summary.json from webbrain-one/webbrain-vl-2-450M: direct link, hf CLI and curl.
- Browser
- Download file 5.38 kB
-
https://huggingface.co/webbrain-one/webbrain-vl-2-450M/resolve/main/eval/base-summary.json
- Command line
-
hf download hf://webbrain-one/webbrain-vl-2-450M/eval/base-summary.json
-
curl -L -o base-summary.json https://huggingface.co/webbrain-one/webbrain-vl-2-450M/resolve/main/eval/base-summary.json
5.38 kB
| { | |
| "schemaVersion": 1, | |
| "createdAt": "2026-08-21T17:46:56.876Z", | |
| "model": "lfm25-vl-450m-base", | |
| "endpoint": "http://127.0.0.1:8000/v1/chat/completions", | |
| "promptMode": "production", | |
| "productionUserText": "Describe this screenshot of the current browser viewport for a web-automation agent. Follow the format in the system prompt.", | |
| "promptSha256": "8465a0e60af8f3e4dcc5ff188a7682c22b1d52974db54ccb42ff8a1a5346a207", | |
| "overall": { | |
| "cases": 100, | |
| "scored": 100, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.04171031746031747, | |
| "meanLatencyMs": 560.82 | |
| }, | |
| "byDifficulty": { | |
| "easy": { | |
| "cases": 20, | |
| "scored": 20, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.05486111111111112, | |
| "meanLatencyMs": 461.15 | |
| }, | |
| "basic": { | |
| "cases": 20, | |
| "scored": 20, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.06378968253968254, | |
| "meanLatencyMs": 399.85 | |
| }, | |
| "intermediate": { | |
| "cases": 20, | |
| "scored": 20, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.05128968253968254, | |
| "meanLatencyMs": 899.75 | |
| }, | |
| "advanced": { | |
| "cases": 20, | |
| "scored": 20, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.02361111111111111, | |
| "meanLatencyMs": 592.35 | |
| }, | |
| "challenging": { | |
| "cases": 20, | |
| "scored": 20, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.015, | |
| "meanLatencyMs": 451 | |
| } | |
| }, | |
| "byCategory": { | |
| "authentication": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 619 | |
| }, | |
| "search-results": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 392.6 | |
| }, | |
| "checkout": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 448.2 | |
| }, | |
| "form-validation": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 377.4 | |
| }, | |
| "modal-overlay": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 330.4 | |
| }, | |
| "toast-notification": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 337.8 | |
| }, | |
| "loading-state": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 339.4 | |
| }, | |
| "consent-banner": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 477.4 | |
| }, | |
| "dashboard": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 542.8 | |
| }, | |
| "chart-reading": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.2, | |
| "meanLatencyMs": 391.6 | |
| }, | |
| "data-table": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.08571428571428572, | |
| "meanLatencyMs": 654.4 | |
| }, | |
| "email-compose": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 1022 | |
| }, | |
| "kanban-board": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.08571428571428572, | |
| "meanLatencyMs": 436.6 | |
| }, | |
| "calendar": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 455 | |
| }, | |
| "map-and-travel": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.28500000000000003, | |
| "meanLatencyMs": 428.8 | |
| }, | |
| "photo-understanding": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0.17777777777777776, | |
| "meanLatencyMs": 2387 | |
| }, | |
| "multilingual-ocr": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 398 | |
| }, | |
| "occlusion-and-contrast": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 359.8 | |
| }, | |
| "security-challenge": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 476 | |
| }, | |
| "uncertainty-calibration": { | |
| "cases": 5, | |
| "scored": 5, | |
| "errors": 0, | |
| "successes": 0, | |
| "successRate": 0, | |
| "meanScore": 0, | |
| "meanLatencyMs": 342.2 | |
| } | |
| } | |
| } | |