🖼️ Demo
All shots are the WebUI (shipped with the Qwen3.5-4B-HTML-v2 repo,
theme_preset: editorial) with the CoT toggle switched on — its webui/config.json ships
enable_thinking: false, which hides the reasoning panel entirely, so flip it if you want to see
the traces. The panel above each answer is the raw <think> stream; the page below it is the
unmodified render.
Microservices vs. Monolith — comparison grid
Compare Microservices vs Monolith architecture in a modern comparison grid
(two-card grid, callouts, metric tiles and a head-to-head table; reasoning panel collapsed)
Step-by-step math, CoT expanded
Solve the linear equation: 2x + 5 = 17 step by step
(the <think> stream is pure plain-text planning — zero HTML tags — while the answer renders as
cards, code blocks and a stepper)
llama photo + what is this (image paste via Ctrl+V, answered as a llama-vs-alpaca breakdown)
📤 Output Contract
One root element; everything else is an optional child. Class list verified against
webui/static/theme.css (shipped with the Qwen3.5-4B-HTML-v2 repo):
Table with columns: Component, Markup| Component | Markup |
|---|
| Root | <div class="ai-view"> |
| Summary | <div class="summary"> · <div class="summary-card"> · <p class="lead"> |
| Card | <div class="card"> |
| Grid | <div class="grid grid-2"> · <div class="grid grid-3"> |
| Metrics | <div class="metric-group"><div class="metric-card"><span class="metric-label">…</span><span class="metric-value">…</span><span class="metric-sub">…</span></div></div> |
| Stepper | <div class="stepper"><div class="step-item">…</div></div> |
| Callout | <div class="callout callout-info|warning|success|danger"><div class="callout-header">…</div></div> |
| Badge | <span class="badge badge-info|success|warning|danger|accent"> |
| Table | <div class="table-container"><table class="modern-table">…</table></div> |
| Feature list | <div class="feature-list"><div class="feature-item">…</div></div> |
| Code block | <div class="code-box"><div class="code-header"><span class="code-title">…</span></div>…</div> |
<div class="ai-view"><h3>为什么天空是蓝色的?</h3><div class="summary"><p class="lead">阳光中的蓝光被大气中的分子"散射"到四面八方,而我们的眼睛对蓝光更敏感,所以我们看到天空是蓝色的。</p></div><div class="card"><h4>三句话解释</h4><div class="step-list"><div class="step-item">…</div></div></div></div>
The <think> trace that precedes this sample contains zero HTML tags — pure plain-text planning
("a summary lead, then a three-item stepper..."). Two classes in the sample are content-only:
step-list and ai-view-header are not in theme.css, so they render with default block styling —
define your own if you want tighter control. (step-item itself is styled.)
🎨 WebUI
The WebUI ships with the sibling 4B repo — clone wesjos/Qwen3.5-4B-HTML-v2, point webui/config.json at your serving endpoint for this model, and:
cd webuipip install -r requirements.txtpython server.py --port 8791
Open http://localhost:8791. Dual-stream rendering (collapsible <think> + live HTML), clipboard
image paste (Ctrl+V), nine theme presets (default · apple · notion · cyber · editorial ·
cards_rounded · glassmorphism · soft_shadows · compact) plus live custom CSS, and a
raw-source / copy-HTML view per message.
⚠️ Notes
- The output is HTML, not Markdown. Feed it a Markdown renderer and you get raw tags.
- Serve with a clear/absent system prompt — the zero-system-prompt path is the trained one.
- The model picks from the class vocabulary above; arbitrary new CSS classes are not a contract.
Custom
theme.css is the supported way to restyle.
- Arithmetic is reliable but not bank-grade — check long decimal chains.
--reasoning-parser qwen3 needs a recent vLLM.
📄 License
Apache License 2.0.