/ Модель

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

Контекст
262 144 токена
Размер весов
9,8 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_vl · dense
Базовая модель
Qwen3-VL-2B-Thinking
Опубликована
1 окт 2026

madrimed1.2-VL-2B

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

Компактная медицинская vision-language модель Madrisight для ответов на вопросы по медицинским изображениям и тексту.

124скачиваний за 30 дней2лайкавеса обновлены7 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

MadriMed 1.2 — компактная мультимодальная медицинская модель Madrisight на 2 млрд параметров, дообученная на основе Qwen/Qwen3-VL-2B-Thinking. Она принимает медицинские изображения и текстовые вопросы и формирует текстовые ответы с визуальным анализом и клиническими рассуждениями. Модель предназначена для вопросов о рентгеновских снимках, КТ, МРТ и гистологических изображениях; в карточке приведены результаты на медицинских наборах VQA-RAD, PathVQA, SLAKE и MedXpertQA. Архитектура — Qwen3-VL с поддержкой Dynamic M-RoPE; опубликованные веса в формате safetensors. Карточка сообщает об улучшенных результатах на ряде визуальных тестов, но приводит и более низкие результаты на некоторых текстовых медицинских экзаменах.

Модель обозначена как экспериментальная и предназначена только для исследований и обучения. Она не сертифицирована для самостоятельной постановки диагноза или принятия клинических решений; выводы необходимо проверять с квалифицированным медицинским специалистом. Не следует использовать её как авторитетный источник дозировок лекарств, хирургических рекомендаций или лечения. Лицензия — Apache-2.0.

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

  • ответы на вопросы по рентгеновским снимкам
  • анализ изображений КТ и МРТ в исследовательских задачах
  • вопросы и ответы по гистологическим изображениям
  • оценка медицинских VQA-моделей на VQA-RAD и SLAKE
  • помощь в разборе медицинских изображений для обучения

Ограничения

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

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

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

Открыть на Hugging Face

Overview

MadriMed 1.2 is the second compact multimodal medical vision-language model by Madrisight. Building upon madriMed-VL-2B, MadriMed 1.2 delivers significant performance leaps across medical image understanding (Radiology, Pathology, CT, MRI, X-Ray) and medical reasoning.

It Delivers robust clinical reasoning capabilities, drastically reducing hallucinations and diagnostic contradictions while setting a new state-of-the-art benchmark for 2B medical vision models.

What's New in MadriMed 1.2?

  1. Massive Diagnostic Accuracy Gains:
    • Massive jump on VQA-RAD overall score and most of the other evalution benchmarks.
  2. Resistant to Generation Hallucinations:
    • Substantially reduced token corruption, repetition and positive-bias tendencies observed in version one.
  3. Structured Formating:
    • Trained with graduated correctness scoring and reasoning-integrity penalties to enforce structured.

Quick Start

Installation

pip install torch torchvision transformers

Input

prompt = """Question: Examine the mammogram image shown above. Which of the following findings is most evident?

Answer Choices:
A. Well-circumscribed round mass with benign features
B. Clustered microcalcifications within an area of irregular density
C. Fat-containing lesion consistent with lipoma
D. Diffuse bilateral breast edema

Follow this exact step-by-step reasoning structure.

### 1. Key Clinical Findings
Extract the patient's age, gender, main symptoms, duration, objective physical exam findings, and abnormal laboratory/imaging results from the provided question and the images.

### 2. Differential Diagnosis
List 2-3 highly probable conditions based on the extracted findings. Briefly state why the current presentation fits.

### 3. Option Elimination 
Analyze each provided choice. Write one sentence explaining why it is either correct or incorrect based on clinical guidelines.

### 4. Conclusion & Final Answer
State the final diagnostic/management conclusion.

### 5. Final correct choice
Provide final single correct choice.
"""

Run the model directly

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

MODEL_ID = "madrisight/madrimed1.2-VL-2B"
device = "mps" if torch.backends.mps.is_available() else "cpu"

model = Qwen3VLForConditionalGeneration.from_pretrained(
    MODEL_ID,
    device_map=device,
    dtype=torch.float32,
    trust_remote_code=True,
).eval()

processor = AutoProcessor.from_pretrained(MODEL_ID, trust_remote_code=True)

# Multi-image input
image_paths = ["images/MM-1-a.png", "images/MM-1-b.png"]
images = [Image.open(path).convert("RGB") for path in image_paths]

# Chat Message Payload
messages = [
    {
        "role": "system",
        "content": "You are an expert clinical medical educator and USMLE board reviewer.",
    },
    {
        "role": "user",
        "content": [{"type": "image"} for _ in images] + [{"type": "text", "text": prompt}]
    }
]

# Tokenize, Process, and Generate
with torch.inference_mode():
    text = processor.apply_chat_template(
        messages,
        tokenize=False,
        add_generation_prompt=True
    )

    inputs = processor(
        text=text,
        images=images,  # Pass the flat list of PIL Image objects
        return_tensors="pt",
        padding=True,
        truncation=True,
    ).to(device)

    generated_ids = model.generate(
        **inputs,
        max_new_tokens=1024,
        do_sample=False,
    )

    output_text = processor.batch_decode(
        generated_ids[:, inputs.input_ids.shape[1]:],
        skip_special_tokens=True
    )[0].strip()

Output

### 1. Key Clinical Findings
- **Patient's age and gender**: Not explicitly mentioned, but mammograms are typically used for women.
- **Main symptoms**: Not specified, but mammograms are often performed for breast abnormalities.
- **Duration**: Not specified, but mammograms are usually performed at the time of suspicion.
- **Objective physical exam findings**: Not specified, but mammograms are used to detect abnormalities.
- **Abnormal laboratory/imaging results**: Not specified, but mammograms are used to detect breast abnormalities.

### 2. Differential Diagnosis
- **Well-circumscribed round mass with benign features**: This could be a benign lesion such as a fibroadenoma.
- **Clustered microcalcifications within an area of irregular density**: This could indicate a malignant process, such as ductal carcinoma in situ (DCIS) or invasive breast cancer.
- **Fat-containing lesion consistent with lipoma**: This is a benign lesion and could be a lipoma.

### 3. Option Elimination
- **Well-circumscribed round mass with benign features**: This is a plausible finding, but it is less likely to be the primary concern in a mammogram without additional symptoms or findings.
- **Clustered microcalcifications within an area of irregular density**: This is a highly suspicious finding for malignancy, as it is often associated with breast cancer.
- **Fat-containing lesion consistent with lipoma**: This is a benign finding and less likely to be the primary concern in a mammogram without additional symptoms or findings.

### 4. Conclusion & Final Answer
The mammogram findings are most indicative of a malignant process, specifically breast cancer, due to the presence of clustered microcalcifications within an area of irregular density.

### 5. Final correct choice
B. Clustered microcalcifications within an area of irregular density

Benchmark Results

MadriMed 1.2 was rigorously evaluated across 7 medical image and text benchmarks.

🔬 Multimodal & Visual Question Answering

BenchmarkMediX-R1 (2B)Qwen3.5-2B-MedVL (OpenMed)MadriMed 1.2 (2B)
VQA-RAD53.9%55.21%64.30%
PathVQA42.8%47.48%48.29%
SLAKE (Radiology)65.4%68.80%69.36%

VQA Comparison with 4B

BenchmarkMetricMediX-R1 2BQwen3.5-2B-MedVLMedMO-4B-NextMedGemma 1.5 4BMedGemma 4BMadriMed 1.2 2B
SLAKEOverall65.40%68.80%74.00%59.80% Tok-F172.30% Tok-F169.36%
↳ ClosedAccuracy68.40%N/R78.00%82.80%87.60%71.83%
↳ Open—57.60%N/R—59.70% Tok-F1—68.13%
VQA-RADOverall53.90%55.21%59.60%48.10% Tok-F149.90% Tok-F164.30%
↳ ClosedAccuracy61.30%N/R79.70%70.20%69.10%74.90%
↳ Open—45.10%N/R———51.00%
PathVQAOverall42.80%47.48%73.30%——48.29%
MedXpertQA (MM+Text)Accuracy———20.90%18.80%18.02%
BenchmarkMetricMedMO-4B-NextMedGemma (4B)MadriMed-VL-2B (v1)MadriMed 1.2 (2B)
MedXpertQA (Multimodal)Accuracy27.0%24.43%21.50%23.50%
MedXpertQA (Text)Accuracy16.5%14.2%11.02%13.55%

📝 Text only Benchmarks

BenchmarkMedGemma 1.5 (4B)MedGemma (4B)MediX-R1 (2B)MadriMed 1.2 (2B)
PubMedQA68.2%73.4%47.2%66.6%
MedMCQA55.7%59.8%49.2%43.1%
MedQA-4opts69.1%64.4%49.7%41.56%
MedXpertQA (Text)14.2%13.55%

SLAKE Per-Category Performance

CategoryEMTotal VQA
Abnormality40.4%52
Color81.8%33
KG57.8%109
Modality91.8%85
Organ71.7%99
Plane90.9%33
Position61.4%171
Quantity73.1%52
Shape42.9%7
Size69.2%65

Medmcqa (Text-Only) Per-Category Performance

By Choice Type
Choice TypeAccuracyCorrect / Total
Multi41.62%569 / 1,367
Single43.82%1,234 / 2,816
By Subject
SubjectAccuracyCorrect / Total
Anaesthesia41.18%14 / 34
Anatomy44.02%103 / 234
Biochemistry50.29%86 / 171
Dental39.83%525 / 1,318
ENT32.08%17 / 53
Forensic Medicine37.31%25 / 67
Gynaecology & Obstetrics43.30%97 / 224
Medicine46.44%137 / 295
Microbiology42.62%52 / 122
Ophthalmology41.38%24 / 58
Orthopaedics30.00%6 / 20
Pathology48.96%165 / 337
Pediatrics40.60%95 / 234
Pharmacology44.03%107 / 243
Physiology55.56%95 / 171
Psychiatry37.50%6 / 16
Radiology53.62%37 / 69
Skin29.41%5 / 17
Social & Preventive Medicine42.64%55 / 129
Surgery41.19%152 / 369

Evaluation NoteBook

Open Notebook


Technical Specifications

ComponentDetails
Base ArchitectureQwen/Qwen3-VL-2B-Thinking
Context & VisionNative multimodal support with Dynamic M-RoPE
Datasetmint-medmax/medmax_data and synthetic data
PrecisionNative float32
Training PlatformApple Silicon chip
Training Frameworktrl with custom fused kernels
Primary GoalMemory-stable multimodal RL post training and high accuracy benchmarks

Benchmark Dataset Citations

  1. SLAKE: BoKelvin/SLAKE
  2. MedXpertQA: TsinghuaC3I/MedXpertQA
  3. VQA-RAD: flaviagiammarino/vqa-rad
  4. PubMedQA: qiaojin/PubMedQA
  5. MedQA (USMLE): GBaker/MedQA-USMLE-4-options
  6. MedMCQA: openlifescienceai/medmcqa
  7. Path-VQA: flaviagiammarino/path-vqa

Limitations & Safety Guidelines

Research & Educational Use Only

MadriMed 1.2 is an experimental research model. It is not certified for autonomous clinical diagnostic decision-making.

No Treatment Prescriptions

The model should not be used as an authoritative source for:

  • Pharmaceutical dosages
  • Surgical interventions
  • Direct treatment pathways
  • Other high-stakes clinical decisions

All model-generated interpretations, medical reasoning, and visual inferences should be reviewed and independently confirmed by a qualified, licensed medical professional before being used in a clinical context.


Citation

@software{madrimed1.2-VL-2B,
  title = {MadriMed 1.2: Advanced Multimodal Medical Reasoning at the 2B Scale},
  author = {Madrisight},
  year = {2026},
  url = {https://huggingface.co/madrisight/madrimed1.2-VL-2B}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей