HuatuoGPT-o1
is a medical LLM designed for advanced medical reasoning. It generates a complex thought process, reflecting and refining its reasoning, before providing a final response.
You can use HuatuoGPT-o1 in the same way as
Llama-3.1-8B-Instruct
. You can deploy it with tools like
vllm
or
Sglang
, or perform direct inference:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("FreedomIntelligence/HuatuoGPT-o1-8B",torch_dtype="auto",device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("FreedomIntelligence/HuatuoGPT-o1-8B")
input_text = "How to stop a cough?"
messages = [{"role": "user", "content": input_text}]
inputs = tokenizer(tokenizer.apply_chat_template(messages, tokenize=False,add_generation_prompt=True
), return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=2048)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
HuatuoGPT-o1 adopts a
thinks-before-it-answers
approach, with outputs formatted as:
## Thinking
[Reasoning process]
## Final Response
[Output]
📖 Citation
@misc{chen2024huatuogpto1,
title={HuatuoGPT-o1, Towards Medical Complex Reasoning with LLMs},
author={Junying Chen and Zhenyang Cai and Ke Ji and Xidong Wang and Wanlong Liu1 and Rongsheng Wang and Jianye Hou and Benyou Wang},
year={2024}
}
Runs of FreedomIntelligence HuatuoGPT-o1-8B on huggingface.co
1.8K
Total runs
0
24-hour runs
634
3-day runs
1.3K
7-day runs
333
30-day runs
More Information About HuatuoGPT-o1-8B huggingface.co Model
HuatuoGPT-o1-8B huggingface.co is an AI model on huggingface.co that provides HuatuoGPT-o1-8B's model effect (), which can be used instantly with this FreedomIntelligence HuatuoGPT-o1-8B model. huggingface.co supports a free trial of the HuatuoGPT-o1-8B model, and also provides paid use of the HuatuoGPT-o1-8B. Support call HuatuoGPT-o1-8B model through api, including Node.js, Python, http.
HuatuoGPT-o1-8B huggingface.co is an online trial and call api platform, which integrates HuatuoGPT-o1-8B's modeling effects, including api services, and provides a free online trial of HuatuoGPT-o1-8B, you can try HuatuoGPT-o1-8B online for free by clicking the link below.
FreedomIntelligence HuatuoGPT-o1-8B online free url in huggingface.co:
HuatuoGPT-o1-8B is an open source model from GitHub that offers a free installation service, and any user can find HuatuoGPT-o1-8B on GitHub to install. At the same time, huggingface.co provides the effect of HuatuoGPT-o1-8B install, users can directly use HuatuoGPT-o1-8B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.