PerRing commited on
Commit
d766b25
ยท
verified ยท
1 Parent(s): 767f343

Copy model card from KORMo-Web-4B with vllm-mlx quickstart

Browse files
Files changed (1) hide show
  1. README.md +217 -5
README.md CHANGED
@@ -1,10 +1,222 @@
1
  ---
2
- license: other
3
- base_model: GUIAgentt/qwen35-4b-final-rw3b-s2-len90k-3ep-4n
 
 
 
 
 
 
 
4
  tags:
 
5
  - gui-agent
6
  - web-agent
7
- - mlx
8
- library_name: mlx
9
- pipeline_tag: image-text-to-text
10
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - KORMo-VL/KORMo-Web-4B
5
+ base_model_relation: quantized
6
+ language:
7
+ - ko
8
+ - en
9
+ pipeline_tag: image-text-to-text
10
+ library_name: mlx
11
  tags:
12
+ - mlx
13
  - gui-agent
14
  - web-agent
15
+ - computer-use
16
+ - browser
17
+ - korean
18
  ---
19
+
20
+ <style>
21
+ #kormo-web-card { font-size: 16px; line-height: 1.6; overflow-wrap: break-word; }
22
+ #kormo-web-card h1 { margin: 0 0 12px; font-size: 30px; line-height: 1.25; letter-spacing: -0.018em; }
23
+ #kormo-web-card h2 { margin: 30px 0 10px; font-size: 22px; line-height: 1.3; letter-spacing: -0.012em; }
24
+ #kormo-web-card h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.4; }
25
+ #kormo-web-card h2 + h3 { margin-top: 14px; }
26
+ #kormo-web-card p { margin: 0 0 10px; }
27
+ #kormo-web-card ul, #kormo-web-card ol { margin: 6px 0 12px; padding-left: 22px; }
28
+ #kormo-web-card li { margin: 4px 0; line-height: 1.55; }
29
+ #kormo-web-card table { width: 100%; margin: 6px 0 14px; border-collapse: collapse; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
30
+ #kormo-web-card th, #kormo-web-card td { padding: 7px 10px; vertical-align: middle; }
31
+ #kormo-web-card blockquote { margin: 12px 0 16px; padding: 0 0 0 14px; font-size: 15px; }
32
+ #kormo-web-card blockquote p { margin: 0; }
33
+ #kormo-web-card pre { margin: 10px 0 14px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
34
+ #kormo-web-card pre code { font-size: 13px; }
35
+ #kormo-web-card > p:has(> em:only-child) { margin: 4px 0 14px; font-size: 13px; }
36
+ #kormo-web-card .pills { margin: 4px 0 18px; }
37
+ #kormo-web-card .pill { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(127,127,127,.35); font-size: 13px; }
38
+ @media (max-width: 640px) {
39
+ #kormo-web-card h1 { font-size: 26px; }
40
+ #kormo-web-card table { font-size: 13px; }
41
+ #kormo-web-card th, #kormo-web-card td { padding: 7px 6px; }
42
+ }
43
+ </style>
44
+
45
+ <div id="kormo-web-card">
46
+
47
+ <video src="https://huggingface.co/KORMo-VL/KORMo-Web-4B/resolve/main/assets/gui_final_demo_dubbed.mp4" controls autoplay muted loop playsinline width="100%"></video>
48
+
49
+ # KORMo-Web-4B
50
+
51
+ **KORMo-Web-4B** is a 4B vision-language agent that completes real browser tasks **from screenshots alone**. Give it a request in Korean or English; it plans, clicks, types and moves between sites and tabs until the task is done. In the same live-web evaluation, it beats every open-weight web agent we compared, **by +9.6 points in English and +22.1 points in Korean**.
52
+
53
+ On **Online-Mind2Web** it reaches **42.3% in English** and **42.3% in Korean**, which is **+22.3 / +28.8 points** over the base Qwen3.5-4B.
54
+
55
+
56
+ ## What Makes KORMo-Web Different?
57
+
58
+ - **10M+ Atomic-Level Web Pretraining Samples.** Large-scale Korean and English web understanding pretraining teaches the model what individual UI elements **are, where they are, and what they do**โ€”covering text, location, appearance, layout, function, and state.
59
+ - **100K+ Web Interaction Trajectories.** Bilingual browser demonstrations teach the model to translate fine-grained web understanding into real-world, multi-step actions.
60
+ - **Open Models and Data.** Releasing model weights, large-scale bilingual web pretraining data, interaction trajectories, and evaluation benchmarks to support reproducible web agent research.
61
+
62
+ ## Performance
63
+
64
+ All models below ran **the same 612 live-website tasks** (300 English, 312 Korean), each with its own prompt and action format, and were scored by **the same LLM judge**.
65
+
66
+ | Model | Size | Online-Mind2Web EN | Online-Mind2Web KO |
67
+ |---|---:|---:|---:|
68
+ | Qwen3.5-4B (base, no fine-tuning) | 4B | 20.0 | 13.5 |
69
+ | Fara-1.5-4B | 4B | 20.7 | 7.7 |
70
+ | UI-TARS-1.5-7B | 7B | 22.3 | 20.2 |
71
+ | OpenWebRL-4B | 4B | 32.7 | 15.4 |
72
+ | **KORMo-Web-4B (ours)** | **4B** | **42.3** | **42.3** |
73
+ | KORMo-Web-9B (ours) | 9B | 51.0 | 48.1 |
74
+
75
+
76
+ Success rate (%). The denominator is always the full task count, so crashed or empty runs count as failures.
77
+
78
+ KORMo-Web-4B outperforms open web agents of similar size in both English and Korean.
79
+
80
+ ## Why KORMo-Web
81
+
82
+ - **Korean and English, natural requests.** Handles short commands as well as long, conversational instructions in either language.
83
+ - **Screenshot-only.** It needs no DOM or accessibility tree; it acts on what is on screen, like a person, and checks each action's result on the next screenshot.
84
+ - **Thinks, then acts.** A short reasoning step precedes every action, so its behaviour is easy to inspect and debug.
85
+ - **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.
86
+ - **Open and ready to run.** Apache-2.0 weights, a reference browser harness, the tool schema and the exact inference settings are all included.
87
+
88
+ ## Quickstart
89
+
90
+ This repository holds the **4-bit MLX** weights of KORMo-Web-4B for Apple Silicon Macs. Serve it with **[vllm-mlx](https://github.com/waybarrios/vllm-mlx)** (0.6.0 or later), which exposes the same OpenAI-compatible API as vLLM.
91
+
92
+ ### Run the agent
93
+
94
+ **1. Install and download**
95
+
96
+ ```bash
97
+ pip install -U "vllm-mlx>=0.6.0" openai playwright huggingface_hub
98
+ playwright install chromium
99
+ huggingface-cli download KORMo-VL/KORMo-Web-4B-mlx-4bit --local-dir KORMo-Web-4B-mlx-4bit
100
+ # system prompt, tool schema and reference harness (shared with the full-precision repo)
101
+ huggingface-cli download KORMo-VL/KORMo-Web-4B system_prompt.md tools.json HARNESS.md examples/agent_playwright.py \
102
+ --local-dir KORMo-Web-4B-mlx-4bit
103
+ ```
104
+
105
+ **2. Start the model server**
106
+
107
+ ```bash
108
+ vllm-mlx serve ./KORMo-Web-4B-mlx-4bit --served-model-name KORMo-Web-4B --mllm --port 8000
109
+ ```
110
+
111
+ Do not enable `--enable-auto-tool-choice` or `--reasoning-parser`: the harness parses the raw `<think>` and `<tool_call>` text from the message content.
112
+
113
+ **3. Run a browser task**
114
+
115
+ ```bash
116
+ python KORMo-Web-4B-mlx-4bit/examples/agent_playwright.py --model KORMo-Web-4B \
117
+ --endpoint http://localhost:8000/v1 \
118
+ --task "๋‹ค๋ฐฉ์—์„œ ์›”ํ‰์—ญ ๊ทผ์ฒ˜ ๋ณด์ฆ๊ธˆ ์ฒœ๋งŒ์› ์ดํ•˜๋กœ ์„ค์ •ํ•œ๋’ค ์›๋ฃธ 3๊ฐœ์ •๋„ ์ฐพ์•„์„œ ์‚ดํŽด๋ณด๊ณ  ๋‹คํ•˜๋ฉด ์ฐพ์€ ๋‚ด์šฉ์„ ์นด์ด์ŠคํŠธ ๋ฉ”์ผ๋กœ mlplab@kaist.ac.kr ํ•œํ…Œ ์ •๋ฆฌํ•ด์„œ ๋ณด๋‚ด์ค˜"
119
+ ```
120
+
121
+ The agent opens Chromium, prints each action as it goes, and finishes with the model's answer.
122
+
123
+ ### Inference example (one step)
124
+
125
+ Send one screenshot with the request and get back one action:
126
+
127
+ ```python
128
+ import base64, json
129
+ from openai import OpenAI
130
+
131
+ SYSTEM = open("KORMo-Web-4B-mlx-4bit/system_prompt.md").read().strip()
132
+ TOOLS = json.load(open("KORMo-Web-4B-mlx-4bit/tools.json"))
133
+ shot = base64.b64encode(open("screen.png", "rb").read()).decode()
134
+
135
+ obs = ("<observation>\nscreen size: 1280 x 720\nCurrent tab: 0\nAvailable tabs:\n"
136
+ "- Tab 0 (active): https://www.google.com/\n\nurl: https://www.google.com/\nscreenshot:\n")
137
+ messages = [
138
+ {"role": "system", "content": SYSTEM},
139
+ {"role": "user", "content": [
140
+ {"type": "text", "text": "<user_request>\n๊ตฌ๊ธ€์—์„œ KAIST ๋ฅผ ๊ฒ€์ƒ‰ํ•ด์„œ ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€๋ฅผ ์—ด์–ด์ค˜.\n</user_request>\n" + obs},
141
+ {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{shot}"}},
142
+ {"type": "text", "text": "\n</observation>"},
143
+ ]},
144
+ ]
145
+ client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY") # vllm-mlx server
146
+ out = client.chat.completions.create(
147
+ model="KORMo-Web-4B", messages=messages, tools=TOOLS,
148
+ temperature=0.6, top_p=0.95, max_tokens=16384,
149
+ extra_body={"top_k": 20, "chat_template_kwargs": {"enable_thinking": True}},
150
+ )
151
+ print(out.choices[0].message.content)
152
+ ```
153
+
154
+ The output looks like this (illustrative):
155
+
156
+ ```text
157
+ <think>
158
+ I can see the Google home page with an empty search box in the center. I have not searched yet.
159
+ My plan: 1. Click the search box. 2. Type "KAIST". 3. Press Enter and open the official site.
160
+ </think>
161
+
162
+ <tool_call>
163
+ <function=click>
164
+ <parameter=x>
165
+ 500
166
+ </parameter>
167
+ <parameter=y>
168
+ 427
169
+ </parameter>
170
+ </function>
171
+ </tool_call>
172
+ ```
173
+
174
+ Coordinates in the tool call are normalized to 0โ€“1000. Convert them to pixels with `x / 1000 ร— width` and `y / 1000 ร— height`.
175
+
176
+ ## How It Works
177
+
178
+ ```
179
+ user <user_request> task </user_request> + observation (tabs, url, screenshot)
180
+ assistant <think> what I see ยท what is done ยท plan </think> <tool_call> one action </tool_call>
181
+ tool action result + new observation (newest screenshot only)
182
+ โ€ฆ repeat until finished(answer)
183
+ ```
184
+
185
+ - **Action space:** 22 browser tools: click, type, hotkey, scroll, drag, goto, tab control, `finished`, and others ([`tools.json`](tools.json)).
186
+ - **Memory:** the full text history of thoughts, actions and observations is kept. Only the current screenshot is sent.
187
+ - **Recommended settings:** temperature 0.6, top_p 0.95, top_k 20, thinking on, up to 16k tokens per step and 50 steps. These are already set in `generation_config.json`.
188
+
189
+ The exact message format, parsing rules and feedback strings are in **[HARNESS.md](HARNESS.md)**. Follow it if you build your own harness.
190
+
191
+ ## Evaluation Details
192
+
193
+ | | |
194
+ |---|---|
195
+ | Tasks | Online-Mind2Web: 300 English, 312 Korean |
196
+ | Judge | GPT-6 |
197
+
198
+ ## Files
199
+
200
+ | File | Description |
201
+ |---|---|
202
+ | `chat_template.jinja` | Chat template (Qwen3.5 XML tool calls, thinking on) |
203
+ | `system_prompt.md` ยท `tools.json` | System prompt and 22-tool schema, verbatim from training |
204
+ | `HARNESS.md` | Full harness specification |
205
+ | `examples/agent_playwright.py` | Reference browser agent (Playwright + OpenAI-compatible API). It does not execute `upload`. |
206
+ | `config.json` ยท `generation_config.json` ยท `processor_config.json` ยท `tokenizer*.json` | Model, sampling and processor configs |
207
+
208
+ ## ํ•œ๊ตญ์–ด ์š”์•ฝ
209
+
210
+ **KORMo-Web-4B**๋Š” ์‚ฌ๋žŒ์ฒ˜๋Ÿผ ์›น ํ™”๋ฉด์„ ๋ณด๊ณ  ํด๋ฆญยท์ž…๋ ฅยทํƒ์ƒ‰์„ ์ˆ˜ํ–‰ํ•˜๋Š” **4B ๊ทœ๋ชจ์˜ ํ•œ์˜ ์‹œ๊ฐ ๊ธฐ๋ฐ˜ ์›น ์—์ด์ „ํŠธ**์ž…๋‹ˆ๋‹ค.
211
+
212
+ - **๋Œ€๊ทœ๋ชจ ์›น ์‚ฌ์ „ํ•™์Šต:** 1,000๋งŒ ๊ฑด ์ด์ƒ์˜ ํ•œ์˜ ์›น ํ•™์Šต ์ƒ˜ํ”Œ๋กœ UI ์š”์†Œ์˜ ์œ„์น˜ยท์˜๋ฏธยท๊ตฌ์กฐยท๊ธฐ๋Šฅ ๏ฟฝ๏ฟฝ๏ฟฝ์„ ์„ธ๋ฐ€ํ•˜๊ฒŒ ํ•™์Šต(Atomic-Level Pretraining)
213
+ - **์‹ค์ œ ์›น ํ–‰๋™ ํ•™์Šต:** 10๋งŒ ๊ฑด ์ด์ƒ์˜ ํ•œ๊ตญ์ธ ํ•œ์˜ ์›น ์‚ฌ์šฉ ๊ถค์ ์„ ํ•™์Šตํ•ด ์—ฌ๋Ÿฌ ์›น์‚ฌ์ดํŠธ์™€ ํƒญ์„ ๋„˜๋‚˜๋“œ๋Š” ๋ณต์žกํ•œ ์ž‘์—… ์ˆ˜ํ–‰
214
+ - **๋›ฐ์–ด๋‚œ ์„ฑ๋Šฅ:** Online-Mind2Web์—์„œ ์˜์–ดยทํ•œ๊ตญ์–ด ๋ชจ๋‘ **42.3% ์„ฑ๊ณต๋ฅ **, ๋น„๊ตํ•œ ๊ณต๊ฐœ ๋ชจ๋ธ ์ค‘ ์ตœ๊ณ  ์„ฑ๋Šฅ(๊ธฐ์กด ์ตœ๊ณ  ๋Œ€๋น„ +9.6%p / +22.1%p)
215
+ - **์‹œ๊ฐ ์ค‘์‹ฌ ์›น ์กฐ์ž‘:** ๋ณ„๋„์˜ DOM ์ •๋ณด ์—†์ด ์Šคํฌ๋ฆฐ์ƒท๋งŒ์œผ๋กœ ์›น์„ ์ดํ•ดํ•˜๊ณ , ํ–‰๋™ ๊ฒฐ๊ณผ๋ฅผ ํ™•์ธํ•˜๋ฉฐ ๋‹ค์Œ ์ž‘์—… ์ˆ˜ํ–‰
216
+ - **๋ชจ๋ธยท๋ฐ์ดํ„ฐ ๊ณต๊ฐœ:** Apache-2.0 ๋ชจ๋ธ ๊ฐ€์ค‘์น˜, ๋Œ€๊ทœ๋ชจ ํ•™์Šต ๋ฐ์ดํ„ฐ, ์›น ์‚ฌ์šฉ ๊ถค์ , ํ‰๊ฐ€ ๋ฒค์น˜๋งˆํฌ ๋ฐ ์‹คํ–‰ ์ฝ”๋“œ ๊ณต๊ฐœ
217
+
218
+ ## Acknowledgements
219
+
220
+ Built on **[Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B)**. Evaluated on **Online-Mind2Web** and its Korean counterpart.
221
+
222
+ </div>