#58 · Primary category: Deep Learning Frameworks

x-transformers

artificial-intelligence attention-mechanism deep-learning transformers

A concise but complete full-attention transformer with a set of promising experimental features from various papers

Project last updated:08/28/26

GitHub Stars

5.9K

Forks

517

Contributors

32

License

MIT

Why we included this project

x-transformers is aimed at PyTorch users who assemble custom transformer architectures rather than fine-tune a pretrained model. The library keeps its building blocks small: the standard encoder-only, decoder-only, and encoder-decoder setups are all there, along with vision transformer wrappers, and on top of those sits a rotating set of experimental attention variants drawn from recent papers. That combination matters for researchers and engineers who want to try flash attention, other experimental attention mechanisms, or new positional encoding schemes without hand-coding each layer. The code is compact enough to read through and modify, and it installs via pip on top of PyTorch. For teams already comfortable with PyTorch, it is a practical way to get from an idea to a working model without much ceremony.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category