FreedomIntelligence/HuatuoGPT-3-27B · Hugging Face
摘要
HuatuoGPT-3-27B 是一个基于 Qwen3.8-27B 构建的医疗语言模型,采用单阶段策略优化 (OnePO),这是一种无需监督微调的强化学习领域适应方法。
查看缓存全文
缓存时间: 2026/09/24 21:13
FreedomIntelligence/HuatuoGPT-3-27B · Hugging Face
来源:https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-27B
介绍
HuatuoGPT-3-27B 是一个基于 Qwen3.8-27B (https://huggingface.co/Qwen/Qwen3.8-27B) 构建的医学大语言模型,采用了 一阶段策略优化(OnePO) 技术。OnePO 通过单阶段强化学习将语言模型适配到医学领域,无需预先进行领域特定的监督微调。教师响应提供临时指导,并在模型改进后逐步退出。
我们发布了训练代码 (https://github.com/FreedomIntelligence/HuatuoGPT-3)、医学强化学习数据集 (https://huggingface.co/datasets/FreedomIntelligence/OnePO-Medical-20K) 以及 8B 评分模型 (https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-Grader-8B)。
HuatuoGPT-3 需要启用思考模式。 推理时请保持
enable_thinking=True。模型会在生成最终答案前进行推理,并以</think>标签结束。
模型信息
| 模型 | 基座模型 | 用途 | 访问链接 |
|---|---|---|---|
| HuatuoGPT-3-9B | Qwen3.5-9B | 医学推理 | HF 链接 (https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-9B) |
| HuatuoGPT-3-27B | Qwen3.8-27B | 医学推理 | HF 链接 (https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-27B) |
使用方法
HuatuoGPT-3-27B 的使用方式与 Qwen3.8-27B (https://huggingface.co/Qwen/Qwen3.8-27B) 类似,可通过 vLLM (https://github.com/vllm-project/vllm) 或 SGLang (https://github.com/sgl-project/sglang) 进行部署。
若进行直接文本推理,请使用支持 Qwen3.5 的 Transformers 版本(transformers>=5.4.0)并安装 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))
引用
@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}
}
相似文章
Qwen/Qwen3.6-27B-FP8
阿里巴巴发布 Qwen3.6-27B-FP8,一款 27B 参数的 FP8 量化模型,在代理式编码与推理基准上表现强劲,现已上架 Hugging Face。
huihui-ai/Huihui-Qwen3.8-27B-abliterated
这是一个使用 abliteration 技术创建的 Qwen3.8-27B AI 模型的无审查版本,用于移除拒绝行为,作为无需广泛工具修改大型语言模型的概念验证。
Jackrong/Qwopus3.6-27B-Coder-MTP-GGUF
GGUF量化版本的Qwopus3.6-27B-Coder-MTP模型已发布在Hugging Face上,针对本地推理进行了优化,兼容Transformers、vLLM、SGLang和Unsloth Studio。
C.H.A.T.G.P.T
关于ChatGPT的文章,这是一款著名的AI语言模型。
Huihui-ai Qwen 3.8 Ablit 可用
Huihui-ai Qwen 模型的新版本已在 Hugging Face 上可用,用户正在拉取它用于分析和服务,并指出之前的版本效果很好。