The Yuyuan-Bart-139M is a biomedical generative language model jointly produced by Tsinghua University and International Digital Economy Academy (IDEA). We use biomedical research paper abstracts on PubMed (41G) as the pretraining corpora. We train the base version of BioBART(139M parameters) on 2 DGX with 16 40GB A100 GPUs for about 100 hours with the help of the open-resource framework DeepSpeed.
使用 Usage
from transformers import BartForConditionalGeneration, BartTokenizer
tokenizer = BartTokenizer.from_pretrained('IDEA-CCNL/Yuyuan-Bart-139M')
model = BartForConditionalGeneration.from_pretrained('IDEA-CCNL/Yuyuan-Bart-139M')
text = 'Influenza is a <mask> disease.'
input_ids = tokenizer([text], return_tensors="pt")['input_ids']
model.eval()
generated_ids = model.generate(
input_ids=input_ids,
)
preds = [tokenizer.decode(g, skip_special_tokens=True, clean_up_tokenization_spaces=True) for g in generated_ids]
print(preds)
引用 Citation
如果您在您的工作中使用了我们的模型,可以引用我们的对该模型的论文:
If you are using the resource for your work, please cite the our paper for this model:
@misc{BioBART,
title={BioBART: Pretraining and Evaluation of A Biomedical Generative Language Model},
author={Hongyi Yuan and Zheng Yuan and Ruyi Gan and Jiaxing Zhang and Yutao Xie and Sheng Yu},
year={2022},
eprint={2204.03905},
archivePrefix={arXiv}
}
If you are using the resource for your work, please cite the our
overview paper
:
@article{fengshenbang,
author = {Jiaxing Zhang and Ruyi Gan and Junjie Wang and Yuxiang Zhang and Lin Zhang and Ping Yang and Xinyu Gao and Ziwei Wu and Xiaoqun Dong and Junqing He and Jianheng Zhuo and Qi Yang and Yongfeng Huang and Xiayu Li and Yanghan Wu and Junyu Lu and Xinyu Zhu and Weifeng Chen and Ting Han and Kunhao Pan and Rui Wang and Hao Wang and Xiaojun Wu and Zhongshen Zeng and Chongpei Chen},
title = {Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence},
journal = {CoRR},
volume = {abs/2209.02970},
year = {2022}
}
Yuyuan-Bart-139M huggingface.co is an AI model on huggingface.co that provides Yuyuan-Bart-139M's model effect (), which can be used instantly with this IDEA-CCNL Yuyuan-Bart-139M model. huggingface.co supports a free trial of the Yuyuan-Bart-139M model, and also provides paid use of the Yuyuan-Bart-139M. Support call Yuyuan-Bart-139M model through api, including Node.js, Python, http.
Yuyuan-Bart-139M huggingface.co is an online trial and call api platform, which integrates Yuyuan-Bart-139M's modeling effects, including api services, and provides a free online trial of Yuyuan-Bart-139M, you can try Yuyuan-Bart-139M online for free by clicking the link below.
IDEA-CCNL Yuyuan-Bart-139M online free url in huggingface.co:
Yuyuan-Bart-139M is an open source model from GitHub that offers a free installation service, and any user can find Yuyuan-Bart-139M on GitHub to install. At the same time, huggingface.co provides the effect of Yuyuan-Bart-139M install, users can directly use Yuyuan-Bart-139M installed effect in huggingface.co for debugging and trial. It also supports api for free installation.