Retrieved article excerpt
Open article Β· Retrieved 2026-09-17T17:26:09.459499+00:00
# [FreedomIntelligence](https://huggingface.co/FreedomIntelligence) / [HuatuoGPT-3-9B](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-9B) Like 1 Follow FreedomAI 1.08k
[Image-Text-to-Text](https://huggingface.co/models?pipeline_tag=image-text-to-text)[Transformers](https://huggingface.co/models?library=transformers)[Safetensors](https://huggingface.co/models?library=safetensors)[qwen3\_5](https://huggingface.co/models?other=qwen3_5)[medical](https://huggingface.co/models?other=medical)[reasoning](https://huggingface.co/models?other=reasoning)[conversational](https://huggingface.co/models?other=conversational)[onepo](https://huggingface.co/models?other=onepo)
License: apache-2.0
[Model card](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-9B) [Files Files and versions
xet](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-9B/tree/main) [Community](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-9B/discussions)
Deploy
Copy to bucket new
Use this model
# π©Ί HuatuoGPT-3-9B
[π GitHub](https://github.com/FreedomIntelligence/HuatuoGPT-3) |
[π Paper](https://openreview.net/pdf?id=M8eyUQldfx)
## Introduction
**HuatuoGPT-3-9B** is a medical LLM built on [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) with **One-stage Policy Optimization (OnePO)**. OnePO adapts language models to medicine in a single reinforcement-learning stage, without preceding domain-specific supervised fine-tuning. Teacher responses provide temporary guidance and are retired as the model improves.
We release the [training code](https://github.com/FreedomIntelligence/HuatuoGPT-3), [medical RL dataset](https://huggingface.co/datasets/FreedomIntelligence/OnePO-Medical-20K), and [8B rubric grader](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-Grader-8B).
> **HuatuoGPT-3 requires thinking mode.** Keep `enable_thinking=True` during inference. The model generates reasoning before providing its final answer after `</think>`.
## Model Info
| Model | Backbone | Purpose | Access |
| --- | --- | --- | --- |
| HuatuoGPT-3-8B | Qwen3-8B-Base | Medical reasoning | [HF Link](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-8B) |
| **HuatuoGPT-3-9B** | **Qwen3.5-9B** | **Medical reasoning** | [HF Link](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-9B) |
| HuatuoGPT-3-32B | Qwen3-32B | Medical reasoning | [HF Link](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-32B) |
| HuatuoGPT-3-Grader-8B | Qwen3-8B | Rubric scoring | [HF Link](https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-Grader-8B) |
## Usage
**HuatuoGPT-3-9B** can be used like [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) and deployed with [vLLM](https://github.com/vllm-project/vllm) or [SGLang](https://github.com/sgl-project/sglang).
For direct text inference, use a Transformers version with Qwen3.5 support (`transformers>=5.4.0`) and `accelerate`:
```
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "FreedomIntelligence/HuatuoGPT-3-9B"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
dtype="auto",
device_map="auto",
).eval()
messages = [{
"role": "user",
"content": [{"type": "text", "text": "What are the common causes of chest pain?"}],
}]
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
enable_thinking=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=4096)
response = outputs[0, inputs["input_ids"].shape[-1]:]
print(processor.decode(response, skip_special_tokens=True))
```
## π Citation
```
@inproceedings{chen2026onepo,
title={OnePO: Direct One-stage Policy Optimization for SFT-free Domain Adaptation},
author={Chen, Junying and Xie, Xinyuan and Li, Ziniu and Wang, Benyou},
booktitle={Proceedings of the 43rd International Conference on Machine Learning},
year={2026}
}
```
Downloads last month
: -
Safetensors
Model size
9B params
Tensor type
BF16
Β·
Chat template
Files info
## Model tree for FreedomIntelligence/HuatuoGPT-3-9B
Base model
[Qwen/Qwen3.5-9B-Base](https://huggingface.co/Qwen/Qwen3.5-9B-Base)
Finetuned
[Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B)
Finetuned
([818](https://huggingface.co/models?other=base_model:finetune:Qwen/Qwen3.5-9B))
this model