Instructions to use dtorber/BioNLP-2024-dtorber-BioBART-baseline-eLife with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dtorber/BioNLP-2024-dtorber-BioBART-baseline-eLife 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="dtorber/BioNLP-2024-dtorber-BioBART-baseline-eLife")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("dtorber/BioNLP-2024-dtorber-BioBART-baseline-eLife") model = AutoModelForSeq2SeqLM.from_pretrained("dtorber/BioNLP-2024-dtorber-BioBART-baseline-eLife", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 34782f2b0239d1acbd32b4799e56f7fc0c8680469d67c53ee1f70476b07143d3
- Size of remote file:
- 5.24 kB
- SHA256:
- 509e874e1bbd5414185c4ade35864c31b990acb290e83d74cdb8ead3a8731c47
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.