HuatuoGPT-3-27B
is a medical LLM built on
Qwen3.8-27B
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.
HuatuoGPT-3 requires thinking mode.
Keep
enable_thinking=True
during inference. The model generates reasoning before providing its final answer after
</think>
.
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-27B"
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}
}
Runs of FreedomIntelligence HuatuoGPT-3-27B on huggingface.co
151
Total runs
0
24-hour runs
45
3-day runs
106
7-day runs
141
30-day runs
More Information About HuatuoGPT-3-27B huggingface.co Model
HuatuoGPT-3-27B huggingface.co is an AI model on huggingface.co that provides HuatuoGPT-3-27B's model effect (), which can be used instantly with this FreedomIntelligence HuatuoGPT-3-27B model. huggingface.co supports a free trial of the HuatuoGPT-3-27B model, and also provides paid use of the HuatuoGPT-3-27B. Support call HuatuoGPT-3-27B model through api, including Node.js, Python, http.
HuatuoGPT-3-27B huggingface.co is an online trial and call api platform, which integrates HuatuoGPT-3-27B's modeling effects, including api services, and provides a free online trial of HuatuoGPT-3-27B, you can try HuatuoGPT-3-27B online for free by clicking the link below.
FreedomIntelligence HuatuoGPT-3-27B online free url in huggingface.co:
HuatuoGPT-3-27B is an open source model from GitHub that offers a free installation service, and any user can find HuatuoGPT-3-27B on GitHub to install. At the same time, huggingface.co provides the effect of HuatuoGPT-3-27B install, users can directly use HuatuoGPT-3-27B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.