Huffing Face

FreedomIntelligence/HuatuoGPT-3-27B

apache-2.0 13/13 files local @ e759ddae4d3c

HF_ENDPOINT=https://huffingface.co \
  python -c "from huggingface_hub import snapshot_download; snapshot_download('FreedomIntelligence/HuatuoGPT-3-27B')"

Model card

🩺 HuatuoGPT-3-27B

🏠 GitHub | 📄 Paper

Introduction

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.

We release the training code, medical RL dataset, and 8B rubric grader.

HuatuoGPT-3 requires thinking mode. Keep enable_thinking=True during inference. The model generates reasoning before providing its final answer after </think>.

Model Info

ModelBackbonePurposeAccess
HuatuoGPT-3-9BQwen3.5-9BMedical reasoningHF Link
HuatuoGPT-3-27BQwen3.8-27BMedical reasoningHF Link

Usage

HuatuoGPT-3-27B can be used like Qwen3.8-27B and deployed with vLLM or 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-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}
}

Files

FileSizeStatus
.gitattributes2 kBhuffed
README.md3 kBhuffed
chat_template.jinja9 kBhuffed
config.json4 kBhuffed
generation_config.json0 kBhuffed
model-00001-of-00002.safetensors50.0 GBhuffed
model-00002-of-00002.safetensors4.8 GBhuffed
model.safetensors.index.json111 kBhuffed
preprocessor_config.json0 kBhuffed
processor_config.json1 kBhuffed
tokenizer.json20.0 MBhuffed
tokenizer_config.json10 kBhuffed
video_preprocessor_config.json1 kBhuffed