FreedomIntelligence / HuatuoGPT-3-7B-Pangu

huggingface.co
Total runs: 33
24-hour runs: 0
7-day runs: 3
30-day runs: 21
Model's Last Updated: March 21 2026
text-generation

Introduction of HuatuoGPT-3-7B-Pangu

Model Details of HuatuoGPT-3-7B-Pangu

🩺 HuatuoGPT-3-7B-Pangu

Introduction

HuatuoGPT-3 is an open-source medical LLM trained with SeedRL , an RL-only domain adaptation paradigm that transforms a base model into a medical expert in a single RL stage.

HuatuoGPT-3-7B-Pangu is the Pangu-based variant in the HuatuoGPT-3 series. Different from the Qwen-based versions, it is built on FreedomIntelligence/openPangu-Embedded-7B and trained with Ascend NPUs .

For more information, visit our GitHub repository: https://github.com/FreedomIntelligence/HuatuoGPT-3

HuatuoGPT-3-7B-Pangu is set to thinking mode by default. Since it is based on openPangu, the generated reasoning content is placed between [unused16] and [unused17] , and the final response starts after [unused17] .

Model Info

Model Description Backbone Link
HuatuoGPT-3-32B 32B medical LLM trained with SeedRL Qwen3-32B HF Link
HuatuoGPT-3-8B 8B medical LLM trained with SeedRL Qwen3-8B-Base HF Link
HuatuoGPT-3-7B-Pangu 7B medical LLM trained with SeedRL openPangu-Embedded-7B HF Link

Usage

You can use HuatuoGPT-3-7B-Pangu in the same way as FreedomIntelligence/openPangu-Embedded-7B .

When using this model, please note that the Pangu backbone requires trust_remote_code=True in Transformers, and --trust_remote_code when serving with vLLM.

  • Direct inference:
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "FreedomIntelligence/HuatuoGPT-3-7B-Pangu"

tokenizer = AutoTokenizer.from_pretrained(
    model_name,
    use_fast=False,
    trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    trust_remote_code=True,
    torch_dtype="auto",
    device_map="auto"
)

messages = [
    {"role": "user", "content": "What are the common causes of chest pain?"}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(
    **inputs,
    max_new_tokens=4096,
    eos_token_id=45892,
    return_dict_in_generate=True
)

input_length = inputs.input_ids.shape[1]
generated_tokens = outputs.sequences[:, input_length:]
output_text = tokenizer.decode(generated_tokens[0])

thinking_content = output_text.split("[unused17]")[0].split("[unused16]")[-1].strip()
content = output_text.split("[unused17]")[-1].split("[unused10]")[0].strip()

print("thinking content:", thinking_content)
print("content:", content)
  • You can also serve the model with vLLM. Make sure to include --trust_remote_code :
CUDA_VISIBLE_DEVICES=0 \
vllm serve FreedomIntelligence/HuatuoGPT-3-7B-Pangu \
  --served-model-name HuatuoGPT-3-7B-Pangu \
  --trust_remote_code \
  --port 8000

Or:

CUDA_VISIBLE_DEVICES=0 \
python -m vllm.entrypoints.openai.api_server \
  --model FreedomIntelligence/HuatuoGPT-3-7B-Pangu \
  --served-model-name HuatuoGPT-3-7B-Pangu \
  --trust_remote_code \
  --port 8000

📖 Citation

@article{huatuogpt3,
  title={HuatuoGPT-3: RL-Only Domain Adaptation from Base Models via Off-Policy Seeding},
  author={Coming soon},
  journal={arXiv preprint},
  year={2026}
}

Runs of FreedomIntelligence HuatuoGPT-3-7B-Pangu on huggingface.co

33
Total runs
0
24-hour runs
2
3-day runs
3
7-day runs
21
30-day runs

More Information About HuatuoGPT-3-7B-Pangu huggingface.co Model

More HuatuoGPT-3-7B-Pangu license Visit here:

https://choosealicense.com/licenses/apache-2.0

HuatuoGPT-3-7B-Pangu huggingface.co

HuatuoGPT-3-7B-Pangu huggingface.co is an AI model on huggingface.co that provides HuatuoGPT-3-7B-Pangu's model effect (), which can be used instantly with this FreedomIntelligence HuatuoGPT-3-7B-Pangu model. huggingface.co supports a free trial of the HuatuoGPT-3-7B-Pangu model, and also provides paid use of the HuatuoGPT-3-7B-Pangu. Support call HuatuoGPT-3-7B-Pangu model through api, including Node.js, Python, http.

FreedomIntelligence HuatuoGPT-3-7B-Pangu online free

HuatuoGPT-3-7B-Pangu huggingface.co is an online trial and call api platform, which integrates HuatuoGPT-3-7B-Pangu's modeling effects, including api services, and provides a free online trial of HuatuoGPT-3-7B-Pangu, you can try HuatuoGPT-3-7B-Pangu online for free by clicking the link below.

FreedomIntelligence HuatuoGPT-3-7B-Pangu online free url in huggingface.co:

https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-7B-Pangu

HuatuoGPT-3-7B-Pangu install

HuatuoGPT-3-7B-Pangu is an open source model from GitHub that offers a free installation service, and any user can find HuatuoGPT-3-7B-Pangu on GitHub to install. At the same time, huggingface.co provides the effect of HuatuoGPT-3-7B-Pangu install, users can directly use HuatuoGPT-3-7B-Pangu installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

HuatuoGPT-3-7B-Pangu install url in huggingface.co:

https://huggingface.co/FreedomIntelligence/HuatuoGPT-3-7B-Pangu

Url of HuatuoGPT-3-7B-Pangu

Provider of HuatuoGPT-3-7B-Pangu huggingface.co

FreedomIntelligence
ORGANIZATIONS

Other API from FreedomIntelligence