Run this model with HF Jobs

Run FreedomIntelligence/HuatuoGPT-Vision-2-8B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/FreedomIntelligence/HuatuoGPT-Vision-2-8B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/FreedomIntelligence/HuatuoGPT-Vision-2-8B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/FreedomIntelligence/HuatuoGPT-Vision-2-8B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/FreedomIntelligence/HuatuoGPT-Vision-2-8B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="FreedomIntelligence/HuatuoGPT-Vision-2-8B")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("FreedomIntelligence/HuatuoGPT-Vision-2-8B")
model = AutoModelForMultimodalLM.from_pretrained("FreedomIntelligence/HuatuoGPT-Vision-2-8B", device_map="auto")
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

HuatuoGPT-Vision-2-8B

GitHub | Paper | PubMedVision-Plus | PubMedVision-RL

⚡ Introduction

HuatuoGPT-Vision-2-8B is a medical vision-language model in the HuatuoGPT-Vision-2 series. It is built on Qwen3-VL-8B-Instruct and keeps the architecture, tokenizer, and chat template of the base model.

It follows the two-stage recipe of HuatuoGPT-Vision-2:

  1. Medical multimodal pre-training on PubMedVision-Plus, large-scale medical image-caption pairs from PubMed, to inject medical visual knowledge.
  2. Reinforcement learning on PubMedVision-RL, with verifiable rewards for multiple-choice questions and rubric rewards from HuatuoGPT-Vision-2-Grader for open-ended questions, to elicit medical vision capabilities.

Like its base model, HuatuoGPT-Vision-2-8B is an instruct model that answers directly, without a separate thinking part. For a model with switchable thinking, see HuatuoGPT-Vision-2-27B.

👨‍⚕️ Model

Model Base model Thinking Hugging Face
HuatuoGPT-Vision-2-27B Qwen3.8-27B On (default) / Off FreedomIntelligence/HuatuoGPT-Vision-2-27B
HuatuoGPT-Vision-2-8B Qwen3-VL-8B-Instruct No thinking FreedomIntelligence/HuatuoGPT-Vision-2-8B
HuatuoGPT-Vision-2-Grader Qwen3-VL-8B-Instruct No thinking FreedomIntelligence/HuatuoGPT-Vision-2-Grader

The weights are stored in BF16 (about 18 GB). The model can be used exactly like Qwen3-VL-8B-Instruct, so any framework that supports Qwen3-VL also supports this model.

🚀 Quick start with Transformers

Requires transformers>=4.57.0.

from transformers import AutoModelForImageTextToText, AutoProcessor

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

messages = [{"role": "user", "content": [
    {"type": "image", "image": "chest_xray.jpg"},  # local path, URL, or PIL image
    {"type": "text", "text": "What are the main findings in this chest X-ray?"},
]}]

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=4096)
print(processor.decode(outputs[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

🖥️ Serving with vLLM or SGLang

vllm serve FreedomIntelligence/HuatuoGPT-Vision-2-8B --max-model-len 32768 --port 30000
# or
python -m sglang.launch_server --model-path FreedomIntelligence/HuatuoGPT-Vision-2-8B --context-length 32768 --port 30000
from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:30000/v1", api_key="EMPTY")
response = client.chat.completions.create(
    model="FreedomIntelligence/HuatuoGPT-Vision-2-8B",
    messages=[{"role": "user", "content": [
        {"type": "image_url", "image_url": {"url": "https://example.com/ct_scan.png"}},
        {"type": "text", "text": "Describe the abnormality in this CT image."},
    ]}],
    max_tokens=4096,
)
print(response.choices[0].message.content)

⚠️ Disclaimer

HuatuoGPT-Vision-2 is intended for academic research only. It must not be used for diagnosis, treatment, triage, or any other clinical decision. The model can produce incorrect or fabricated findings.

🩺 HuatuoGPT Series

  • HuatuoGPT: Taming Language Models to Be a Doctor
  • HuatuoGPT-II: One-stage Training for Medical Adaptation of LLMs
  • HuatuoGPT-Vision: Injecting Medical Visual Knowledge into Multimodal LLMs at Scale
  • HuatuoGPT-o1: Towards Medical Complex Reasoning with LLMs
  • HuatuoGPT-3: OnePO: Direct One-stage Policy Optimization for SFT-free Domain Adaptation
  • HuatuoGPT-Vision-2: Incentivizing Medical Vision Capabilities from Large-Scale Multimodal Pre-training

📖 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}
}
Downloads last month
96
Safetensors
Model size
9B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for FreedomIntelligence/HuatuoGPT-Vision-2-8B

Finetuned
(790)
this model
Quantizations
2 models

Collection including FreedomIntelligence/HuatuoGPT-Vision-2-8B