This checkpoint should be loaded into BartForConditionalGeneration.frompretrained. See the BART docs for more information.
Search public pages, research tools, and SAVRN solutions.
Open-weight model · Summarization
by Google google/bigbird-pegasus-large-arxiv
BigBird, is a sparse-attention based transformer which extends Transformer based models, such as BERT to much longer sequences.
By Google, published under apache-2.0, revision c5ae494f3d31.
BigBird, is a sparse-attention based transformer which extends Transformer based models, such as BERT to much longer sequences. Moreover, BigBird comes along with a theoretical understanding of the capabilities of a complete transformer that the sparse model can handle. BigBird was introduced in this paper and first released in this repository. Disclaimer: The team releasing BigBird did not write a model card for this model so this model card has been written by the Hugging Face team. BigBird relies on block sparse attention instead of normal attention (i.e. BERT's attention) and can handle sequences up to a length of 4096 at a much lower compute cost compared to BERT. It has achieved SOTA…
BigBird, is a sparse-attention based transformer which extends Transformer based models, such as BERT to much longer sequences. Moreover, BigBird comes along with a theoretical understanding of the capabilities of a complete transformer that the sparse model can handle.
BigBird was introduced in this paper and first released in this repository.
Disclaimer: The team releasing BigBird did not write a model card for this model so this model card has been written by the Hugging Face team.
BigBird relies on block sparse attention instead of normal attention (i.e. BERT's attention) and can handle sequences up to a length of 4096 at a much lower compute cost compared to BERT. It has achieved SOTA on various tasks involving very long sequences such as long documents summarization, question-answering with long contexts.
Here is how to use this model to get the features of a given text in PyTorch:
from transformers import BigBirdPegasusForConditionalGeneration, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("google/bigbird-pegasus-large-arxiv")
# by default encoder-attention is `block_sparse` with num_random_blocks=3, block_size=64
model = BigBirdPegasusForConditionalGeneration.from_pretrained("google/bigbird-pegasus-large-arxiv")
# decoder attention type can't be changed & will be "original_full"
# you can change `attention_type` (encoder only) to full attention like this:
model = BigBirdPegasusForConditionalGeneration.from_pretrained("google/bigbird-pegasus-large-arxiv", attention_type="original_full")
# you can change `block_size` & `num_random_blocks` like this:
model = BigBirdPegasusForConditionalGeneration.from_pretrained("google/bigbird-pegasus-large-arxiv", block_size=16, num_random_blocks=2)
text = "Replace me by any text you'd like."
inputs = tokenizer(text, return_tensors='pt')
prediction = model.generate(**inputs)
prediction = tokenizer.batch_decode(prediction)
This checkpoint is obtained after fine-tuning BigBirdPegasusForConditionalGeneration for summarization on arxiv dataset from scientific_papers.
@misc{zaheer2021big,
title={Big Bird: Transformers for Longer Sequences},
author={Manzil Zaheer and Guru Guruganesh and Avinava Dubey and Joshua Ainslie and Chris Alberti and Santiago Ontanon and Philip Pham and Anirudh Ravula and Qifan Wang and Li Yang and Amr Ahmed},
year={2021},
eprint={2007.14062},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
9 files, 2.3 GB in total. The weights are 1 file totalling 2.3 GB in bin.
| File | Type | Size | SHA-256 |
|---|---|---|---|
| pytorch_model.bin | Weights | 2.3 GB | 3a35dbc739f8 |
| config.json | Configuration | 1.1 KB | — |
| generation_config.json | Configuration | 232 B | — |
| special_tokens_map.json | Configuration | 775 B | — |
| README.md | Documentation | 6.3 KB | — |
| .gitattributes | Repository | 690 B | — |
| spiece.model | Tokenizer | 1.9 MB | fe1b40df7e88 |
| tokenizer.json | Tokenizer | 3.5 MB | — |
| tokenizer_config.json | Tokenizer | 1.2 KB | — |
Released by Google through its official repository on Hugging Face. Read the license.
Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.
| Benchmark | Conditions | Result | Reported by | Revision | Date |
|---|---|---|---|---|---|
| cnn_dailymail | Configuration 3.0.0Task SummarizationMetric ROUGE-1Comparison conditions not established | 9.0885 | google Publisher reported |
Evaluated revision not stated | — |
| cnn_dailymail | Configuration 3.0.0Task SummarizationMetric ROUGE-2Comparison conditions not established | 1.0325 | google Publisher reported |
Evaluated revision not stated | — |
| cnn_dailymail | Configuration 3.0.0Task SummarizationMetric ROUGE-LComparison conditions not established | 7.3182 | google Publisher reported |
Evaluated revision not stated | — |
| cnn_dailymail | Configuration 3.0.0Task SummarizationMetric ROUGE-LSUMComparison conditions not established | 8.1455 | google Publisher reported |
Evaluated revision not stated | — |
| cnn_dailymail | Configuration 3.0.0Task SummarizationMetric gen_lenComparison conditions not established | 210.476 | google Publisher reported |
Evaluated revision not stated | — |
| samsum | Configuration samsumTask SummarizationMetric ROUGE-1Comparison conditions not established | 3.621 | google Publisher reported |
Evaluated revision not stated | — |
| samsum | Configuration samsumTask SummarizationMetric ROUGE-2Comparison conditions not established | 0.1699 | google Publisher reported |
Evaluated revision not stated | — |
| samsum | Configuration samsumTask SummarizationMetric ROUGE-LComparison conditions not established | 3.2016 | google Publisher reported |
Evaluated revision not stated | — |
| samsum | Configuration samsumTask SummarizationMetric ROUGE-LSUMComparison conditions not established | 3.3269 | google Publisher reported |
Evaluated revision not stated | — |
| samsum | Configuration samsumTask SummarizationMetric gen_lenComparison conditions not established | 233.811 | google Publisher reported |
Evaluated revision not stated | — |
| samsum | Configuration samsumTask SummarizationMetric lossComparison conditions not established | 7.66448 | google Publisher reported |
Evaluated revision not stated | — |
| scientific_papers | Configuration pubmedTask SummarizationMetric ROUGE-1Comparison conditions not established | 43.4702 | google Publisher reported |
Evaluated revision not stated | — |
| scientific_papers | Configuration pubmedTask SummarizationMetric ROUGE-2Comparison conditions not established | 17.4297 | google Publisher reported |
Evaluated revision not stated | — |
| scientific_papers | Configuration pubmedTask SummarizationMetric ROUGE-LComparison conditions not established | 26.2587 | google Publisher reported |
Evaluated revision not stated | — |
| scientific_papers | Configuration pubmedTask SummarizationMetric ROUGE-LSUMComparison conditions not established | 35.5587 | google Publisher reported |
Evaluated revision not stated | — |
| scientific_papers | Configuration pubmedTask SummarizationMetric gen_lenComparison conditions not established | 183.37 | google Publisher reported |
Evaluated revision not stated | — |
| scientific_papers | Configuration pubmedTask SummarizationMetric lossComparison conditions not established | 2.11132 | google Publisher reported |
Evaluated revision not stated | — |
| scientific_papers | Configuration pubmedTask SummarizationMetric meteorComparison conditions not established | 0.2824 | google Publisher reported |
Evaluated revision not stated | — |
| xsum | Configuration defaultTask SummarizationMetric ROUGE-1Comparison conditions not established | 4.9787 | google Publisher reported |
Evaluated revision not stated | — |
| xsum | Configuration defaultTask SummarizationMetric ROUGE-2Comparison conditions not established | 0.3527 | google Publisher reported |
Evaluated revision not stated | — |
| xsum | Configuration defaultTask SummarizationMetric ROUGE-LComparison conditions not established | 4.3679 | google Publisher reported |
Evaluated revision not stated | — |
| xsum | Configuration defaultTask SummarizationMetric ROUGE-LSUMComparison conditions not established | 4.1723 | google Publisher reported |
Evaluated revision not stated | — |
| xsum | Configuration defaultTask SummarizationMetric gen_lenComparison conditions not established | 230.489 | google Publisher reported |
Evaluated revision not stated | — |
| Precision | Weights in memory |
|---|---|
| As published | 2.3 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Yes. bigbird-pegasus-large-arxiv is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.
4,096 tokens, from the maximum position embeddings in its published configuration.
This checkpoint should be loaded into BartForConditionalGeneration.frompretrained. See the BART docs for more information.
Original TF 1 code here Authors: Jingqing Zhang, Yao Zhao, Mohammad Saleh and Peter J. Liu on Dec 18, 2019 The following is copied from the authors' README. We train a pegasus model with sampled gap sentence ratios on both C4 and HugeNews, and stochastically sample important sentences. The updated the results are reported in this table. The "Mixed & Stochastic" model has the following changes: - trained on both C4 and HugeNews (dataset mixture is weighted by their number of examples). - trained for 1.5M instead of 500k (we observe slower convergence on pretraining perplexity). - the model uniformly sample a gap sentence ratio between 15% and 45%. - importance sentences are sampled using a…
This model was trained using Amazon SageMaker and the new Hugging Face Deep Learning container.
This checkpoint should be loaded into BartForConditionalGeneration.frompretrained. See the BART docs for more information.
This repository contains the mT5 checkpoint finetuned on the 45 languages of XL-Sum dataset. For finetuning details and scripts, see the paper and the official repository. Scores on the XL-Sum test sets are as follows: Language | ROUGE-1 / ROUGE-2 / ROUGE-L Amharic | 20.0485 / 7.4111 / 18.0753 Arabic | 34.9107 / 14.7937 / 29.1623 Azerbaijani | 21.4227 / 9.5214 / 19.3331 Bengali | 29.5653 / 12.1095 / 25.1315 Burmese | 15.9626 / 5.1477 / 14.1819 Chinese (Simplified) | 39.4071 / 17.7913 / 33.406 Chinese (Traditional) | 37.1866 / 17.1432 / 31.6184 English | 37.601 / 15.1536 / 29.8817 French | 35.3398 / 16.1739 / 28.2041 Gujarati | 21.9619 / 7.7417 / 19.86 Hausa | 39.4375 / 17.6786 / 31.6667…