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.
It is a pretrained model on Dutch language using a masked language modeling (MLM) objective. It was introduced in this
paper
and first released in this
repository
.
Model description
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.
How to use
Here is how to use this model to get the features of a given text in PyTorch:
from transformers import BigBirdModel
# by default its in `block_sparse` mode with num_random_blocks=3, block_size=64
model = BigBirdModel.from_pretrained("flax-community/pino-bigbird-roberta-base")
# you can change `attention_type` to full attention like this:
model = BigBirdModel.from_pretrained("flax-community/pino-bigbird-roberta-base", attention_type="original_full")
# you can change `block_size` & `num_random_blocks` like this:
model = BigBirdModel.from_pretrained("flax-community/pino-bigbird-roberta-base", block_size=16, num_random_blocks=2)
Training Data
This model is pre-trained on four publicly available datasets:
mC4
, and scraped
Dutch news
from NRC en Nu.nl. It uses the the fast universal Byte-level BPE (BBPE) in contrast to the sentence piece tokenizer and vocabulary as RoBERTa (which is in turn borrowed from GPT2).
Training Procedure
The data is cleaned as follows:
Remove texts containing HTML codes / javascript codes / loremipsum / policies
Remove lines without end mark.
Remove too short texts, words
Remove too long texts, words
Remove bad words
BibTeX entry and citation info
@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}
}
Runs of flax-community pino-bigbird-roberta-base on huggingface.co
65
Total runs
0
24-hour runs
1
3-day runs
8
7-day runs
53
30-day runs
More Information About pino-bigbird-roberta-base huggingface.co Model
pino-bigbird-roberta-base huggingface.co
pino-bigbird-roberta-base huggingface.co is an AI model on huggingface.co that provides pino-bigbird-roberta-base's model effect (), which can be used instantly with this flax-community pino-bigbird-roberta-base model. huggingface.co supports a free trial of the pino-bigbird-roberta-base model, and also provides paid use of the pino-bigbird-roberta-base. Support call pino-bigbird-roberta-base model through api, including Node.js, Python, http.
pino-bigbird-roberta-base huggingface.co is an online trial and call api platform, which integrates pino-bigbird-roberta-base's modeling effects, including api services, and provides a free online trial of pino-bigbird-roberta-base, you can try pino-bigbird-roberta-base online for free by clicking the link below.
flax-community pino-bigbird-roberta-base online free url in huggingface.co:
pino-bigbird-roberta-base is an open source model from GitHub that offers a free installation service, and any user can find pino-bigbird-roberta-base on GitHub to install. At the same time, huggingface.co provides the effect of pino-bigbird-roberta-base install, users can directly use pino-bigbird-roberta-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
pino-bigbird-roberta-base install url in huggingface.co: