Image-Text-to-Text
Transformers
Safetensors
Korean
English
qwen3_5
gui-agent
web-agent
computer-use
browser
korean
conversational
Instructions to use KORMo-VL/KORMo-Web-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KORMo-VL/KORMo-Web-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="KORMo-VL/KORMo-Web-4B") 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("KORMo-VL/KORMo-Web-4B") model = AutoModelForMultimodalLM.from_pretrained("KORMo-VL/KORMo-Web-4B", 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 KORMo-VL/KORMo-Web-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "KORMo-VL/KORMo-Web-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KORMo-VL/KORMo-Web-4B", "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/KORMo-VL/KORMo-Web-4B
- SGLang
How to use KORMo-VL/KORMo-Web-4B 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 "KORMo-VL/KORMo-Web-4B" \ --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": "KORMo-VL/KORMo-Web-4B", "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 "KORMo-VL/KORMo-Web-4B" \ --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": "KORMo-VL/KORMo-Web-4B", "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 KORMo-VL/KORMo-Web-4B with Docker Model Runner:
docker model run hf.co/KORMo-VL/KORMo-Web-4B
Add How to Start (Chrome extension) section and setup guide video
Browse files- .gitattributes +1 -0
- README.md +37 -0
- assets/setup_guide.mp4 +3 -0
.gitattributes
CHANGED
|
@@ -38,3 +38,4 @@ assets/demo.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
| 38 |
assets/GUI_agent_dem.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
assets/gui_final_demo_dubbed.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 40 |
assets/gui_final_demo_maksed.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 38 |
assets/GUI_agent_dem.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
assets/gui_final_demo_dubbed.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 40 |
assets/gui_final_demo_maksed.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
assets/setup_guide.mp4 filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -83,6 +83,43 @@ KORMo-Web-4B outperforms open web agents of similar size in both English and Kor
|
|
| 83 |
- **Multi-site, multi-tab workflows.** It can search on one site, verify on another and write the result into a third, managing tabs on its own.
|
| 84 |
- **Open and ready to run.** Apache-2.0 weights, a reference browser harness, the tool schema and the exact inference settings are all included.
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
## Quickstart
|
| 87 |
|
| 88 |
Tested with **vLLM 0.23.0** and **transformers 5.12.1**. The model runs on a single GPU (TP=1).
|
|
|
|
| 83 |
- **Multi-site, multi-tab workflows.** It can search on one site, verify on another and write the result into a third, managing tabs on its own.
|
| 84 |
- **Open and ready to run.** Apache-2.0 weights, a reference browser harness, the tool schema and the exact inference settings are all included.
|
| 85 |
|
| 86 |
+
## How to Start: Chrome Extension
|
| 87 |
+
|
| 88 |
+
The fastest way to try KORMo-Web is the **[KORMo-Web Chrome extension](https://github.com/MLP-Lab/KORMo-Web-Extension)**: type a request in Chrome's side panel and watch the agent work in your own browser. This video walks through the whole setup, from serving the model to running a task and controlling it from Discord.
|
| 89 |
+
|
| 90 |
+
<video src="https://huggingface.co/KORMo-VL/KORMo-Web-4B/resolve/main/assets/setup_guide.mp4" controls playsinline preload="metadata" width="100%"></video>
|
| 91 |
+
|
| 92 |
+
*Setup guide (about 15 min, Korean narration). Parts that showed account tokens have been blurred.*
|
| 93 |
+
|
| 94 |
+
**1. Serve the model.** Pick one.
|
| 95 |
+
|
| 96 |
+
- **Mac (Apple silicon):** run the 4-bit MLX build with `vllm-mlx`. Simple, but slower.
|
| 97 |
+
|
| 98 |
+
```bash
|
| 99 |
+
uv venv --python 3.12 && source .venv/bin/activate
|
| 100 |
+
uv pip install vllm-mlx
|
| 101 |
+
vllm-mlx serve KORMo-VL/KORMo-Web-4B-mlx-4bit --port 8010 --mllm
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
- **GPU server:** serve this model with vLLM. Much faster, and one server can be shared.
|
| 105 |
+
|
| 106 |
+
```bash
|
| 107 |
+
vllm serve KORMo-VL/KORMo-Web-4B --host 0.0.0.0 --port 8000 \
|
| 108 |
+
--served-model-name KORMo-Web-4B \
|
| 109 |
+
--mm-encoder-tp-mode data --mm-processor-cache-type shm \
|
| 110 |
+
--gdn-prefill-backend triton
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
Check it with `curl http://localhost:8010/v1/models` (use your server address and port for vLLM).
|
| 114 |
+
|
| 115 |
+
**2. Install the extension.** `git clone https://github.com/MLP-Lab/KORMo-Web-Extension.git`, open `chrome://extensions`, turn on **Developer mode**, click **Load unpacked** and choose the cloned folder. Open the **GUI 에이전트** side panel, type a task and press **실행** (Run).
|
| 116 |
+
|
| 117 |
+
**3. Using a GPU server?** In the panel's **개발자 설정** (Developer settings), set the server URL (ending in `/v1`), the model name (`KORMo-Web-4B`), and `tool_choice` to `none`. The Mac default needs no change.
|
| 118 |
+
|
| 119 |
+
**4. Discord (optional).** Run `node relay/discord-relay.mjs` in the cloned folder and follow the prompts to send tasks to the agent by mentioning a bot in a channel.
|
| 120 |
+
|
| 121 |
+
Full step-by-step instructions (Korean) are in the [extension README](https://github.com/MLP-Lab/KORMo-Web-Extension).
|
| 122 |
+
|
| 123 |
## Quickstart
|
| 124 |
|
| 125 |
Tested with **vLLM 0.23.0** and **transformers 5.12.1**. The model runs on a single GPU (TP=1).
|
assets/setup_guide.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e60ff6f4d272b3edc59ec93abf7c5fe0bb72dbba77819820e5fc4c8d8db85633
|
| 3 |
+
size 52314090
|