andhakanoon commited on
Commit
fa9d881
·
verified ·
1 Parent(s): 96e620a

model card: OUI-1 capitalisation

Browse files
Files changed (1) hide show
  1. README.md +8 -8
README.md CHANGED
@@ -13,9 +13,9 @@ language:
13
  - en
14
  ---
15
 
16
- # oui-1
17
 
18
- **oui-1** is the first diffusion model built for generative UI. It is a finetune of Google's
19
  DiffusionGemma 26B-A4B-it that writes user interface screens in
20
  [openui-lang](https://openui.com/docs), the declarative UI language behind
21
  [OpenUI](https://github.com/thesysdev/openui). It scores 71.7% on
@@ -41,8 +41,8 @@ it, so a screen arrives in about a second on one GPU.
41
 
42
  The [generative-ui-bench](https://github.com/thesysdev/generative-ui-bench) protocol: 46 screen
43
  briefs in five size bands, 4 generations each, thinking off, one shared system prompt for every
44
- model, scored by the benchmark's own validator. Base DiffusionGemma 24/184 (13.0%); oui-1
45
- 132/184 (71.7%). Raw outputs for oui-1 are committed to the benchmark repo so the number can be
46
  rescored offline.
47
 
48
  ![OpenUI score vs active parameters, open-weight models up to 31B active](scoreboard.png)
@@ -74,7 +74,7 @@ vLLM 0.24 or newer.
74
  ```bash
75
  pip install "vllm>=0.24"
76
  vllm serve thesysdev/OUI-1 --trust-remote-code --max-model-len 16384 --quantization fp8 \
77
- --served-model-name oui-1 --max-num-seqs 4 \
78
  --enable-auto-tool-choice --tool-call-parser gemma4
79
  ```
80
 
@@ -101,7 +101,7 @@ brief = """Status page for the platform team. Build a single screen for this. It
101
  2. a short note on the most recent incident and when it was resolved
102
  Cover every numbered item."""
103
  r = client.chat.completions.create(
104
- model="oui-1",
105
  messages=[{"role": "system", "content": system}, {"role": "user", "content": brief}],
106
  max_tokens=4096,
107
  stream=False,
@@ -145,7 +145,7 @@ tools = [{"type": "function", "function": {"name": "get_weather",
145
  "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}]
146
  msgs = [{"role": "system", "content": system + TOOL_RULE},
147
  {"role": "user", "content": "weather in Goa this weekend"}]
148
- r = client.chat.completions.create(model="oui-1", tools=tools, max_tokens=4096, messages=msgs)
149
  m = r.choices[0].message
150
  call = m.tool_calls[0] # get_weather({"city": "Goa"})
151
 
@@ -155,7 +155,7 @@ msgs.append({"role": "assistant", "content": m.content or "",
155
  "function": {"name": call.function.name,
156
  "arguments": call.function.arguments}}]})
157
  msgs.append({"role": "tool", "tool_call_id": call.id, "content": json.dumps(result)})
158
- r2 = client.chat.completions.create(model="oui-1", tools=tools, max_tokens=4096, messages=msgs)
159
  print(r2.choices[0].message.content) # the screen, built from the tool result
160
  ```
161
 
 
13
  - en
14
  ---
15
 
16
+ # OUI-1
17
 
18
+ **OUI-1** is the first diffusion model built for generative UI. It is a finetune of Google's
19
  DiffusionGemma 26B-A4B-it that writes user interface screens in
20
  [openui-lang](https://openui.com/docs), the declarative UI language behind
21
  [OpenUI](https://github.com/thesysdev/openui). It scores 71.7% on
 
41
 
42
  The [generative-ui-bench](https://github.com/thesysdev/generative-ui-bench) protocol: 46 screen
43
  briefs in five size bands, 4 generations each, thinking off, one shared system prompt for every
44
+ model, scored by the benchmark's own validator. Base DiffusionGemma 24/184 (13.0%); OUI-1
45
+ 132/184 (71.7%). Raw outputs for OUI-1 are committed to the benchmark repo so the number can be
46
  rescored offline.
47
 
48
  ![OpenUI score vs active parameters, open-weight models up to 31B active](scoreboard.png)
 
74
  ```bash
75
  pip install "vllm>=0.24"
76
  vllm serve thesysdev/OUI-1 --trust-remote-code --max-model-len 16384 --quantization fp8 \
77
+ --served-model-name OUI-1 --max-num-seqs 4 \
78
  --enable-auto-tool-choice --tool-call-parser gemma4
79
  ```
80
 
 
101
  2. a short note on the most recent incident and when it was resolved
102
  Cover every numbered item."""
103
  r = client.chat.completions.create(
104
+ model="OUI-1",
105
  messages=[{"role": "system", "content": system}, {"role": "user", "content": brief}],
106
  max_tokens=4096,
107
  stream=False,
 
145
  "parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]}}}]
146
  msgs = [{"role": "system", "content": system + TOOL_RULE},
147
  {"role": "user", "content": "weather in Goa this weekend"}]
148
+ r = client.chat.completions.create(model="OUI-1", tools=tools, max_tokens=4096, messages=msgs)
149
  m = r.choices[0].message
150
  call = m.tool_calls[0] # get_weather({"city": "Goa"})
151
 
 
155
  "function": {"name": call.function.name,
156
  "arguments": call.function.arguments}}]})
157
  msgs.append({"role": "tool", "tool_call_id": call.id, "content": json.dumps(result)})
158
+ r2 = client.chat.completions.create(model="OUI-1", tools=tools, max_tokens=4096, messages=msgs)
159
  print(r2.choices[0].message.content) # the screen, built from the tool result
160
  ```
161