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-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KORMo-VL/KORMo-Web-9B 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-9B") 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-9B") model = AutoModelForMultimodalLM.from_pretrained("KORMo-VL/KORMo-Web-9B", 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-9B 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-9B" # 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-9B", "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-9B
- SGLang
How to use KORMo-VL/KORMo-Web-9B 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-9B" \ --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-9B", "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-9B" \ --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-9B", "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-9B with Docker Model Runner:
docker model run hf.co/KORMo-VL/KORMo-Web-9B
How to Start: separate Mac and NVIDIA GPU instructions per model
Browse files
README.md
CHANGED
|
@@ -91,30 +91,38 @@ The fastest way to try KORMo-Web is the **[KORMo-Web Chrome extension](https://g
|
|
| 91 |
|
| 92 |
*Setup guide (about 15 min, Korean narration). Parts that showed account tokens have been blurred.*
|
| 93 |
|
| 94 |
-
**1. Serve the model
|
| 95 |
|
| 96 |
-
|
| 97 |
|
| 98 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
-
|
| 107 |
-
vllm serve KORMo-VL/KORMo-Web-9B --host 0.0.0.0 --port 8000 \
|
| 108 |
-
--served-model-name KORMo-Web-9B \
|
| 109 |
-
--mm-encoder-tp-mode data --mm-processor-cache-type shm \
|
| 110 |
-
--gdn-prefill-backend triton
|
| 111 |
-
```
|
| 112 |
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|
|
|
|
|
|
|
|
|
|
| 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 |
|
|
|
|
| 91 |
|
| 92 |
*Setup guide (about 15 min, Korean narration). Parts that showed account tokens have been blurred.*
|
| 93 |
|
| 94 |
+
**1. Serve the model** on a Mac or on an NVIDIA GPU.
|
| 95 |
|
| 96 |
+
### Mac (Apple silicon)
|
| 97 |
|
| 98 |
+
Run the model with `vllm-mlx`. Keep this terminal open.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
+
```bash
|
| 101 |
+
uv venv --python 3.12 && source .venv/bin/activate
|
| 102 |
+
uv pip install vllm-mlx
|
| 103 |
+
vllm-mlx serve KORMo-VL/KORMo-Web-9B --port 8010 --mllm
|
| 104 |
+
```
|
| 105 |
|
| 106 |
+
### NVIDIA GPU (local PC or server)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
+
Serve the model with vLLM. Much faster, and one server can be shared.
|
| 109 |
+
|
| 110 |
+
```bash
|
| 111 |
+
pip install vllm
|
| 112 |
+
vllm serve KORMo-VL/KORMo-Web-9B --host 0.0.0.0 --port 8000 \
|
| 113 |
+
--served-model-name KORMo-Web-9B \
|
| 114 |
+
--mm-encoder-tp-mode data --mm-processor-cache-type shm \
|
| 115 |
+
--gdn-prefill-backend triton
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
Check that it is up with `curl http://localhost:8010/v1/models` (Mac) or `curl http://<server>:8000/v1/models` (vLLM).
|
| 119 |
|
| 120 |
**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).
|
| 121 |
|
| 122 |
+
**3. Point the extension at your model.** Open the panel's **๊ฐ๋ฐ์ ์ค์ ** (Developer settings).
|
| 123 |
+
|
| 124 |
+
- **Mac:** keep the server URL `http://localhost:8010/v1` and set the model name to `KORMo-VL/KORMo-Web-9B`. `tool_choice` stays `auto`.
|
| 125 |
+
- **NVIDIA GPU:** set the server URL to `http://<server>:8000/v1` (or `localhost`), the model name to `KORMo-Web-9B`, and `tool_choice` to `none`.
|
| 126 |
|
| 127 |
**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.
|
| 128 |
|