lucidrains/x-transformers
A concise but complete full-attention transformer with a set of promising experimental features from various papers observed · 2026-08-28
Health v2 · maintenance only
85/100
- Activity 99
- Release rhythm 58
- 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: 0.0
- age_days: 2139
- days_rel: 202
- days_push: 7
- n_releases_24m: 211
Adoption not part of the score
5942 stars · 517 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A concise PyTorch library implementing full-attention transformer architectures (encoder, decoder, encoder-decoder, and vision transformers) with many experimental attention features drawn from recent research papers. It lets researchers and practitioners quickly assemble GPT-like, BERT-like, or ViT models with a few lines of code.
Use cases
- build a gpt-style decoder-only transformer in pytorch
- implement an encoder-decoder transformer for seq2seq tasks
- experiment with new attention mechanisms from papers
- train a vision transformer for image classification
- prototype transformer architectures for research
- build an image captioning model
When to choose
- you want a lightweight, hackable transformer implementation for research or experimentation
- you need quick access to many experimental attention variants without writing them yourself
- you are prototyping custom architectures rather than serving production LLMs
When to avoid
- you need a production-grade, optimized inference engine for large language models
- you want a full training framework with data pipelines, distributed training, and fine-tuning tooling
- you prefer batteries-included frameworks like Hugging Face Transformers with pretrained model hubs
Facets
library · maturity active
machine-learning deep-learning llm-training deep-learning large-language-models artificial-intelligence python transformers attention-mechanism pytorch research encoder-decoder gpt bert vision-transformer natural-language-processing gpu
1 source
- readme: https://github.com/lucidrains/x-transformers · fetched 2026-08-28 · f3615133a4b3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lucidrains/x-transformers | main | 85 |
For agents
markdown · JSON · MCP: product_card(name="lucidrains/x-transformers")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem