/ Модель

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

Контекст
262 144 токена
Размер весов
71,9 ГБ
Архитектура
qwen3_5_moe · dense
Базовая модель
Qwen3.6-35B-A3B-FP8
Библиотека
transformers
Опубликована
30 ноя 2026

MoE-tikz-DPO-V3

Генерация текстаТекст → текст
172скачиваний за 30 дней0лайковвеса обновлены30 ноя 2026

Описание модели

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

Модель генерирует самостоятельный код TikZ/LaTeX по текстовому описанию рисунка, схемы или диаграммы.

MoE-tikz DPO V3 — модель Praha-Labs для преобразования текстового описания рисунка в самостоятельный документ TikZ/LaTeX. Она дообучена методом DPO на базе Qwen/Qwen3.6-35B-A3B-FP8; полный чекпойнт объединён в формате bf16, поэтому отдельный адаптер не требуется. Модель построена на архитектуре Qwen3.5 MoE и предназначена для генерации кода, который можно собрать векторный рисунок или схему.

Версия V3 улучшает компоновку: среди вариантов MoE-tikz у неё реже перекрываются подписи и фигуры, чем у V2, при этом V2 немного точнее передаёт содержание запроса. В README приведены результаты автоматической оценки на 150 запросах; оценки основаны на компиляции и автоматических судьях, а не на проверке людьми. По данным разработчика, часть результатов всё ещё содержит перекрытия или ошибки компиляции, например из-за вымышленных ключей TikZ и отсутствующих пакетов. Для использования рекомендуется режим без рассуждений с системным промптом из карточки. Лицензия в предоставленных данных не указана.

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

  • Создание диаграммы по текстовому описанию
  • Генерация TikZ-кода для научной иллюстрации
  • Подготовка LaTeX-документа с векторным рисунком
  • Создание схемы с подписями и геометрическими фигурами

Ограничения

По данным README, около 31% ответов всё ещё имеют некоторые перекрытия, а примерно 7% не компилируются из-за ошибок LaTeX. Автоматические оценки не проверялись людьми; V3 также немного уступает V2 в точности передачи содержания запроса.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

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

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

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

MoE-tikz DPO V3

Turns a natural-language description of a figure into a complete, standalone TikZ/LaTeX document.

This is Praha-Labs/MoE-tikz (a LoRA SFT of Qwen/Qwen3.6-35B-A3B-FP8) after a third round of DPO, merged into one full bf16 checkpoint. It needs no adapter: load it directly.

What V3 is for: cleaner layouts and reliability. It has the fewest overlapping labels and shapes and almost no repetition loops of all versions. MoE-tikz DPO V2 still scores slightly higher on content with the judges.

Results

150 prompts (100 held-out DaTikZ prompts + 50 hand-written ones), 3 samples per prompt (450 answers per model), temperature 0.7 / top_p 0.8 / top_k 20.

ModelCompiledPassed the gateLoopsOverlap rateDual judge scoreGain vs SFT [95% CI]Independent judge (Qwen3.8-27B)Solved in ≤ 3 tries
MoE-tikz (SFT)89.1%82.2%4.0%41.4%0.560baseline0.60258.7%
MoE-tikz DPO V183.6%82.0%12.4%–0.676+0.116 [+0.064, +0.170]–68.0%
MoE-tikz DPO V290.2%88.0%3.3%38.1%0.704+0.144 [+0.103, +0.188]0.77468.7%
MoE-tikz DPO V392.0%89.1%0.9%31.2%0.679+0.119 [+0.075, +0.163]0.72869.3%

V3 against V2, paired over prompts (95% CI):

V3 − V2
Overlap rate−5.4 points [−10.5, −0.5] (fewer overlaps)
Dual judge score−0.026 [−0.057, +0.006] (not significant)
Independent judge (Qwen3.8)−0.046 [−0.083, −0.009]

How the scores work:

  • Gate: every answer is compiled with pdflatex (no shell escape, 30 s limit, exactly 1 page). It is rejected if the result is blank, tiny, a text dump, or copies the prompt or judge-bait text.
  • Overlap rate: share of gate-passed answers where a PDF-based detector finds text on text, a line through text, text hidden under a fill, a legend or labelled box over data, or mostly tiny text.
  • Dual judge score: Gemma-4-26B-A4B-it and Qwen3.6-35B-A3B rate each rendered figure (faithfulness and layout); the average of the two, 0 for answers that fail the gate. Kept unchanged so V1–V3 are comparable.
  • Independent judge: Qwen3.8-27B with the same prompt; it was not used to build any training data.
  • Confidence intervals: paired bootstrap over prompts.

These are automatic judges, not human ratings.

What V3 changed vs V2

V2's preference signal could barely see layout: a third of the answers it trained on as "good" had overlapping labels or shapes, and no pair taught the model to avoid them. V3 rebuilds the signal:

V2V3
JudgesGemma-4-26B + Qwen3.6-35B, one 1–5 faithfulness and layout scoreGemma-4-26B + Inkling 2 Mini, each with a checklist: every requirement of the prompt marked ok / wrong / missing, and 8 yes/no layout defects
Overlap detectionnonePDF detector (text on text, line through text, hidden text, legend or box over data) or both judges agreeing on an overlap
Overlapping answers that could still be "chosen" (hand-labelled check)53%2%
Overlaps caught (hand-labelled check)26%88%
Pairs15,781 over 10,777 prompts19,287 over 12,163 prompts
Pairs that teach "avoid overlap"09,791
Other rejected kindswrong drawing 6,973 · compile/gate 7,702 · loop 1,106compile/gate 7,607 · loop 1,111 · wrong content 778

Everything else is the same as V2: same SFT start point, same rollouts (8 per prompt on 20k DaTikZ prompts, rescored), verified dataset reference code where no rollout was good, and the same training recipe.

Training

SettingValue
Start pointMoE-tikz (SFT), merged to bf16
Pairs19,287 over 12,163 prompts (3,970 with dataset reference code as chosen)
LossDPO (sigmoid) + SFT loss on the chosen answer (weights 1.0 / 0.5)
β0.1
LoRA (merged in)rank 32 / alpha 32, same target modules as the SFT adapter
LR / batch / epochs4e-5, global batch 32, 1 epoch, 25 warmup steps
Held-out pair accuracy0.854 (harder pairs than V2's: most differ only in layout)
FrameworkTRL 1.15 + Unsloth, 1 × B200

Usage

Trained in non-thinking mode with the system prompt below. Use the same prompt and enable_thinking=False.

from vllm import LLM, SamplingParams

SYSTEM_PROMPT = (
    "You are an expert in LaTeX and TikZ. Given a description of a figure, "
    "write a complete, compilable standalone LaTeX document that draws it with TikZ. "
    "Output only the LaTeX code."
)
llm = LLM("Praha-Labs/MoE-tikz-DPO-V3", max_model_len=8192)
messages = [
    {"role": "system", "content": SYSTEM_PROMPT},
    {"role": "user", "content": "Draw a right triangle ABC with the right angle at C marked by a small square, and label the sides a, b and c."},
]
out = llm.chat(messages, SamplingParams(temperature=0.7, top_p=0.8, top_k=20, max_tokens=4096),
               chat_template_kwargs={"enable_thinking": False})
print(out[0].outputs[0].text)

It also loads with transformers (AutoModelForImageTextToText / AutoProcessor, as for the Qwen3.6 base). Temperature 0.7 is recommended.

Limitations

  • V3 is slightly weaker than V2 at drawing exactly what was asked (independent judge −0.046). Only 778 of its pairs taught wrong-vs-right content, against 6,973 in V2.
  • About 31% of answers still have some overlap by the detector's count (V2: 38%, SFT: 41%).
  • About 7% of answers still fail to compile because of LaTeX errors that are not loops (invented TikZ keys, missing packages).
  • The scores come from automatic judges and a detector that also shaped training. They have not been checked against human ratings.

License

Follows the license of the base model, Qwen/Qwen3.6-35B-A3B-FP8.

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей