HuatuoGPT-Vision-2-8B
medical multimodal model
2 min readupdated
HuatuoGPT-Vision-2-8B is a specialized medical multimodal model (a model that understands both text and images) created by FreedomIntelligence researchers. It is built on the powerful Qwen3-VL-8B-Instruct model (8.77 billion parameters) and trained in two stages: using medical multimodal pre-training based on PubMedVision-Plus and reinforcement learning (RL - a method for tuning models using rewards for correct answers). The model delivers direct answers without a lengthy reasoning process and excels at understanding medical visual data. It will be useful for researchers and developers working on scientific medical tasks.
Key features
- Medical focus: Trained on massive datasets of medical images and descriptions from PubMed.
- Qwen3-VL foundation: Retains the architecture, tokenizer, and chat template of the base Qwen3-VL-8B-Instruct model.
- Direct answer: Operates as an instruct model, responding to prompts directly without a separate thinking generation stage.
- Compatibility: Weights are saved in BF16 format (about 18 GB), supporting any frameworks that work with Qwen3-VL.
What you can do
- Scan analysis: Apply the model in research tasks to describe X-rays, CT scans, and other medical images.
- Serving via vLLM: Deploy your own local API server to process medical requests using vLLM or SGLang.
- Python integration: Use standard transformers and AutoProcessor libraries for text and image processing.
- Research work: Use for academic and research projects in the field of medical AI.
Example
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"},
{"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))Read more
Details• Architecture: based on Qwen3-VL-8B-Instruct (8.77 billion parameters)
• Hardware requirements: BF16 weights take about 18 GB VRAM
• Training: PubMedVision-Plus and RL based on PubMedVision-RL
• Limitations: intended exclusively for academic research, prohibited for clinical use and diagnostics










Comments