/ Модель

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

Контекст
262 144 токена
Параметры
3,7 млрд
Размер весов
9,7 ГБ
Лицензия
Apache 2.0
Архитектура
hulumed_qwen3 · dense
Библиотека
transformers
Опубликована
18 ноя 2025

Hulu-Med-4B

Генерация текстаТекст → текст3 профессии

Hulu-Med-4B — мультимодальная медицинская модель для анализа клинических текстов, медицинских изображений и видео и ответов на профильные вопросы.

2 419скачиваний за 30 дней89лайковвеса обновлены27 ноя 2025

Бенчмарки

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

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

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

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

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

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

Hulu-Med-4B — медицинская мультимодальная модель организации ZJU-AI4H для понимания медицинских текстов, изображений и видео. По карточке она охватывает 2D- и 3D-медицинские изображения и хирургические видео; размер модели — 3,7 млрд параметров, архитектура — плотная HulumedQwen3ForCausalLM на базе семейства Qwen3. Контекст составляет до 262 144 токенов.

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

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

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

  • ответы на вопросы по медицинским изображениям
  • генерация медицинских заключений по изображениям
  • анализ 3D-медицинских изображений и объёмов
  • понимание и разбор хирургических видео
  • диалог по медицинским и клиническим вопросам
  • распознавание этапов хирургической операции
  • рассуждения по медицинским текстам

Ограничения

Модель не следует использовать как единственный источник для постановки диагноза или выбора лечения; медицинские выводы требуют проверки специалистом. В README не перечислены конкретные поддерживаемые языки для версии 4B.

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

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

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

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

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

Открыть на Hugging Face

Paper HuggingFace ModelScope License GitHub Total Downloads

📄 Paper | 🤗 Hulu-Med-4B | 🤗 Hulu-Med-7B |🤗 Hulu-Med-14B |🤗 Hulu-Med-32B | 🔮 ModelScope Models | 📊 Demo

🔥 News

  • [2025-11-27] ⚡ Hulu-Med is now compatible with the latest vLLM, offering faster inference and tensor parallel support! Thank you all for your patience and feedback 💪 see here for installation

  • [2025-11-18] 🎊 We released Hulu-Med-4B, a lightweight model with strong multimodal and text reasoning abilities that surpasses MedGemma-4B and Lingshu-7B!

  • [2025-11-01] 📊 Releasing our new evaluation code, MedUniEval! Built on MedEvalKit, MedUniEval is designed for the comprehensive evaluation of medical visual-language models across various modalities—including text, 2D, 3D, and video. More benchmarks are coming soon.

  • [2025-10-15] 🎉 Hulu-Med now supports Transformers integration! HuggingFace-compatible models released with simplified loading and inference. Integration with VLLM is ongoing. The HF models are now available in the main branch on Hugging Face.

  • The model has been updated in the main branch of our Hugging Face repository. You can now load it directly using AutoModelForCausalLM.from_pretrained - the weights will be automatically downloaded.

  • [2025-10-08] Hulu-Med models and inference code released!

📖 Overview

Hulu-Med is a transparent medical vision-language model that unifies understanding across diverse modalities including medical text, 2D/3D images, and videos. Built with a focus on transparency and accessibility, Hulu-Med achieves state-of-the-art performance on 30 medical benchmarks while being trained entirely on public data.

Key Features

  • 🌟 Holistic Multimodal Understanding: Seamlessly processes medical text, 2D images, 3D volumes, and surgical videos
  • 🔓 Fully Transparent: Complete open-source pipeline including data curation, training code, and model weights
  • 📊 State-of-the-Art Performance: Outperforms leading open-source models and competes with proprietary systems
  • ⚡ Efficient Training: Only 4,000-40,000 GPU hours required for 7B-32B variants
  • 🗂️ Comprehensive Coverage: Trained on 16.7M samples spanning 12 anatomical systems and 14 imaging modalities
  • 🤗 Transformers Native: Now with native HuggingFace Transformers support for easier integration

Comprehensive Data Coverage

Our training corpus encompasses:

  • 12 Major Anatomical Systems: Multi-System, Skin/Integumentary, Respiratory, Cellular/Tissue Level, Digestive, Nervous, Cardiovascular, Musculoskeletal, Reproductive, Urinary, Whole Body, Endocrine, Immune/Lymphatic, and Hematologic systems
  • 14 Medical Imaging Modalities: CT, MRI, X-Ray, Ultrasound, PET, OCT, Endoscopy, Microscopy, Histopathology, Fundus, Dermoscopy, Angiography, Digital Photograph, and Medical Chart
  • Diverse Downstream Tasks: Medical Dialogue, Anomaly Detection, Prognosis Prediction, Treatment Planning, Surgical Skill Assessment, Education, Medical Report Generation, Surgical Phase Recognition, Medical Computation, and more

🏆 Performance Highlights

Medical Multimodal Benchmarks

Performance comparison on medical multimodal benchmarks (For the 'Medical VLM < 10B' subgroup, bold indicates the best method):

ModelsOM.VQAPMC-VQAVQA-RADSLAKEPathVQAMedXQAMMMU-Med
Proprietary Models
GPT-4.175.555.265.072.255.545.275.2
GPT-4o67.549.761.071.255.544.362.8
Claude Sonnet 465.554.467.670.654.243.374.6
Gemini-2.5-Flash71.055.468.575.855.452.876.9
General VLMs < 10B
Qwen2.5VL-7B63.651.963.266.844.120.150.6
InternVL2.5-8B81.351.359.469.042.121.753.5
InternVL3-8B79.153.865.472.848.622.459.2
General VLMs > 10B
InternVL3-14B78.954.166.372.848.023.163.1
Qwen2.5V-32B68.254.571.871.241.925.259.6
InternVL3-38B79.856.665.472.751.025.265.2
Medical VLMs < 10B
LLaVA-Med-7B34.822.746.651.935.220.828.1
MedGemma-4B70.749.272.378.248.125.443.2
HuatuoGPT-V-7B74.353.167.668.144.823.249.8
Lingshu-7B82.956.367.983.161.926.7-
Hulu-Med-4B81.664.671.685.060.126.450.5
Hulu-Med-7B84.266.878.086.865.629.051.4
Medical VLMs > 10B
HealthGPT-14B75.256.465.066.156.724.749.6
HuatuoGPT-V-34B74.056.661.469.544.422.151.8
Lingshu-32B83.457.976.786.765.530.9-
Hulu-Med-14B85.168.976.186.564.430.054.8
Hulu-Med-32B84.669.481.485.767.334.060.4

Medical Text Benchmarks

Performance comparison on medical text benchmarks (bold indicates the best method in each subgroup):

ModelsMMLU-ProMedXQAMedbulletsSGPQAPubMedQAMedMCQAMedQAMMLU-Med
Proprietary Models
GPT-4.178.030.977.049.975.677.789.189.6
o3-mini78.135.483.750.173.660.674.587.0
Claude Sonnet 479.533.680.256.378.679.392.191.3
Gemini-2.5-Flash70.035.677.653.373.873.691.284.2
General VLMs < 10B
Qwen2.5VL-7B50.512.842.126.376.452.657.373.4
InternVL2.5-8B50.611.642.426.176.452.453.774.2
InternVL3-8B57.913.148.531.275.457.762.177.5
General VLMs > 10B
Qwen2.5VL-32B66.515.654.237.668.463.071.683.2
InternVL3-14B65.414.149.537.977.262.070.181.7
InternVL3-38B72.116.054.642.573.264.973.583.8
Medical VLMs < 10B
LLaVA-Med-7B16.69.934.416.126.439.442.050.6
MedGemma-4B38.612.845.621.672.252.256.266.7
HuatuoGPT-V-7B44.610.140.921.972.851.252.969.3
Lingshu-7B50.416.556.226.376.655.963.374.5
Hulu-Med-4B58.616.859.429.577.664.871.978.6
Hulu-Med-7B60.619.661.531.177.467.673.579.5
Medical VLMs > 10B
HealthGPT-14B63.411.339.825.768.063.466.280.2
Lingshu-32B70.222.765.441.177.866.174.784.7
HuatuoGPT-V-34B51.811.442.726.572.254.758.874.7
Hulu-Med-14B68.023.268.537.779.870.478.183.3
Hulu-Med-32B72.924.268.841.880.872.880.485.6

🚀 Model Zoo

We provide three model variants with different parameter scales:

ModelParametersLLM BaseTraining CostHuggingFaceModelScope
Hulu-Med-7B7BQwen2.5-7B~4,000 GPU hours🤗 Link🔮 Link
Hulu-Med-14B14BQwen3-14B~8,000 GPU hours🤗 Link🔮 Link
Hulu-Med-32B32BQwen2.5-32B~40,000 GPU hours🤗 Link🔮 Link

Note: HuggingFace-compatible versions (Hulu-Med-HF) are also available for easier integration with the Transformers library.

🛠️ Installation

# Clone the repository
git clone https://github.com/ZJUI-AI4H/Hulu-Med.git
cd Hulu-Med

# Create conda environment
conda create -n hulumed python=3.10
conda activate hulumed

# PyTorch and torchvision for CUDA 11.8
pip install torch==2.4.0 torchvision==0.19.0 --extra-index-url https://download.pytorch.org/whl/cu118

# Flash-attn pinned to a compatible version
pip install flash-attn==2.7.3 --no-build-isolation --upgrade

# Transformers and accelerate
pip install transformers==4.51.2 accelerate==1.7.0

# Video processing dependencies
pip install decord ffmpeg-python imageio opencv-python

# For 3D medical image processing (NIfTI files)
pip install nibabel

# Install other dependencies
pip install -r requirements.txt

🧩 vLLM Installation

pip install git+https://github.com/jiangsongtao/vllm.git

# or try this way
git clone https://github.com/jiangsongtao/vllm.git
cd vllm-main
export VLLM_USE_PRECOMPILED=1
rm -rf build/ .deps/
pip install -e .
pip uninstall flash-attn -y
pip install flash-attn --no-build-isolation

💻 Quick Start

We provide two ways to use Hulu-Med:

Option 1: Using HuggingFace Transformers (Recommended for Hulu-Med-HF models)

For easier integration, use the HuggingFace-compatible models with native Transformers support:

from transformers import AutoModelForCausalLM, AutoProcessor
import torch

model_path = "ZJU-AI4H/Hulu-Med-32B"

# Load model and processor
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    trust_remote_code=True,
    torch_dtype="bfloat16",
    device_map="auto",
    attn_implementation="flash_attention_2",
)

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

tokenizer = processor.tokenizer

Text-Only Example

conversation = [
    {
        "role": "user",
        "content": [
            {"type": "text", "text": "Hello, I have a headache, what should I eat?"},
        ]
    }
]

modal = 'text'
inputs = processor(
    conversation=conversation,
    return_tensors="pt",
    add_generation_prompt=True
)

inputs = {k: v.to(model.device) if isinstance(v, torch.Tensor) else v 
          for k, v in inputs.items()}

with torch.inference_mode():
    output_ids = model.generate(
        **inputs,
        do_sample=True,
        modals=[modal],
        temperature=0.6,
        max_new_tokens=4096,
        use_cache=True,
        pad_token_id=tokenizer.eos_token_id,
    )

# Decode output
# Enable thinking mode by adding: "Please reason step by step, and put your final answer within \boxed{}."
# use_think=False: Only return the final answer without thinking process
# use_think=True: Include the model's reasoning/thinking process in the output
outputs = processor.batch_decode(
    output_ids,
    skip_special_tokens=True,
    use_think=False  # Set to True to see the thinking process
)[0].strip()
print(outputs)

2D Image Example

conversation = [
    {
        "role": "user",
        "content": [
            {
                "type": "image",
                "image": {
                    "image_path": "./demo/demo.jpg",
                }
            },
            {
                "type": "text",
                "text": "Generate a medical report for this image."
            },
        ]
    }
]

inputs = processor(
    conversation=conversation,
    add_system_prompt=True,
    add_generation_prompt=True,
    return_tensors="pt"
)

inputs = {k: v.cuda() if isinstance(v, torch.Tensor) else v 
          for k, v in inputs.items()}

if "pixel_values" in inputs:
    inputs["pixel_values"] = inputs["pixel_values"].to(torch.bfloat16)

output_ids = model.generate(**inputs, max_new_tokens=1024)
outputs = processor.batch_decode(
    output_ids,
    skip_special_tokens=True,
    use_think=False
)[0].strip()
print(outputs)

Multi Images Example

conversation = [
    {
        "role": "user",
        "content": [
            {
                "type": "image", 
                "image": {
                    "image_path": "./demo/demo1.jpg",
                }
            },
            {
                "type": "image", 
                "image": {
                    "image_path": "./demo/demo2.jpg",
                }
            },
            {
                "type": "text", 
                "text": "Are these two images the same?"
            },
        ]
    }
]

inputs = processor(
    conversation=conversation,
    add_system_prompt=True,
    add_generation_prompt=True,
    return_tensors="pt"
)

inputs = {k: v.cuda() if isinstance(v, torch.Tensor) else v 
          for k, v in inputs.items()}
if "pixel_values" in inputs:
    inputs["pixel_values"] = inputs["pixel_values"].to(torch.bfloat16)

output_ids = model.generate(**inputs, max_new_tokens=1024)
outputs_no_think = processor.batch_decode(
    output_ids, 
    skip_special_tokens=True,
    use_think=False  
)[0].strip()
print(outputs_no_think)

Interleaved Example

conversation = [
    {
        "role": "user",
        "content": [
            {
                "type": "text", 
                "text": "Image A:"
            },
            {
                "type": "image", 
                "image": {
                    "image_path": "./demo/XRay.jpg",
                }
            },
             {
                "type": "text", 
                "text": "Image B:"
            },
            {
                "type": "image", 
                "image": {
                    "image_path": "./demo/pathology.png",
                }
            },
            {
                "type": "text", 
                "text": "Which image is the pathology slide?"
            },
        ]
    }
]

inputs = processor(
    conversation=conversation,
    add_system_prompt=True,
    add_generation_prompt=True,
    return_tensors="pt"
)

inputs = {k: v.cuda() if isinstance(v, torch.Tensor) else v 
          for k, v in inputs.items()}
if "pixel_values" in inputs:
    inputs["pixel_values"] = inputs["pixel_values"].to(torch.bfloat16)

output_ids = model.generate(**inputs, max_new_tokens=1024)
outputs_no_think = processor.batch_decode(
    output_ids, 
    skip_special_tokens=True,
    use_think=False  
)[0].strip()
print(outputs_no_think)
#The pathology slide is Image B. It shows a microscopic view of tissue with various cellular structures and components, such as cells in different stages of maturation and areas of fibrous tissue. This type of image is typically used to examine the cellular architecture and identify any pathological changes within the tissue.

3D Medical Image Example

# Requires: pip install nibabel

conversation = [
    {
        "role": "user",
        "content": [
            {
                "type": "3d",
                "3d": {
                    "image_path": "./demo/amos_0013.nii",
                    "nii_num_slices": 180,
                    "nii_axis": 2,  # 0=sagittal, 1=coronal, 2=axial
                }
            },
            {
                "type": "text",
                "text": "Generate a medical report for this 3D CT scan."
            },
        ]
    }
]

inputs = processor(
    conversation=conversation,
    add_system_prompt=True,
    add_generation_prompt=True,
    return_tensors="pt"
)

inputs = {k: v.cuda() if isinstance(v, torch.Tensor) else v 
          for k, v in inputs.items()}

if "pixel_values" in inputs:
    inputs["pixel_values"] = inputs["pixel_values"].to(torch.bfloat16)

output_ids = model.generate(**inputs, max_new_tokens=1024)
outputs = processor.batch_decode(
    output_ids,
    skip_special_tokens=True,
    use_think=False
)[0].strip()
print(outputs)

Video Example

conversation = [
    {
        "role": "user",
        "content": [
            {
                "type": "video",
                "video": {
                    "video_path": "./demo/1min_demo.mp4",
                    "fps": 1,
                    "max_frames": 1800
                }
            },
            {
                "type": "text",
                "text": "Describe this video in detail."
            },
        ]
    }
]

inputs = processor(
    conversation=conversation,
    add_system_prompt=True,
    add_generation_prompt=True,
    return_tensors="pt"
)

inputs = {k: v.cuda() if isinstance(v, torch.Tensor) else v 
          for k, v in inputs.items()}

if "pixel_values" in inputs:
    inputs["pixel_values"] = inputs["pixel_values"].to(torch.bfloat16)

output_ids = model.generate(**inputs, max_new_tokens=1024)
outputs = processor.batch_decode(
    output_ids,
    skip_special_tokens=True,
    use_think=False
)[0].strip()
print(outputs)

Understanding the use_think parameter:

  • use_think=False: Returns only the final answer (default for most use cases)
  • use_think=True: Includes the model's internal reasoning/thinking process before the final answer

📊 Training

Data Preparation

Our training data consists of 16.7M samples across four categories:

  • Medical Multimodal Data (9M samples): Covering 14 imaging modalities
  • Medical Text Data (4.9M samples): Clinical notes, literature, QA pairs
  • General Multimodal Data (1.3M samples): Enhancing generalization
  • General Text Data (1.5M samples): Improving reasoning capabilities

Download and prepare the data: Coming soon

🏗️ Model Architecture

Hulu-Med consists of four core components:

  1. Vision Encoder: SigLIP-based encoder with 2D RoPE for unified 2D/3D/video processing
  2. Multimodal Projector: Projects visual tokens into language model space
  3. LLM Decoder: Qwen-based decoder for generating responses
  4. Medical-Aware Token Reduction: Efficient processing with ~55% token reduction

📋 Supported Tasks

  • ✅ Visual Question Answering (2D/3D/Video)
  • ✅ Medical Report Generation
  • ✅ Disease Diagnosis
  • ✅ Anatomical Understanding
  • ✅ Surgical Phase Recognition
  • ✅ Clinical Dialogue
  • ✅ Medical Text Reasoning
  • ✅ Multilingual Medical QA
  • ✅ Rare Disease Diagnosis
  • ✅ And more

📄 Citation

If you find Hulu-Med useful in your research, please cite:

@misc{jiang2025hulumedtransparentgeneralistmodel,
      title={Hulu-Med: A Transparent Generalist Model towards Holistic Medical Vision-Language Understanding}, 
      author={Songtao Jiang and Yuan Wang and Sibo Song and Tianxiang Hu and Chenyi Zhou and Bin Pu and Yan Zhang and Zhibo Yang and Yang Feng and Joey Tianyi Zhou and Jin Hao and Zijian Chen and Ruijia Wu and Tao Tang and Junhui Lv and Hongxia Xu and Hongwei Wang and Jun Xiao and Bin Feng and Fudong Zhu and Kenli Li and Weidi Xie and Jimeng Sun and Jian Wu and Zuozhu Liu},
      year={2025},
      eprint={2510.08668},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2510.08668}, 
}

📜 License

This project is released under the Apache 2.0 License.

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

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

GPU в ailist

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

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

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

0 моделей