/ Модель

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

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

QwenStoryteller

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

Дообученная Qwen2.5-VL модель, которая создаёт связные истории по нескольким изображениям, сохраняя персонажей и предметы между кадрами.

45скачиваний за 30 дней9лайковвеса обновлены16 мая 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QwenStoryteller — это дообученная с помощью LoRA модель Qwen2.5-VL-7B от Daniel3303 для создания связных историй по последовательностям изображений. Она анализирует персонажей, предметы, места и развитие событий, стараясь сохранять идентичность сущностей между кадрами и связывать элементы повествования с визуальными ссылками. Модель содержит 7,1 млрд параметров, построена на архитектуре Qwen2.5-VL и рассчитана на контекст до 128 000 токенов; для работы использует текст и изображения, а выдаёт текст.

Модель предназначена для визуального повествования с привязкой к содержимому кадров. Также она выполняет обнаружение объектов и ориентиров, повторную идентификацию объектов между изображениями и анализ сцен. По данным README, дообученная версия показала на 12,3% меньше галлюцинаций, чем базовая, однако может путать похожих людей и предметы; обучающие данные из фильмов могут хуже отражать любительские и повседневные сцены. Лицензия — Apache-2.0.

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

  • создание истории по последовательности изображений
  • описание развития событий между кадрами
  • отслеживание персонажей и предметов в серии изображений
  • обнаружение объектов и ориентиров на изображениях
  • составление структурированного анализа сцены перед рассказом

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

QwenStoryteller

QwenStoryteller is a fine-tuned version of Qwen2.5-VL 7B specialized for grounded visual storytelling with cross-frame consistency, capable of generating coherent narratives from multiple images while maintaining character and object identity throughout the story.

Model Description

Base Model: Qwen2.5-VL 7B
Training Method: LoRA fine-tuning (rank 2048, alpha 4096)
Training Dataset: StoryReasoning

QwenStoryteller processes sequences of images to perform:

  • End-to-end object detection
  • Cross-frame object re-identification
  • Landmark detection
  • Chain-of-thought reasoning for scene understanding
  • Grounded story generation with explicit visual references

The model was fine-tuned on the StoryReasoning dataset using LoRA with a rank of 2048 and alpha scaling factor of 4096, targeting self-attention layers of the language components. Training used a peak learning rate of 1×10⁻⁴ with batch size 32, warmup for the first 3% of steps for 4 epochs, AdamW optimizer with weight decay 0.01, and bfloat16 precision.

System Prompt

The model was trained with the following system prompt, and we recommend using it as it is for inference.

You are an AI storyteller that can analyze sequences of images and create creative narratives. 
First think step-by-step to analyze characters, objects, settings, and narrative structure. 
Then create a grounded story that maintains consistent character identity and object references across frames. 
Use <think></think> tags to show your reasoning process before writing the final story.

Key Features

  • Cross-Frame Consistency: Maintains consistent character and object identity across multiple frames through visual similarity and face recognition techniques
  • Structured Reasoning: Employs chain-of-thought reasoning to analyze scenes with explicit modeling of characters, objects, settings, and narrative structure
  • Grounded Storytelling: Uses specialized XML tags to link narrative elements directly to visual entities
  • Reduced Hallucinations: Achieves 12.3% fewer hallucinations compared to the non-fine-tuned base model

Usage

from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
from qwen_vl_utils import process_vision_info
import torch
from PIL import Image

# Load the model
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
    "daniel3303/QwenStoryteller", torch_dtype="auto", device_map="auto"
)

# Load processor
processor = AutoProcessor.from_pretrained("daniel3303/QwenStoryteller")

# Load images
images = [
    Image.open("image1.jpg"),
    Image.open("image2.jpg"),
    Image.open("image3.jpg"),
    Image.open("image4.jpg"),
    Image.open("image5.jpg")
]

# Create image content list
image_content = []
for img in images:
    image_content.append({
        "type": "image",
        "image": img,
    })

# Add text prompt at the end
image_content.append({"type": "text", "text": "Generate a story based on these images."})

# Create messages with system prompt
messages = [
    {
        "role": "system", 
        "content": "You are an AI storyteller that can analyze sequences of images and create creative narratives. First think step-by-step to analyze characters, objects, settings, and narrative structure. Then create a grounded story that maintains consistent character identity and object references across frames. Use <think></think> tags to show your reasoning process before writing the final story."
    },
    {
        "role": "user",
        "content": image_content,
    }
]

# Preparation for inference
text = processor.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True
)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
    text=[text],
    images=image_inputs,
    videos=video_inputs,
    padding=True,
    return_tensors="pt",
)
inputs = inputs.to(model.device)

# Inference: Generation of the output
generated_ids = model.generate(
    **inputs, 
    max_new_tokens=4096,
    do_sample=True,
    temperature=0.7,
    top_p=0.9
)
generated_ids_trimmed = [
    out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
story = processor.batch_decode(
    generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
)[0]

print(story)

Using vLLM for faster inference

For significantly faster inference, you can use vLLM to serve the model. Simply install vLLM and run:

# Install vLLM
pip install vllm

# Serve the model with vLLM
vllm serve daniel3303/QwenStoryteller

Output Format

QwenStoryteller produces two main outputs:

  1. Chain-of-Thought Analysis (<think></think>): A structured analysis containing:

    • Character tables with consistent identity references, emotions, actions, and spatial locations
    • Object tables with functions, interactions, and spatial coordinates
    • Setting tables categorizing environmental elements
    • Narrative structure tables modeling story progression
  2. Grounded Story: A narrative with specialized XML tags linking text to visual elements:

    • <gdi>: Image tags for specific frames
    • <gdo>: Entity reference tags for character and object mentions
    • <gda>: Action tags for character actions
    • <gdl>: Location/landmark tags for background elements

Limitations

  • Re-identification relies primarily on object appearance rather than overall context, which can lead to confusion with similar-looking objects/persons
  • Movie-derived training data introduces biases from cinematic composition that may not generalize to candid visual sequences
  • Low grounding rates for first-person pronouns as they primarily appear in character dialogues
  • May still produce hallucinations, albeit at a reduced rate compared to the base model

Citation

@misc{oliveira2025storyreasoningdatasetusingchainofthought,
      title={StoryReasoning Dataset: Using Chain-of-Thought for Scene Understanding and Grounded Story Generation}, 
      author={Daniel A. P. Oliveira and David Martins de Matos},
      year={2025},
      eprint={2505.10292},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2505.10292}, 
}

Contact

For questions or feedback regarding this model, please contact:

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей