Downloads · 30 days
24
0% of all-time downloads
TsinghuaC3I/Llama-3-70B-UltraMedical
Llama-3-70B-UltraMedical is a machine learning model from TsinghuaC3I. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.
<div align="center" <h1 UltraMedical: Building Specialized Generalists in Biomedicine. </h1 </div
Downloads · 30 days
24
0% of all-time downloads
All-time downloads
8.1K
Public
Parameters
70.6B
141 GB on disk
Likes
7
Public
Click a slice to open those files.
.safetensors141 GB · 100%
From the Hugging Face model README
Llama-3-70B-UltraMedical is an open-access large language model (LLM) specialized in biomedicine. Developed by the Tsinghua C3I Lab, this model aims to enhance medical examination access, literature comprehension, and clinical knowledge.
Building on the foundation of Meta's Llama-3-70B, Llama-3-70B-UltraMedical is trained on our UltraMedical collection with supervised fine-tuning (SFT), iterative preference learning (like DPO and KTO). The UltraMedical collection is a large-scale, high-quality dataset of biomedical instructions, comprising 410,000 synthetic and manually curated samples, along with more than 100,000 preference data.
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams
llm = LLM(model="TsinghuaC3I/Llama-3-70B-UltraMedical", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("TsinghuaC3I/Llama-3-70B-UltraMedical")
sampling_params = SamplingParams(temperature=0.7, top_p=0.9, max_tokens=1024, stop=["<|eot_id|>"])
messages = [
{"role": "user", "content": """The question format used in the above input examples。"""},
]
prompts = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
print(prompts[0])
"""
<|begin_of_text|><|start_header_id|>user<|end_header_id|>
{question}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
"""
outputs = llm.generate(prompts=prompts, sampling_params=sampling_params)
print(outputs[0].outputs[0].text)
@misc{zhang2024ultramedical,
title={UltraMedical: Building Specialized Generalists in Biomedicine},
author={Kaiyan Zhang and Sihang Zeng and Ermo Hua and Ning Ding and Zhang-Ren Chen and Zhiyuan Ma and Haoxin Li and Ganqu Cui and Biqing Qi and Xuekai Zhu and Xingtai Lv and Hu Jinfang and Zhiyuan Liu and Bowen Zhou},
year={2024},
eprint={2406.03949},
archivePrefix={arXiv},
primaryClass={cs.CL}
}