BioBART: Pretraining and Evaluation of A Biomedical Generative Language Model
Paper • 2204.03905 • Published • 4
How to use medodeyaa/dentor-biobart with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "summarization" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline
pipe = pipeline("summarization", model="medodeyaa/dentor-biobart") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("medodeyaa/dentor-biobart")
model = AutoModelForSeq2SeqLM.from_pretrained("medodeyaa/dentor-biobart")Paper: BioBART: Pretraining and Evaluation of A Biomedical Generative Language Model
V2 adopts a new biomedical vocab.
@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}
}