/ Модель

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

Контекст
128 000 токенов
Параметры
7,1 млрд
Размер весов
16,6 ГБ
Лицензия
Apache 2.0
Архитектура
qwen2_5_vl · dense
Базовая модель
Qwen2.5-VL-7B-Instruct
Библиотека
transformers
Опубликована
3 мар 2026

IntroSVG-Qwen2.5-VL-7B

Изображение и текст → текст3 профессии
71скачиваний за 30 дней3лайкавеса обновлены19 апр 2026

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

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

Мультимодальная модель для генерации SVG-кода по текстовому описанию с возможностью визуально оценивать и уточнять результат.

IntroSVG-Qwen2.5-VL-7B — мультимодальная модель на базе Qwen2.5-VL-7B-Instruct, дообученная командой gitcat404 для генерации SVG-кода по текстовому описанию. Модель содержит 7,1 млрд параметров, использует архитектуру Qwen2.5-VL и принимает текстовые запросы, а в режиме критики также анализирует изображения отрендеренных SVG. Контекст модели — до 128 000 токенов.

Модель предназначена для создания и итеративного улучшения векторных иконок, простых иллюстраций, логотипов, диаграмм и элементов интерфейса. В цикле генератор-критик она создает SVG, оценивает результат по его рендеру и при необходимости вносит исправления; для этого режима нужны инструменты рендеринга SVG, например cairosvg/Cairo. Обучение включало SFT, curriculum learning, CoT и DPO на данных для генерации, исправления и критики SVG.

Сложные композиции и мелкие детали могут упрощаться, а текст внутри SVG — отображаться с артефактами из-за шрифтов и кернинга. Итеративная критика увеличивает время генерации; для более сложных изображений результат требует проверки человеком. Преимущественно англоязычные обучающие запросы могут снижать качество на других языках. Лицензия — Apache-2.0.

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

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

Ограничения

Сложные сцены и мелкие детали могут упрощаться, а текст внутри SVG — отображаться с артефактами; итеративная критика увеличивает задержку и требует установленного рендерера SVG. Обучающие запросы преимущественно англоязычные, поэтому качество на других языках может быть ниже; результаты для сложных задач требуют проверки человеком.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

IntroSVG-Qwen2.5-VL-7B

Learning from Rendering Feedback for Text-to-SVG Generation via an Introspective Generator–Critic Framework

Accepted by CVPR 2026 🎉

arXiv GitHub Dataset


Model Summary

IntroSVG-Qwen2.5-VL-7B is an end-to-end vision-language model that generates high-quality SVG (Scalable Vector Graphics) code directly from natural language descriptions. The model is fine-tuned from Qwen2.5-VL-7B-Instruct through a multi-stage training pipeline that combines supervised fine-tuning (SFT), curriculum learning, chain-of-thought (CoT) reasoning, and direct preference optimization (DPO).

The defining feature of IntroSVG is its introspective generator–critic framework: a single unified model alternates between two roles — generator (producing SVG code) and critic (rendering and evaluating its own output) — enabling an iterative generate → evaluate → refine loop at inference time.

Model Details

PropertyValue
Base modelQwen/Qwen2.5-VL-7B-Instruct
Parameters~7B
ArchitectureVision-Language Model (VLM)
Modalities (input)Text prompts and rendered SVG images (during the critique stage)
Modality (output)SVG source code
Training dataSVG-1M (custom corpus, ~1M samples)
Training paradigmSFT → DPO with curriculum learning and CoT
LicenseApache 2.0

Method Overview

The model is built through three core stages:

1. Data Construction

A mixed corpus is synthesized using an early-checkpoint model and a teacher VLM, comprising three subsets:

  • Direct generation ($\mathcal{D}_G^{\text{direct}}$) — text-to-SVG pairs
  • Correction ($\mathcal{D}_G^{\text{correction}}$) — flawed SVGs paired with refinements
  • Critique ($\mathcal{D}_C$) — rendered SVGs paired with critique feedback

2. Supervised Fine-Tuning (SFT)

A unified VLM is trained on the mixed dataset, simultaneously acquiring:

  • SVG generation capability
  • SVG critique capability

3. Direct Preference Optimization (DPO)

A teacher VLM scores generated preference pairs, which are used to further optimize the generator policy $M_{\text{Policy}}$ via the DPO loss.

Introspective Inference Loop

At inference time, the same model performs a closed-loop introspective process:

  1. Generate an initial SVG from the prompt.
  2. Switch to the critic role: render the SVG and evaluate it.
  3. Assign a quality score based on the critique.
  4. If unsatisfactory, use the critique to guide the next round of correction.

This loop allows the model to refine its outputs iteratively without any external evaluator.

Intended Use

Primary use cases

  • Text-to-SVG generation for icons, simple illustrations, logos, diagrams, and UI elements
  • Programmatic vector graphics design as a creative co-pilot
  • Research on vision-language reasoning, code generation, and self-refinement methods

Out-of-scope use

  • The model is not intended for generating photorealistic raster images.
  • It is not optimized for generating extremely complex artwork or production-ready brand assets without human review.
  • It should not be used to produce misleading, infringing, or otherwise harmful imagery.

How to Use

Installation

# 1. Clone the repository
git clone https://github.com/gitcat-404/IntroSVG.git
cd IntroSVG

# 2. Create environment
conda create -n introsvg python=3.10 -y
conda activate introsvg

# 3. System dependency for cairosvg (Linux)
sudo apt update
sudo apt install libcairo2 libcairo2-dev

# 4. Python dependencies
pip install torch==2.5.1+cu124 torchvision==0.20.0+cu124 \
    --index-url https://download.pytorch.org/whl/cu124
pip install -r requirements.txt

Download model weights

pip install huggingface_hub
hf download gitcat404/IntroSVG-Qwen2.5-VL-7B \
    --local-dir Models/IntroSVG-Qwen2.5-VL-7B

Inference (recommended: lmdeploy server)

We recommend serving the model with lmdeploy for accelerated inference. Example with 4 GPUs:

CUDA_VISIBLE_DEVICES=0,1,2,3 lmdeploy serve api_server \
    "Models/IntroSVG-Qwen2.5-VL-7B" \
    --tp 4 \
    --server-port 23333

Then run the introspective inference loop on a CSV of prompts:

python inference_loop.py \
    --MODEL_NAME Models/IntroSVG-Qwen2.5-VL-7B \
    --CSV_FILE example/test.csv \
    --OUTPUT_DIR your_output_folder

An example prompt file is provided at example/test.csv in the GitHub repository — each row contains one text prompt for SVG generation.

Quick start with transformers

from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor

model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
    "gitcat404/IntroSVG-Qwen2.5-VL-7B",
    torch_dtype="auto",
    device_map="auto",
)
processor = AutoProcessor.from_pretrained("gitcat404/IntroSVG-Qwen2.5-VL-7B")

prompt = "A minimalist red apple with a green leaf."
messages = [{"role": "user", "content": [{"type": "text", "text": prompt}]}]

text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=[text], return_tensors="pt").to(model.device)

output_ids = model.generate(**inputs, max_new_tokens=2048)
svg_code = processor.batch_decode(
    output_ids[:, inputs.input_ids.shape[1]:],
    skip_special_tokens=True,
)[0]
print(svg_code)

💡 To unlock the full introspective refinement loop (generate → render → critique → correct), please use inference_loop.py from the official repository — it handles SVG rendering and feeds the rendered image back to the model in its critic role.

Training

All experiments were conducted on 8 × NVIDIA A800 GPUs, using the LLaMA-Factory training pipeline.

Required artifacts:

Place the data under LLaMA-Factory/data/ and launch training with:

sh train_sft.sh

For DPO and the full multi-stage recipe, please refer to the scripts and configs in the official repository.

Limitations

  • Visual complexity ceiling. Highly intricate scenes, dense compositions, or fine-grained textures remain difficult to express in SVG and may produce simplified outputs.
  • Text rendering inside SVGs can be imperfect (font substitution, kerning artifacts).
  • Latency. The introspective loop trades inference time for quality; single-pass generation is faster but less polished.
  • Language coverage. Training prompts are predominantly English; performance on other languages may degrade.
  • Rendering dependency. The critic stage requires a working cairosvg / Cairo installation to rasterize intermediate SVGs.

Citation

If you find IntroSVG useful in your research, please cite our paper:

@article{wang2026introsvg,
  title   = {IntroSVG: Learning from Rendering Feedback for Text-to-SVG Generation
             via an Introspective Generator-Critic Framework},
  author  = {Wang, Feiyu and Yang, Jiayuan and Zhao, Zhiyuan and Zhang, Da and
             Li, Bingyu and Liu, Peng and Gao, Junyu},
  journal = {arXiv preprint arXiv:2603.09312},
  year    = {2026}
}

Acknowledgements

This work builds on the excellent open-source ecosystem around:

License

This model is released under the Apache 2.0 license. Please ensure your use of the model also complies with the license terms of the underlying Qwen2.5-VL-7B-Instruct base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen2_5_VLForConditionalGeneration
Ревизия весов
5da60d6

0 моделей