/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
55,6 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.8-27B
Библиотека
transformers
Опубликована
7 ноя 2026

Qwen3.8-27B-HTML

Изображение и текст → текст3 профессии

Дообученная Qwen3.8-27B, которая по текстовому запросу создаёт оформленные HTML-страницы с карточками, таблицами, выносками и SVG-графикой.

100скачиваний за 30 дней0лайковвеса обновлены8 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

wesjos/Qwen3.8-27B-HTML — дообученная модель на основе Qwen/Qwen3.8-27B, опубликованная автором wesjos. Она генерирует визуально оформленные HTML-страницы формата .ai-view в ответ на запросы, превращая объяснения в карточки, таблицы, выноски и встроенную SVG-графику. Для включения этого формата требуется системная инструкция «You are Mario-html…»; без неё модель обычно отвечает как базовая Qwen3.8 в Markdown. Модель принимает текст и сохраняет возможность работы с изображениями благодаря неизменённому визуальному модулю, однако настройка обучалась только на текстовых данных и не улучшает анализ изображений.

Полная версия содержит 27,78 млрд параметров, распространяется в BF16 в формате safetensors и использует архитектуру Qwen3_5ForConditionalGeneration. В README рекомендуется контекст не менее 32 768 токенов: длинные рассуждения могут занимать 8–10 тысяч токенов и обрезать страницу при тесном ограничении контекста. Модель лучше сохраняет оформление на английском, чем на китайском; русскоязычное качество отдельно не описано. Обучение формы вывода не добавляет модели новых фактических знаний, сложная вложенность и интерактивный JavaScript ей не по силам, а Markdown может появляться вместе с HTML. Лицензия — Apache-2.0.

Сценарии применения

  • создание визуальных объяснений учебных тем в виде HTML-страницы
  • сборка сравнительных таблиц и карточек по текстовому запросу
  • генерация страниц с формулами, схемами и встроенными SVG-иллюстрациями
  • оформление краткого обзора темы с предупреждениями и ключевыми выводами

Ограничения

Для формата .ai-view требуется явная системная инструкция; без неё модель обычно выдаёт обычный Markdown. Качество оформления на китайском ниже, модель не улучшает анализ изображений, может смешивать HTML с Markdown, а сложная вложенность и интерактивный JavaScript ей не по силам.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

📦 What this repo is

A fine-tune of Qwen3.8-27B, distributed as full BF16 weights so it loads with a plain from_pretrained — no adapter to mount. The same tune is also published as a 42 MB LoRA adapter if you prefer to attach it to the base.

ReleaseSizeUse it when
This repo — fine-tuned, full BF1655.6 GB (18 shards)You want from_pretrained with no adapter step
Adapter42 MBYou have the base cached, or you want the bundled WebUI
GGUF adapter21 MBllama.cpp / llama-server, mounted at runtime

⚠️ The trigger prompt is not baked into this repo's chat template. This repo ships the generic Qwen3.8 template; the Mario-html system prompt exists only in the adapter repo's chat_template.jinja. Pass it explicitly, as shown below, or the model falls back to ordinary 27B behaviour (long Markdown answers).


🖼 Showcase


✨ What it does

The trigger is one system prompt:

You are Mario-html. You are a helpful assistant who generates nice visual content.

Output convention (from the training data; the reference WebUI keys off these class names):

<div class="ai-view">
  <h2>Title</h2>
  <div class="summary"><p class="lead">…</p></div>
  <div class="card">…</div>
  <table class="modern-table">…</table>
</div>

The chain of thought is kept intact — it was masked out of the loss, so the tune changes how it writes, not how it thinks.


🚀 Quickstart

transformers

import torch
from transformers import AutoProcessor, AutoModelForImageTextToText

MODEL = "wesjos/Qwen3.8-27B-HTML"
SYSTEM = "You are Mario-html. You are a helpful assistant who generates nice visual content."

processor = AutoProcessor.from_pretrained(MODEL)
model = AutoModelForImageTextToText.from_pretrained(
    MODEL, dtype=torch.bfloat16, device_map="auto"
)

messages = [
    {"role": "system", "content": SYSTEM},   # required here: not baked into the chat template
    {"role": "user", "content": "Build a page introducing black holes"},
]
text = processor.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True,
    enable_thinking=True, reasoning_effort="medium",
)
inputs = processor(text=text, return_tensors="pt").to(model.device)
out = model.generate(
    **inputs, max_new_tokens=4096, do_sample=True,
    temperature=1.0, top_p=0.95, top_k=20, min_p=0.0,
)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

4-bit (smaller cards)

from transformers import BitsAndBytesConfig

bnb = BitsAndBytesConfig(
    load_in_4bit=True, bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16, bnb_4bit_use_double_quant=True,
)
model = AutoModelForImageTextToText.from_pretrained(
    MODEL, quantization_config=bnb, device_map="auto"
)

Download

hf download wesjos/Qwen3.8-27B-HTML --local-dir Qwen3.8-27B-HTML

WebUI

The FastAPI + single-page frontend that renders .ai-view live ships with the adapter repo. It speaks the OpenAI /v1/chat/completions protocol (backend_mode: "api"), so serve this fine-tune behind any OpenAI-compatible server that supports Qwen3.5 and set API_URL / MODEL_ALIAS to that endpoint.

llama.cpp

This repo ships safetensors only. For llama.cpp, mount the 21 MB adapter at runtime:

llama-server -m Qwen3.8-27B-UD-Q4_K_M.gguf \
  --lora mario-html-27b-lora-f16.gguf \
  --mmproj mmproj-F16.gguf \
  -c 131072 -ngl 99 -fa on --jinja --port 18080

🎛 Sampling

SituationSetting
Normal pagetemperature 1.0 / top_p 0.95 / top_k 20 / min_p 0
Thinking lengthreasoning_effort="medium" — low is shorter; xhigh burns 20k+ tokens and truncates the page
HTML only, no reasoningenable_thinking=False — under ~90 tokens of thinking, but the format occasionally drifts
Context131,072 recommended (xhigh eats 8k–10k tokens per turn), max_new_tokens 16384

The template in this repo accepts xhigh / medium / low (high is mapped to xhigh) and defaults to xhigh. For this tune, override it.


📊 Measured

Prompt (no format instructions)Result
Explain how neural networks learn, with a visual summary and a comparison table..ai-view + 5 cards + 3 tables
Build a page introducing black holes.ai-view + 13 cards + 2 tables + 7 h2

⚙️ Training setup

ItemValue
BaseQwen/Qwen3.8-27B (QLoRA training in 4-bit nf4)
MethodQLoRA, r=16 / alpha=32 / dropout=0
Target modulesq_proj, k_proj, v_proj, o_proj of the 16 full-attention layers
Trainable params≈ 10.5M (0.04% of 27.78B), 42 MB adapter
Release formatfull BF16 weights, 18 shards, 55.6 GB (trained as a QLoRA adapter)

💡 Notes

  • The system prompt is a hard trigger. Without it this repo behaves like the base model: long Markdown, no .ai-view blocks.
  • The tune learned form, not facts — facts and arithmetic still come from the base model.
  • Training ran against the 4-bit base; this release contains full-precision weights. If you need the exact adapter behaviour, mount the LoRA adapter on Qwen/Qwen3.8-27B instead.
  • Image input still works — the vision tower is untouched — but this adapter was trained on text only; it does not make the model better at looking at screenshots.

⚠️ Limitations

  • Complex nesting and interactive JavaScript are out of reach for a 10.5M-parameter attention-only tune.
  • Keep ctx ≥ 32,768. xhigh alone can consume 8k–10k tokens, and a tight context slices the page mid-sentence (finish_reason=length).
  • Training data is mostly English — Chinese prompts work, layout stability is slightly lower.
  • Markdown is not suppressed at the token level; a page can still contain a stray Markdown block alongside the HTML.

📁 Files

FileWhat it is
model-00001-of-00018.safetensors … model-00018-of-00018.safetensorsBF16 weights, 55.6 GB total
model.safetensors.index.jsonshard map (27,781,427,952 parameters)
config.jsonQwen3_5ForConditionalGeneration, 64 layers, 262,144 max positions
generation_config.jsongeneration defaults
chat_template.jinjageneric Qwen3.8 template — no Mario-html trigger
tokenizer.json · tokenizer_config.jsontokenizer, 248,320 vocab
processor_config.jsonimage / video preprocessing
demos/screenshots, the 28 s recording and the 12 s OpenWebUI clip used above
LICENSEApache-2.0

📜 License & attribution

Apache-2.0, inherited from Qwen/Qwen3.8-27B. Qwen is a trademark of its respective owner; this is an unofficial community tune and is not affiliated with or endorsed by the Qwen team.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3_5ForConditionalGeneration
Ревизия весов
ed2268e

0 моделей