/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.8-27B
Библиотека
llama.cpp
Опубликована
25 окт 2026

Qwen3.8-27B-HTML-LoRA-GGUF

Генерация текстаТекст → текст3 профессии

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

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

Бенчмарки

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

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

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

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

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

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

Это GGUF-адаптер LoRA для Qwen3.8-27B, созданный wesjos для генерации оформленных HTML-фрагментов: карточек, таблиц, выносок, формул и иллюстраций на SVG. Адаптер содержит 128 тензоров, занимает 21 МБ в формате F16 и подключается к базовой модели во время запуска; слияние весов не требуется. Для работы нужны базовая Qwen3.8-27B и файл шаблона чата, задающий триггер генерации HTML. В README описан контекст запуска до 131 072 токенов и пример использования через llama.cpp.

Модель подходит для создания визуально структурированных страниц и компонентов по текстовым запросам, например, объяснений научных тем, сравнительных таблиц и карточек. Обучение проводилось методом QLoRA на 830 преимущественно англоязычных инструкциях; китайские запросы тоже поддерживаются, но стабильность макета ниже. Адаптер влияет на формат подачи, а фактическая точность содержания зависит от базовой модели. Сложная вложенность и интерактивный JavaScript выходят за пределы его возможностей; режим мышления xhigh не рекомендуется. Лицензия — Apache-2.0.

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

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

Ограничения

Фактическая точность зависит от базовой модели; сложная вложенность HTML и интерактивный JavaScript адаптеру не подходят. Данные обучения преимущественно англоязычные, а режим мышления xhigh может расходовать много токенов и ухудшать результат.

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

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

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

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

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

Открыть на Hugging Face

🖼 Showcase

you may need some prompt to trigger model's html generation like:You are Mario-html. You are a helpful assistant who generates nice visual content.


📦 Files

FileWhat it is
mario-html-27b-lora-f16.gguf21 MB, f16, 128 tensors (16 full-attention layers × q/k/v/o × a/b), adapter.lora.alpha = 32 → runtime scale 2.0
chat_template.jinjarequired — carries the trigger system prompt
webui/FastAPI + single-page frontend, renders the model output live
demos/demo.mp428 s screen recording of that WebUI (1440p, 6.8 MB) — what the video above plays
demos/openwebui-test.mp412 s OpenWebUI recording of the same tune (1440p, 5.6 MB) — the second video above

🚀 Quickstart

Prerequisite: any Qwen3.8-27B GGUF as the base (Qwen3.8-27B-UD-Q4_K_M.gguf recommended; add mmproj-F16.gguf if you want vision).

llama-server \
  -m Qwen3.8-27B-UD-Q4_K_M.gguf \
  --lora mario-html-27b-lora-f16.gguf \
  --mmproj mmproj-F16.gguf \
  --chat-template-file chat_template.jinja \
  -c 131072 -ngl 99 -fa on --jinja \
  --alias qwen3.8-27b --host 0.0.0.0 --port 18080

⚠️ --chat-template-file chat_template.jinja is mandatory. The LoRA converter does not write a chat template into the adapter GGUF (this file has 10 metadata keys, no tokenizer.chat_template); llama.cpp falls back to the base GGUF's template, which is the stock one and has no trigger sentence. Without it the model never enters HTML mode.

Verify the adapter is mounted:

curl -s http://127.0.0.1:18080/lora-adapters
# [{"id":0,"path":".../mario-html-27b-lora-f16.gguf","scale":1.0,...}]

Verify the template took effect (should print 1):

curl -s http://127.0.0.1:18080/props | grep -c "You are Mario-html"

Toggle the adapter at runtime — no restart, no reload:

curl -X POST http://127.0.0.1:18080/lora-adapters -H 'Content-Type: application/json' -d '[{"id":0,"scale":0.0}]'  # off
curl -X POST http://127.0.0.1:18080/lora-adapters -H 'Content-Type: application/json' -d '[{"id":0,"scale":1.0}]'  # on

WebUI

cd webui
pip install -r requirements.txt
WEBUI_PORT=8798 API_URL=http://127.0.0.1:18080 MODEL_ALIAS=qwen3.8-27b ./run_webui.sh
# → http://<host>:8798

Reasoning switch (low / medium / high) next to the input, stored in localStorage; left pane chat, right pane live .html-canvas render (it recognises .ai-view / .card / .modern-table); “🖼 Add Image” works when the backend runs with --mmproj; the system prompt can be overridden at the bottom (empty = the trigger sentence from the template).

The frontend speaks plain OpenAI /v1/chat/completions; the only extra field is:

{ "chat_template_kwargs": { "enable_thinking": true, "reasoning_effort": "low" } }

reasoning_effort can also sit at the top level of the request (llama.cpp maps it into the template). Omitted = medium (the template's new default, down from xhigh).


🎛 Sampling

{
  "temperature": 1.0, "top_p": 0.95, "top_k": 20, "min_p": 0.0,
  "max_tokens": 16384,
  "chat_template_kwargs": { "enable_thinking": true, "reasoning_effort": "medium" }
}
  • The output is an HTML fragment (.ai-view / .card / .modern-table), not a full <!DOCTYPE html> page. Ask explicitly for a complete document, or edit the system sentence, if that's what you need.
  • Don't enable MTP speculative decoding (--spec-type draft-mtp): the draft head was trained on the base model, and hit rate collapses once this LoRA is on — measurably slower.

📊 Measured (RTX 4090 24 GB, Q4_K_M + this LoRA)

VRAM21.5 GiB (ctx 131072 + q8 KV, mmproj included)
Throughput~40 tok/s (1 slot, 131k context)
Build a page introducing black holes (no format hints).ai-view + 13 cards + 2 tables, ~70 s
English dataset-style prompt.ai-view + 5 cards + 3 tables, ~86 s

🧪 Training

Same adapter as the PEFT repo, converted to GGUF:

  • Base Qwen/Qwen3.8-27B (4-bit nf4 during training), QLoRA r16 / α32, q/k/v/o only, 10.5M trainable (0.04%)
  • 830 HTML instruction samples (730 with CoT), seq 5120, lr 2e-4, 2 epochs, bs 1 × grad-accum 16
  • No system prompt at train time; CoT was context but masked out of the loss → it changes how it writes, not how it thinks
  • One RTX 4090, 2.09 h / 103 optimizer steps

⚠️ Limitations

  • Form, not facts: content accuracy is still whatever the base model knows.
  • Attention layers only — heavy nesting and interactive JS are beyond it.
  • Context ≥ 32768; xhigh thinking can eat 8k–10k tokens per turn.
  • Training data is mostly English; Chinese prompts work with slightly looser layout stability.

📁 Related

RepoWhat it is
wesjos/Qwen3.8-27B-HTML-LoRAthe original 42 MB PEFT adapter
Qwen/Qwen3.8-27Bthe base model

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

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

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
22d9e01

0 моделей