Summarization
Transformers
PyTorch
Safetensors
English
led
text2text-generation
Eval Results (legacy)
Instructions to use AlgorithmicResearchGroup/led_large_16384_arxiv_summarization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlgorithmicResearchGroup/led_large_16384_arxiv_summarization 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="AlgorithmicResearchGroup/led_large_16384_arxiv_summarization")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("AlgorithmicResearchGroup/led_large_16384_arxiv_summarization") model = AutoModelForSeq2SeqLM.from_pretrained("AlgorithmicResearchGroup/led_large_16384_arxiv_summarization", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Artifact AI commited on
Commit ·
5306ad9
1
Parent(s): f725ba3
add readme
Browse files12345678910111213---language: en---
## Introduction
A led-large-16384 model to summarize ArXiv papers. Inputs are the abstracts of papers and full documents, and outputs are the summaries of the papers.
[Allenai's Longformer Encoder-Decoder (LED)](https://github.com/allenai/longformer#longformer).
As described in [Longformer: The Long-Document Transformer](https://arxiv.org/pdf/2004.05150.pdf) by Iz Beltagy, Matthew E. Peters, Arman Cohan, *led-base-16384* was initialized from [*bart-base*](https://huggingface.co/facebook/bart-base) since both models share the exact same architecture. To be able to process 16K tokens, *bart-base*'s position embedding matrix was simply copied 16 times.README.mdAdded+13