/ Модель

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

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

HAG-Qwen2.5-VL-7B-RU

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

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

13скачиваний за 30 дней0лайковвеса обновлены28 сен 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

HAG-Qwen2.5-VL-7B-RU — модель визуально-языкового семейства Qwen2.5-VL, разработанная для исследований по созданию подсказок о препятствиях для людей с нарушениями зрения. Это дообученная и объединённая версия Qwen/Qwen2.5-VL-7B-Instruct с 7,1 млрд параметров в формате BF16; она принимает статичное изображение уличной сцены от первого лица и формирует структурированный ответ на английском языке: описание опасности, её примерное направление и расстояние в шагах, а также рекомендацию по обходу. Если опасностей нет, модель должна вернуть специальный маркер. Контекст модели составляет до 128 000 токенов.

Модель предназначена для офлайн-оценки, воспроизведения экспериментов и создания исследовательских прототипов навигационных подсказок. В описанной оценке на 426 размеченных реальных тестовых изображениях вариант, дообученный на смешанном наборе реальных и синтетических Unity-сцен, показал более высокие метрики генерации текста и полноту обнаружения опасных сцен, чем рассмотренные варианты без дообучения.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

HAG-Qwen2.5-VL-7B-RU

HAG-Qwen2.5-VL-7B-RU is a BF16 merged checkpoint of Qwen/Qwen2.5-VL-7B-Instruct fine-tuned on the mixed-source Real-world and Unity-based (R+U) dataset from the study MLLM-Assisted Dataset Construction for Hazard-Aware Guidance for Individuals with Visual Impairments.

Reproducibility repository: Github: XCPeiyuan/Hazard-Aware-Guidance-HAG--Dataset

Dataset (Coming soon): Hugging Face: xcyuan/Hazard-Aware-Guidance-HAG_Dataset

The model takes a static first-person outdoor image and is intended to produce structured, English hazard-aware guidance. Its output schema uses three custom tokens:

<SAFE/>

or

<ALERT>hazard description, relative direction, and approximate distance in steps</ALERT>
<GUIDE>concrete avoidance guidance</GUIDE>

<SAFE/> denotes that no hazard is present in the current scene. <ALERT> describes the hazard, and <GUIDE> provides an avoidance instruction.

Inference prompts

The following Chinese and English prompts define the fixed output contract used for inference. The model must return either exactly <SAFE/>, or exactly one <ALERT>...</ALERT><GUIDE>...</GUIDE> pair, with no additional content.

Chinese:

{
  "content": "<image>你是一名协助盲人出行的虚拟志愿者。盲人正朝正前方行走。请根据场景判断前方是否安全:如果安全,只输出:<SAFE/>;如果存在危险,只输出(格式固定、简洁明了、不得添加其他内容):<ALERT>描述障碍物、方向和大致距离</ALERT><GUIDE>给出明确避让的动作指令</GUIDE>",
  "role": "user"
}

English:

{
  "content": "<image>You are a virtual assistant helping a blind person travel. The blind person is walking straight ahead. Please determine whether the path ahead is safe: If it is safe, output only: <SAFE/>; If there is hazard, output only (fixed format, concise, no additional content): <ALERT>Describe the obstacle, its direction, and approximate distance</ALERT><GUIDE>Provide clear instructions for avoidance actions</GUIDE>",
  "role": "user"
}

Model details

ItemValue
Base modelQwen/Qwen2.5-VL-7B-Instruct
Checkpoint typeMerged full model, BF16 safetensors
Fine-tuning dataMixed-source Real-world + Unity-based synthetic dataset (R+U)
Fine-tuning stageSupervised fine-tuning (SFT)
Fine-tuning methodLoRA, merged into the released checkpoint
LoRA rank8
LoRA target modulesAll trainable layers
Training epochs3
Per-device batch size2
Gradient accumulation steps4
Effective batch size8
Learning rate1.0e-4
Learning-rate scheduleCosine decay
Warmup ratio0.1
Maximum sequence length2,048
Training precisionBF16
Training frameworkLLaMA-Factory-based configuration

No class rebalancing or R/U mixing-ratio tuning was performed. The reported R+U setting uses the constructed dataset composition directly.

Intended use

This checkpoint is a research artifact for studying structured hazard-aware text generation from static first-person outdoor images. It may be used for research, reproduction of the reported model setting, and development or evaluation of assistive-navigation research prototypes.

The checkpoint is not a complete assistive-navigation system. It does not provide audio delivery, wearable feedback, temporal reasoning, dynamic-scene understanding, collision avoidance, or validated real-time mobile deployment.

⚠ Limitations and safety notice ⚠

This is an early research checkpoint for offline evaluation of structured hazard-aware guidance. It is not safety-certified and must not be used as the sole basis for real-world navigation or safety-critical decisions. Hazard recognition and distance/direction descriptions may be inaccurate, incomplete, or fail in unfamiliar conditions. Independent validation, human oversight, and additional safety measures are required before any real-world use.

The model was studied on single-frame daytime outdoor scenes. Its step-based distances are coarse approximations; reliable calibration residuals were not reported for the Real-world source. The reported evaluation is offline and does not demonstrate real-world walking safety, collision reduction, target-user usability, or mobile/edge deployability.

Installation

The released configuration records transformers==4.56.2. Install a compatible PyTorch build for your hardware, then install the following packages:

pip install "transformers==4.56.2" accelerate pillow

Minimal inference example

This example uses the published model identifier xcyuan/HAG-Qwen2.5-VL-7B-RU. It reproduces the essential inference path of the original experiment script: AutoModelForImageTextToText, a PIL RGB image, a user message whose content order is text followed by image, torch_dtype="auto", device_map="auto", and max_new_tokens=128.

Choose language="zh" for the Chinese prompt or language="en" for the English prompt. In the original serialized training/inference records, the prompt starts with <image>. In the Transformers message API below, the image is instead supplied by the separate {"type": "image", "image": image} content block; therefore, the text prompt deliberately omits the literal <image> prefix. Do not add it again when using this message representation.

import torch
from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor

model_id = "xcyuan/HAG-Qwen2.5-VL-7B-RU"

PROMPTS = {
    "zh": (
        "你是一名协助盲人出行的虚拟志愿者。盲人正朝正前方行走。"
        "请根据场景判断前方是否安全:如果安全,只输出:<SAFE/>;"
        "如果存在危险,只输出(格式固定、简洁明了、不得添加其他内容):"
        "<ALERT>描述障碍物、方向和大致距离</ALERT>"
        "<GUIDE>给出明确避让的动作指令</GUIDE>"
    ),
    "en": (
        "You are a virtual assistant helping a blind person travel. "
        "The blind person is walking straight ahead. Please determine whether "
        "the path ahead is safe: If it is safe, output only: <SAFE/>; "
        "If there is hazard, output only (fixed format, concise, no additional "
        "content): <ALERT>Describe the obstacle, its direction, and approximate "
        "distance</ALERT><GUIDE>Provide clear instructions for avoidance actions</GUIDE>"
    ),
}

model = AutoModelForImageTextToText.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
)
processor = AutoProcessor.from_pretrained(model_id)

def infer_one_image(image_path: str, language: str = "en") -> str:
    if language not in PROMPTS:
        raise ValueError("language must be 'zh' or 'en'")

    image = Image.open(image_path).convert("RGB")
    messages = [
        {
            "role": "user",
            "content": [
                {"type": "text", "text": PROMPTS[language]},
                {"type": "image", "image": image},
            ],
        }
    ]
    inputs = processor.apply_chat_template(
        messages,
        tokenize=True,
        add_generation_prompt=True,
        return_dict=True,
        return_tensors="pt",
    )
    inputs = {
        key: value.to(model.device) if isinstance(value, torch.Tensor) else value
        for key, value in inputs.items()
    }
    with torch.no_grad():
        generated_ids = model.generate(**inputs, max_new_tokens=128)

    # Preserve the original script's prompt-token trimming and decoding behavior.
    generated_ids_trimmed = [
        output_ids[len(input_ids):]
        for input_ids, output_ids in zip(inputs["input_ids"], generated_ids)
    ]
    return processor.batch_decode(
        generated_ids_trimmed,
        skip_special_tokens=True,
        clean_up_tokenization_spaces=False,
    )[0].strip()

print(infer_one_image("/absolute/path/to/image.jpg", language="en"))
print(infer_one_image("/absolute/path/to/image.jpg", language="zh"))

The checkpoint's released generation configuration uses temperature 1e-6 and repetition penalty 1.05. The paper's workstation latency benchmark used max_new_tokens=128, BF16 inference, Qwen2.5-VL dynamic-resolution preprocessing, and no 8-bit or 4-bit quantization. The original inference script used the checkpoint's generation configuration rather than overriding these values in the generate() call.

Reported evaluation context

The following comparison uses the 426 reviewed Real-world test set. All rows use the Qwen2.5-VL-7B model family: Zero-shot and Few-shot are prompt-only, non-fine-tuned baselines; Few-shot uses the same three in-context examples for every test image. R+U fine-tuned is the released model, fine-tuned on the mixed Real-world + Unity dataset.

Text-generation metrics (0–1; higher is better)

7B settingALERT BERTScore F1 (0–1)ALERT METEOR (0–1)GUIDE BERTScore F1 (0–1)GUIDE METEOR (0–1)
Zero-shot0.8740.1830.8940.291
Few-shot0.9110.3870.7870.197
R+U fine-tuned (released model)0.9320.5270.9420.644

Hazardous-scene detection (0–1; higher is better)

Hazardous scenes are the positive class. These image-level metrics measure whether a scene is predicted as hazardous rather than safe.

7B settingHazard Precision (0–1)Hazard Recall (0–1)Hazard F1 (0–1)
Zero-shot0.8350.8350.835
Few-shot0.8930.7910.839
R+U fine-tuned (released model)0.8520.9290.889

LAVE-style reference-text evaluation (0–10; higher is better)

LAVE scores were produced by a separate Qwen3-14B evaluator that compares the generated text with the reviewed reference annotation; it does not receive the input image. Overall is 0.5 × ALERT + 0.4 × GUIDE + 0.1 × Format.

7B settingALERT (/10)GUIDE (/10)Format (/10)Overall (/10)Overall ≥ 8 (%, 0–100)Overall ≥ 6 (%, 0–100)
Zero-shot6.0095.4629.2366.11314.15155.189
Few-shot6.1544.8619.3135.95313.43351.244
R+U fine-tuned (released model)7.5647.6489.8607.82755.08584.746

BERTScore, METEOR, and LAVE are reference-text-based measures. In particular, the LAVE evaluator does not receive the input image and is not image-aware verification of scene correctness. These numbers are study-specific results, not guarantees of performance or safety in other environments.

In a workstation-side benchmark on an NVIDIA RTX A6000 GPU over 200 timed images, the 7B model had a peak GPU memory use of 16.05 GB. Average end-to-end latency was 1.63 s for outputs exactly equal to <SAFE/> and 2.65 s for predicted-hazard outputs. These are non-streaming full-output measurements and do not establish consumer-GPU, mobile, or edge performance.

Reproducibility materials and release boundaries

This Hugging Face repository contains the merged model checkpoint and its runtime configuration. The companion code/data release is intended to provide prompt templates, annotation-generation scripts, evaluation scripts, parser/evaluation utilities, Unity synthetic images and annotations, structured annotation files, and reviewed evaluation labels, subject to privacy, consent, and third-party license constraints.

Third-party Real-world images are not redistributed. Self-collected media may be released only after privacy and consent screening, with masking where needed. Implementation-specific Unity project scripts are not a complete release commitment because they depend on project-specific assets and environment settings. The model and associated materials are released after acceptance, subject to applicable base-model, dataset, privacy, and consent constraints.

License

This release is distributed under Apache-2.0. The base model is Qwen/Qwen2.5-VL-7B-Instruct, which is also labeled Apache-2.0. Users remain responsible for complying with all applicable third-party dataset, privacy, consent, and local-law requirements.

Citation

Citation metadata will be added after the paper's final bibliographic metadata is available.

Acknowledgment

This model is derived from Qwen/Qwen2.5-VL-7B-Instruct. Please cite the Qwen2.5-VL work when using the base model, in addition to citing the associated paper when its final metadata becomes available.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей