InfiX-ai/InfiMed-Foundation-4B

Model

7

stars

12

commits

1

linked in READMEs

Sep 30, 2025

updated

safetensors

README

Introduction

InfiMed-4B is a medical Multimodal Large Language Model (MLLM) developed by the InfiXAI team. Our model outperforms HuatuoGPT-V-7B and MedGemma-4B-IT. The goal of InfiMed-4B is to develop a high-performance medical MLLM that ensures accessibility and affordability for a broad audience. Welcome to explore its capabilities and feel free to contact us for any questions or opportunities.

Model Card

Model Architecture:

ArchitectureViTLLMAdapterResolution
🤗InfiMed-Foundation-4B🤗siglip-so400m-patch14-384🤗Qwen3-4B2-layer MLP384x384xN

Evaluation

InfiMed-4B not only outperforms HuatuoGPT-V-7B and MedGemma-4B-IT, but is also competitive compared to recently released SoTA models.

Detail Evaluations:

ModelSizeMMMU-MedVQA-RADSLAKEPathVQAPMC-VQAOMVQAMedXVQAAvg.
Proprietary Models
GPT-583.667.878.152.860.076.471.070.0
GPT-5-mini80.566.376.152.457.670.960.166.3
GPT-5-nano74.155.469.345.451.366.545.158.2
GPT-4.175.265.072.255.555.275.545.263.4
Claude Sonnet 474.667.670.654.254.465.543.361.5
Gemini-2.5-Flash76.968.575.855.455.471.052.865.1
General Open-source Models
Qwen2.5VL-3B3B51.356.863.237.150.664.520.749.2
Qwen2.5VL-7B7B54.065.067.644.651.363.521.752.5
InternVL3-8B8B59.265.472.848.653.879.122.457.3
Medical Open-source Models
MedGemma-4B-IT4B43.772.576.448.849.969.822.354.3
LLaVA-Med-7B7B29.353.748.038.830.544.320.337.8
HuatuoGPT-V-7B7B47.367.067.848.053.374.221.654.2
Lingshu-7B7B54.067.983.161.956.382.926.761.8
BioMediX2-8B8B39.849.257.737.043.563.321.844.6
Infi-Med-1.7B1.7B34.756.375.360.748.158.921.850.8
Infi-Med-4B4B43.357.977.763.456.676.821.956.4

Quick Start:

1. Clone the repository

git clone https://huggingface.co/InfiX-ai/InfiMed-Foundation-4B
cd InfiMed-Foundation-4B

2. Run the model

from InfiMed import InfiMed
from PIL import Image
import torch

# Load the model from the pretrained checkpoint
model = InfiMed.from_pretrained("InfiX-ai/InfiMed-Foundation-4B", device_map="auto", torch_dtype=torch.bfloat16)

image_path = "sample.png"  # Replace with the path to your image file
image = Image.open(image_path).convert("RGB")  # Ensure the image is in RGB format

# Prepare input messages
messages = {
    "prompt": "What modality is used to take this image?",
    "image": image  # No image for this example, set to None
}

# Generate output
output_text = model.generate_output(messages)

# Print the result
print("Model Response:", output_text)


Acknowledge

Our model is built upon numerous outstanding open-source projects, and we are grateful for their contributions. We extend special thanks to the google team and Qwen team for their great base models.

License

This project is licensed under Apache License 2.0.

Contributors

GuanghaoZhu

6 commits

kongzym

2 commits

TI
TIM

2 commits

TIM0927

2 commits

InfiX-ai/InfiMed-Foundation-4B

Model

7

stars

12

commits

1

linked in READMEs

Sep 30, 2025

updated

safetensors

README

Introduction

InfiMed-4B is a medical Multimodal Large Language Model (MLLM) developed by the InfiXAI team. Our model outperforms HuatuoGPT-V-7B and MedGemma-4B-IT. The goal of InfiMed-4B is to develop a high-performance medical MLLM that ensures accessibility and affordability for a broad audience. Welcome to explore its capabilities and feel free to contact us for any questions or opportunities.

Model Card

Model Architecture:

ArchitectureViTLLMAdapterResolution
🤗InfiMed-Foundation-4B🤗siglip-so400m-patch14-384🤗Qwen3-4B2-layer MLP384x384xN

Evaluation

InfiMed-4B not only outperforms HuatuoGPT-V-7B and MedGemma-4B-IT, but is also competitive compared to recently released SoTA models.

Detail Evaluations:

ModelSizeMMMU-MedVQA-RADSLAKEPathVQAPMC-VQAOMVQAMedXVQAAvg.
Proprietary Models
GPT-583.667.878.152.860.076.471.070.0
GPT-5-mini80.566.376.152.457.670.960.166.3
GPT-5-nano74.155.469.345.451.366.545.158.2
GPT-4.175.265.072.255.555.275.545.263.4
Claude Sonnet 474.667.670.654.254.465.543.361.5
Gemini-2.5-Flash76.968.575.855.455.471.052.865.1
General Open-source Models
Qwen2.5VL-3B3B51.356.863.237.150.664.520.749.2
Qwen2.5VL-7B7B54.065.067.644.651.363.521.752.5
InternVL3-8B8B59.265.472.848.653.879.122.457.3
Medical Open-source Models
MedGemma-4B-IT4B43.772.576.448.849.969.822.354.3
LLaVA-Med-7B7B29.353.748.038.830.544.320.337.8
HuatuoGPT-V-7B7B47.367.067.848.053.374.221.654.2
Lingshu-7B7B54.067.983.161.956.382.926.761.8
BioMediX2-8B8B39.849.257.737.043.563.321.844.6
Infi-Med-1.7B1.7B34.756.375.360.748.158.921.850.8
Infi-Med-4B4B43.357.977.763.456.676.821.956.4

Quick Start:

1. Clone the repository

git clone https://huggingface.co/InfiX-ai/InfiMed-Foundation-4B
cd InfiMed-Foundation-4B

2. Run the model

from InfiMed import InfiMed
from PIL import Image
import torch

# Load the model from the pretrained checkpoint
model = InfiMed.from_pretrained("InfiX-ai/InfiMed-Foundation-4B", device_map="auto", torch_dtype=torch.bfloat16)

image_path = "sample.png"  # Replace with the path to your image file
image = Image.open(image_path).convert("RGB")  # Ensure the image is in RGB format

# Prepare input messages
messages = {
    "prompt": "What modality is used to take this image?",
    "image": image  # No image for this example, set to None
}

# Generate output
output_text = model.generate_output(messages)

# Print the result
print("Model Response:", output_text)


Acknowledge

Our model is built upon numerous outstanding open-source projects, and we are grateful for their contributions. We extend special thanks to the google team and Qwen team for their great base models.

License

This project is licensed under Apache License 2.0.

Contributors

GuanghaoZhu

6 commits

kongzym

2 commits

TI
TIM

2 commits

TIM0927

2 commits