{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/3"}],"enrichment":{"capability":"x-transformers provides modular transformer building blocks\u2014encoder, decoder, and encoder-decoder architectures\u2014with experimental features like Flash Attention, memory tokens, and persistent memory for research and production use.","skillfed_tags":["transformer-architecture","vision-language","attention-mechanism"],"use_cases":["Build a GPT-like decoder-only language model with configurable depth, heads, and sequence length","Implement a BERT-style encoder for text classification or token-level tasks","Create a vision transformer (ViT) for image classification on custom datasets","Combine a vision encoder with a text decoder for image-to-caption generation","Experiment with Flash Attention or memory tokens to reduce training memory footprint","Prototype multimodal models like PaLI that fuse vision and language encoders"],"what_it_does":"x-transformers is a PyTorch library that provides composable transformer components\u2014Encoder, Decoder, and full encoder-decoder (XTransformer)\u2014along with experimental architectural improvements from recent papers. It supports standard use cases like GPT-style language modeling, BERT-style encoding, vision transformers (ViT), and multimodal tasks like image captioning and vision-language models. The library integrates Flash Attention for memory-efficient training, memory tokens for improved attention dynamics, and persistent memory key-values as alternatives to feedforward layers.\n\nThe package is designed for researchers and practitioners building custom transformer models. Dependencies include torch for the core computation, einops and einx for tensor operations, loguru for logging, and packaging for version handling. It requires Python 3.9+ and is actively maintained, with recent releases indicating ongoing development.","worth_installing":"Yes. x-transformers is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and offers a well-designed API for building transformer variants. It is worth installing if you need modular transformer components with experimental features like Flash Attention or memory tokens. Install friction is low. The main constraint is the torch dependency and GPU requirement for practical training."},"id":"x-transformers","links":{"html":"https://skillfed.io/packages/x-transformers","md":"https://skillfed.io/packages/x-transformers.md","pypi":"https://pypi.org/project/x-transformers/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-09","license_spdx":null,"license_treatment":"permissive","name":"x-transformers","python_support":"supports_current","summary":"X-Transformers"},"popularity":{"monthly_downloads":1401439,"position":3951,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.25.5"}
