/ Модель

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

Контекст
262 144 токена
Размер весов
17,5 ГБ
Архитектура
qwen3_vl · dense
Базовая модель
Qwen3-VL-8B-Instruct
Библиотека
transformers
Опубликована
16 ноя 2026

HuatuoGPT-Vision-2-Grader

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

Мультимодальная медицинская модель оценивает ответы по заданным критериям для расчёта наград в обучении с подкреплением.

149скачиваний за 30 дней1лайквеса обновлены25 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

HuatuoGPT-Vision-2-Grader — мультимодальная медицинская модель-оценщик от FreedomIntelligence, созданная на базе Qwen/Qwen3-VL-8B-Instruct и дообученная на оценках критериев GPT-4.1. Она принимает медицинское изображение (если оно есть), диалог и рубрику, затем за один проход проверяет каждый пункт и возвращает список логических значений в формате JSON. Модель также оценивает текстовые диалоги без изображений.

Основной сценарий — вычисление награды для открытых ответов в обучении с подкреплением HuatuoGPT-Vision-2. На отложенных данных согласие с оценками GPT-4.1 составило 91,5%; оценивания в исследовательской статье выполнялись GPT-4.1. Для изображений используется обработка с разрешением до 921 600 пикселей. Модель построена на архитектуре Qwen3-VL и предназначена для чата и анализа изображений. Лицензия в предоставленных данных не указана.

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

  • Оценка медицинского ответа по списку критериев
  • Проверка ответа с учётом медицинского изображения
  • Расчёт наград для обучения медицинского ассистента с подкреплением
  • Автоматическая оценка текстового медицинского диалога

Ограничения

На отложенных данных согласие с оценками GPT-4.1 составляет 91,5%, поэтому оценки не всегда совпадают с эталонными. Для обработки изображений в обучающем протоколе используется разрешение до 921 600 пикселей.

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

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

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

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

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

Открыть на Hugging Face

A multimodal medical rubric grader for HuatuoGPT-Vision-2. Built on Qwen3-VL-8B-Instruct and trained on GPT-4.1 rubric judgments, it looks at the medical image together with the response and checks every rubric item in one generation. It provides the rewards for open-ended questions in RL and also grades text-only conversations.

📊 Agreement with GPT-4.1

On held-out test data, the grader reaches 91.5% agreement with GPT-4.1 rubric judgments. It is used only to compute rewards during RL, and all rubric evaluations in the paper are judged by GPT-4.1.

The output is always a valid JSON list of the right length.

📝 Grading template

Use this template exactly: replace only {conversation} and {rubrics}. Send one user message that contains the case images first (if any) and then the formatted prompt.

PlaceholderContent
{conversation}Conversation as role: content lines, ending with the response to evaluate. Images are not written here.
{rubrics}Numbered criteria with signed points, e.g. 1. (+3pts) Criterion text.
GRADING_TEMPLATE = """Score the assistant's response against each rubric item.

## Conversation
<Conversation>
{conversation}
</Conversation>

## Rubrics
<Rubric_items>
{rubrics}
</Rubric_items>

## Output
Return only a JSON list of booleans, one for each rubric in order.
- true: the criterion is met
- false: the criterion is not met
- For a negative criterion (bad behavior with negative points), return true only when the response shows that bad behavior."""

🚀 Usage

Run the template definition above, followed by this example:

from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor

model_id = "FreedomIntelligence/HuatuoGPT-Vision-2-Grader"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="auto", device_map="auto").eval()

conversation = """user: What does this chest X-ray show?
assistant: There is a large right-sided pleural effusion with blunting of the costophrenic angle."""
rubrics = """1. (+5pts) Identifies a pleural effusion.
2. (+3pts) Correctly states that the effusion is on the right side.
3. (-4pts) Reports a pneumothorax that is not present."""

messages = [{"role": "user", "content": [
    {"type": "image", "image": Image.open("chest_xray.jpg")},  # your image
    {"type": "text", "text": GRADING_TEMPLATE.format(conversation=conversation, rubrics=rubrics)},
]}]
inputs = processor.apply_chat_template(
    messages, tokenize=True, add_generation_prompt=True, return_dict=True, return_tensors="pt"
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(processor.decode(outputs[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Illustrative output, one boolean per criterion in the same order:

[true, true, false]

true means the criterion is met. For a negative-point criterion, it means the undesirable behavior is present and its points are deducted. The reward is the sum of matched points divided by the total positive points, clipped to [0, 1]. The example above scores (5 + 3) / (5 + 3) = 1.0.

For text-only conversations, send the formatted prompt as plain text without images.

⚡ Batch scoring

Download this repository, then run:

python score.py --input example.json
python score.py --input batch.json --batch-size 8

Each record contains prompt, response, rubrics (criterion, points) and optional images (paths relative to the input file). It returns criteria_met, raw_score, and the clipped training_reward. grading.py holds the exact protocol used in HuatuoGPT-Vision-2 RL: the thinking part is removed and the first 10,000 characters of the final answer are graded.

🖥️ Serving with SGLang or vLLM

The grader works with any OpenAI-compatible server:

python -m sglang.launch_server --model-path FreedomIntelligence/HuatuoGPT-Vision-2-Grader --port 30001
# or: vllm serve FreedomIntelligence/HuatuoGPT-Vision-2-Grader --port 30001
import base64
import requests

image = "data:image/jpeg;base64," + base64.b64encode(open("example.jpg", "rb").read()).decode()
prompt = GRADING_TEMPLATE.format(conversation=conversation, rubrics=rubrics)
response = requests.post("http://127.0.0.1:30001/v1/chat/completions", json={
    "model": "FreedomIntelligence/HuatuoGPT-Vision-2-Grader",
    "messages": [{"role": "user", "content": [
        {"type": "image_url", "image_url": {"url": image}},
        {"type": "text", "text": prompt},
    ]}],
    "temperature": 0,
    "max_tokens": 512,
})
print(response.json()["choices"][0]["message"]["content"])

Images are resized by the model's processor to at most 921,600 pixels, the resolution used in training. For RL, point the RL code at the server.

📖 Citation

@inproceedings{chen2026incentivizing,
  title={Incentivizing Medical Vision Capabilities from Large-Scale Multimodal Pre-training},
  author={Chen, Junying and Cai, Zhenyang and Yang, Yunjin and Cai, Kunyuan and Wang, Rongsheng and Wang, Xidong and Yu, Geyang and Feng, Xiangyi and Wang, Benyou},
  booktitle={The Fortieth Annual Conference on Neural Information Processing Systems},
  year={2026}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3VLForConditionalGeneration
Ревизия весов
6c68923

0 моделей