/ Модель

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

Контекст
262 144 токена
Лицензия
Своя лицензия
Архитектура
qwen3_5 · dense
Базовая модель
Qwen3.5-0.8B
Библиотека
transformers
Опубликована
16 окт 2026

Universal-Prompt-Enhancer-0.8B

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

Компактная мультимодальная модель Qwen, которая превращает запросы и изображения в JSON-промпты для генераторов изображений, видео и звука.

323скачиваний за 30 дней6лайковвеса обновлены16 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Universal-Prompt-Enhancer-0.8B — компактная мультимодальная модель, разработанная Shantanu Goel и дообученная на базе Qwen3.5-0.8B. Она преобразует краткие запросы, а для редактирования и режимов с изображением — также исходное изображение, в структурированный JSON с улучшенным промптом и параметрами для генераторов изображений, видео, звуковых эффектов и музыки. Модель выдаёт текст и JSON, но сама не создаёт изображения, видео или аудио. В карточке указаны архитектура Qwen3.5 и формат SafeTensors; README описывает дообучение с LoRA, при этом зрительная часть базовой модели оставалась замороженной.

Модель рассчитана на подготовку промптов для генерации и редактирования изображений, видео и звука. Описаны режимы преобразования текста в изображение и видео, редактирования изображений и дополнительные режимы для других типов генераторов. Данные обучения охватывают английский и несколько других языков, но языковая разметка неполная и не подтверждает качество для всех перечисленных языков. Лицензия указана как other; конкретные условия использования следует проверить в файлах репозитория.

Качество экспериментальное: в тестовой оценке JSON был корректен в 99,18% случаев, но автоматические проверки не гарантируют сохранение смысла, отрицательных ограничений или намерения пользователя. В сравнении с моделью-учителем модель выигрывала заметно реже; независимой проверки качества результатов в генераторах не проводилось. Для безопасного применения рекомендуется проверять JSON и переписанный промпт перед передачей генератору.

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

  • улучшение текстового запроса для генерации изображения
  • подготовка промпта для редактирования изображения с учётом исходного кадра
  • составление промпта для генерации видео
  • описание звукового эффекта для аудиогенератора
  • структурирование запроса и ограничений в JSON для генератора

Ограничения

Модель может выдавать корректный JSON, не сохраняя смысл запроса или отрицательные ограничения; автоматические тесты не проверяют это надёжно. Качество ниже уровня модели-учителя, а проверка результатов в целевых генераторах не проводилась; качество по языкам и поддерживаемым режимам не подтверждено полноценной независимой оценкой.

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

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

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

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

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

Открыть на Hugging Face

Universal-Prompt-Enhancer-0.8B

Built with Qwen. Improved using Qwen. Public research/evaluation release.

A small multimodal prompt compiler fine-tuned from Qwen3.5-0.8B. It turns a rough request and optional source image into JSON for image, video, sound, and music generators. It produces prompts, not images, video, or audio. Quality is experimental: valid JSON does not imply faithful preservation of intent or negative constraints.

Examples

These are actual Q6_K outputs with greedy decoding and thinking disabled. The model returns JSON; below we show its rewritten_prompt and relevant fields. Full responses are in release_validation.json and evaluation/sample_outputs.json.

Text to image

Input (mode: t2i, target: generic):

three red robots, square image

Output prompt:

Three red robots standing in a row, square image format, studio lighting, clean background, high detail, realistic textures, 8k resolution

The JSON also contains "aspect_ratio": "1:1" and "constraints": ["three", "red"].

Image editing

Input (mode: edit, target: generic), with a source photo of a girl boarding a school bus:

make the girl ginger

Output prompt:

Change the girl's hair color to ginger, keeping her identity, clothing, backpack, and the school bus unchanged.

Sound effects

Input (mode: sfx, target: stable-audio):

Rain on a tin roof for 10 seconds, no thunder, no music.

Output prompt:

Continuous, steady rainfall striking a corrugated tin roof. The sound features a dense, high-frequency metallic patter with sharp, bright onsets and quick decays. The texture is consistent and immersive, filling the stereo field. No thunder, no wind, no music. The acoustic environment is dry and close-mic'd, emphasizing the direct impact of water droplets on the metal surface. The intensity remains constant throughout the 10-second duration.

The JSON also contains "duration_s": 10.

Supported modes

ModeTargets
t2igeneric, qwen-image-2.1
editgeneric, qwen-image-2.1
t2vgeneric-video, wan2.2, hunyuanvideo-1.5
i2vgeneric-video, wan2.2, hunyuanvideo-1.5
sfxgeneric-audio, stable-audio
musicgeneric-audio, stable-audio

Wan2.2 and HunyuanVideo-1.5 i2v conventionally produce Chinese; most other targets produce English. Language labels in the corpus are incomplete and are not a claim of evaluated coverage across all languages. Image input is intended for edit/i2v.

Format

Use the exact system prompt in student_system.txt and a user message:

Mode: t2i
Target: generic
User request: three red robots holding a sign saying "HELLO", square image

The output keys are rewritten_prompt (string), aspect_ratio (string, empty when unspecified), ratio_follow (string, commonly "True" or empty; not a JSON boolean), duration_s (number or null), and constraints (list of strings). The constraints list is a partial lexical extraction, not a complete representation of intent. Check output before passing it to a generator.

Training and provenance

  • Base: Qwen/Qwen3.5-0.8B. Local weight content verified against revision 2fc06364715b967f1860aea9cf38778875588b17; the original download revision was not recorded.
  • Rank-16 LoRA, alpha 32, dropout 0.05; 10,822,656 trainable parameters. Language projections trained, vision tower frozen.
  • 39,729 train / 2,271 validation / 2,184 test rows. Two epochs, 4,968 optimizer steps, batch 1 × accumulation 16, learning rate 1e-4 with cosine scheduling, BF16.
  • Run: DGX Spark GB10; recorded software torch 2.14.1+cu130, transformers 5.18, peft 0.21.2. Training scripts are in reproducibility/; training is not rerun at release.
  • Bulk teacher and A/B judge: turboderp/Qwen3.8-Flash-Next-exl3, revision 55a732e0c4c3d4614bc42b68493bb930d9b02c0a, 4.05bpw_h6_ng6 EXL3.
  • Image teachers: Qwen/Qwen-Image-2.1-PE-T2I at f3ed7985c788ad75b3ab7223e0c4c51e2a43545b, and PE-I2I at 72927bc08afc99b7888ceb7d7d51a12db3700bbd; exact upstream teacher prompts were used. Teacher weights are not included.

Evaluation and limitations

Historical base+adapter BF16 evaluation on 2,184 test records:

MetricResultDenominator
JSON validity99.18%all 2,184 rows
Constraint checks98.75%2,166 valid JSON rows
Target conventions97.74%2,166 valid JSON rows
All checks pass95.79%all 2,184 rows
All checks pass, conditional96.58%2,166 valid JSON rows

There are 18 invalid JSON records spanning 16 unique original IDs. JSON validity missed the 99.5% goal; target conventions missed 99%. Earlier reports used 96.58% as the combined score without emphasizing the valid-JSON denominator. The unconditional result is 95.79%. Automatic checks are lexical heuristics; they miss semantic reversals, some negative constraints, word counts, and translated colors. Test records include repeated IDs. Splits have disjoint concept keys, but some original source identities overlap; see provenance/release_audit.json.

A/B: 592 judged pairs of 596 attempted, randomized order. Student wins 18.07%, teacher reference wins 68.24%, ties 13.68%. The judge is the same model as the bulk teacher: this is not an independent evaluation. Downstream generator A/B validation was not performed. This is a compact student, not teacher parity.

Merge verification: 99.26% top-1 agreement over 23,597 teacher-forced positions; BF16 rounding can change long greedy generations. Historical BF16 scores above are not a fresh full evaluation of the merged downloadable checkpoint.

Historical GGUF comparison, same 500 held-out records per arm, 768-token cap:

FormatJSON validAll checksGeneration tok/sWeight size
BF16 GGUF99.2%98.2%1221.52 GB
Q8_098.2%97.0%1760.81 GB
Q6_K (recommended)98.8%98.0%1970.63 GB
Q4_K_M99.4%97.6%2070.53 GB

The GGUF suite uses lexical checks and omits the separate HF convention checks; its all-checks metric is not directly comparable with the BF16 full suite. The small sample does not establish quantization equivalence. Speed is specific to this machine and workload; projector is an additional 207 MB. Approximately 2–3 GB runtime memory was reported for Q6_K plus projector at 8k context.

Actual sample behavior

Q6_K, greedy, thinking disabled (2026-10-16; raw JSON in evaluation/sample_outputs.json):

  • Image editing, photo provided: “make the girl ginger” → “Change the girl's hair color to ginger, keeping her identity, clothing, backpack, and the school bus unchanged.”
  • Sound: rain on tin roof, 10 seconds, no thunder/music → descriptive rainfall prompt with duration 10 and both exclusions preserved.
  • Failure: Hindi sunset request → output says sunrise.
  • Failure: paper boat, static camera, no people → Chinese output introduces background pedestrians. Duration 5 and static camera were retained.
  • Overrestriction: piano, 80 BPM, no drums/vocals → adds no bass.
  • Ambiguity: three robots holding a sign → makes each robot hold a sign.

All six samples parsed as JSON; that did not catch these semantic problems. Use for exploratory generative-media preprocessing with human review.

Related repositories

Licensing

See LICENSE.md, NOTICE, and LICENSES/. The base is Apache-2.0; the release as a whole is not advertised as Apache-2.0. Teacher distillation terms and MusicCaps-derived content require care. Research-only student terms are conservative and do not imply clearance for commercial use. This release does not claim that selecting generic targets removes obligations.

Citation

@misc{goel2026universalpromptenhancer,
  author = {Goel, Shantanu},
  title = {Universal Prompt Enhancer 0.8B},
  year = {2026},
  url = {https://huggingface.co/shantanugoel/Universal-Prompt-Enhancer-0.8B}
}

Run with Transformers

Install torch, transformers>=5.18, accelerate, peft, pillow, and huggingface_hub in an environment compatible with your GPU. Public downloads do not require authentication.

hf download shantanugoel/Universal-Prompt-Enhancer-0.8B --local-dir upe
python upe/examples/infer_transformers.py --model ./upe \
  --mode t2i --target generic --request 'three red robots, square image'
python upe/examples/infer_transformers.py --model ./upe \
  --mode edit --target generic --request 'make the hair ginger' \
  --image /path/to/source.jpg

The helper uses AutoModelForImageTextToText, the saved processor, the exact system prompt, thinking disabled, greedy decoding, and a 4096-token output cap. The adapter helper loads its pinned base and applies PEFT. Image requests must include the image placeholder and actual pixels. No teacher model is needed.

Release verification

Before publication, the release was downloaded into a separate cache and checked against its SHA-256 manifests. Dataset records/images were checked, and downloaded merged, adapter, and Q6_K models passed text/image inference smoke checks. See release_validation.json for pinned tested revisions and outputs. These checks verify packaging and I/O, not prompt quality, full benchmark reproduction, or public-release licensing clearance.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей