allenai/longformer
Longformer: The Long-Document Transformer observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2346
- days_rel: n/a
- days_push: 1302
- n_releases_24m: 0
Adoption not part of the score
2205 stars · 286 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Longformer is a pretrained transformer model family (including the LongformerEncoderDecoder/LED variant) that processes long documents up to 16K tokens using a linear-scaling attention mechanism combining local windowed and global attention. It is integrated with Hugging Face Transformers and released under Apache-2.0 by the Allen Institute for AI.
Use cases
- process long documents with a transformer model
- summarize long scientific papers or reports
- question answering over long documents
- fine-tune a transformer on documents longer than 512 tokens
- convert an existing pretrained model into a long-context version
- character-level language modeling on long text
When to choose
- you need transformer models that handle documents of thousands of tokens
- you want a drop-in Hugging Face-compatible long-context encoder or encoder-decoder
- you need pretrained weights for long-document QA, classification, or summarization
When to avoid
- your inputs fit within standard 512-token limits and a regular BERT/RoBERTa suffices
- you need actively developed long-context models with the latest architectures
- you lack GPU resources, since long sequences require significant memory
Facets
library · maturity maintenance
machine-learning deep-learning nlp llm-training deep-learning machine-learning python transformer long-context attention-mechanism huggingface pretrained-models summarization question-answering natural-language-processing gpu
6 sources
- readme: https://github.com/allenai/longformer · fetched 2026-08-28 · 0fea3373e039
- homepage: https://arxiv.org/abs/2004.05150 · fetched 2026-08-29 · 994cb8b7acb4
- site_page: https://info.arxiv.org/about/donate.html · fetched 2026-08-29 · cca9c3a11c56
- site_page: https://info.arxiv.org/about/ourmembers.html · fetched 2026-08-29 · 47cbc55ff1de
- site_page: https://info.arxiv.org/about · fetched 2026-08-29 · a1f16f915a9a
- site_page: https://info.arxiv.org/labs/index.html · fetched 2026-08-29 · b14a8d05a0ec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| allenai/longformer | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="allenai/longformer")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem