awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
kimiyoung avatar

kimiyoung/transformer-xl

0
View on GitHub↗
3,703 stars·764 forks·Python·Apache-2.0·12 views

Transformer Xl

This project is an implementation of the Transformer-XL language model, a neural network architecture designed for long-context language modeling. It provides frameworks for training and deploying models that capture long-term dependencies and relationships in text sequences that extend beyond a fixed context window.

The implementation supports both PyTorch and TensorFlow, allowing for distributed training across multiple GPUs and host nodes. It employs a recurrent mechanism to maintain coherence in extended sequences, utilizing segment-level recurrence and state-based memory reuse.

The codebase includes capabilities for large-scale text preprocessing and record serialization to optimize data loading. It also provides tools for performance benchmarking and language model evaluation using standard metrics and benchmark datasets.

Features

  • Segment-Level Recurrence - Implements segment-level recurrence to cache hidden states and maintain long-range dependencies across sequences.
  • Distributed Training Frameworks - Provides a framework for scaling machine learning model training across multiple compute nodes and accelerators.
  • Data-Parallel Training - Distributes model training workloads across multiple hardware units by synchronizing gradients and parameters.
  • State-Based Memory Reuses - Passes computed representations from prior data blocks into the current processing window to maintain long-term dependencies.
  • Long-Context Models - Engineers language models to maintain logical coherence across massive input sequences beyond fixed windows.
  • Large-Scale Model Training - Uses specialized methodologies to train models that exceed the memory capacity of a single device.
  • Recurrent Transformer Architectures - Implements a language model architecture that combines transformer attention with recurrent weight sharing.
  • Distributed Training - Scales the training of language models across multiple compute nodes to accelerate processing.
  • Large Language Model Training Frameworks - Implements a framework for training transformer-based models across multi-GPU environments to capture long-term dependencies.
  • PyTorch Training Frameworks - Provides high-level structures and utilities to organize and execute the training of the model using PyTorch.
  • TensorFlow Framework Implementations - Implements neural network operations and automatic differentiation using the TensorFlow library for distributed training.
  • Relative - Employs relative positional encodings to represent token distances and improve generalization to unseen sequence lengths.
  • Long-Term Dependency Modeling - Processes data sequences beyond fixed context windows to capture relationships between distant parts of a text.
  • Text Preprocessing - Provides utilities for parsing and formatting raw text into optimized structures for model training.
  • Large-Scale Data Preprocessing - Employs high-throughput utilities to clean and transform massive text datasets for efficient data loading.
  • Tensor Record Serialization - Utilizes specialized binary serialization formats to stream large tensor datasets from disk for high-throughput training.
  • Model Accuracy Evaluators - Measures model correctness and performance using benchmark datasets and standard metrics.
  • Language Modeling - Attentive language models for long-context sequences.
  • Natural Language Processing - Transformer-XL language model.
  • Transformer Implementations - Official repository for the Transformer-XL research paper.

Star history

Star history chart for kimiyoung/transformer-xlStar history chart for kimiyoung/transformer-xl

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Transformer Xl

These projects share indexed features with Transformer Xl. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • zihangdai/xlnetzihangdai avatar

    zihangdai/xlnet

    6,182View on GitHub↗

    This project is a natural language processing framework focused on a generalized autoregressive pretrainer designed for unsupervised language representation. It implements a language model that combines permutation-based training with a Transformer-XL backbone to function as a long-context text processor. The system is distinguished by its ability to handle text sequences that exceed standard length limits through the use of segment-level recurrence and relative positional encoding. It scales high-performance pretraining across multiple GPUs and TPU clusters using distributed training impleme

    Python
    View on GitHub↗6,182
  • yuanzhoulvpi2017/zero_nlpyuanzhoulvpi2017 avatar

    yuanzhoulvpi2017/zero_nlp

    3,825View on GitHub↗

    zero_nlp is a distributed framework for training and fine-tuning large language models and multimodal architectures. It provides a specialized toolkit for distributed model parallelism, allowing neural network layers and weights to be partitioned across multiple GPU devices to train models that exceed the memory capacity of a single processor. The project distinguishes itself through a combination of high-throughput data pipelines and parameter-efficient tuning. It utilizes multi-threading and memory mapping to preprocess and stream datasets exceeding 100GB and implements memory-saving adapta

    Jupyter Notebookbertchatglm-6bclip
    View on GitHub↗3,825
  • pytorch/fairseqpytorch avatar

    pytorch/fairseq

    32,228View on GitHub↗

    Fairseq is a deep learning research toolkit and sequence-to-sequence framework built on PyTorch. It provides a system for training and deploying models that map input sequences to output sequences, with a primary focus on neural machine translation and speech recognition. The toolkit allows for the generation of text sequences through search algorithms such as beam search and nucleus sampling. It includes capabilities for producing synthetic parallel training data by translating monolingual text using reverse sequence models. The framework supports large scale model training through multi-de

    Python
    View on GitHub↗32,228
  • facebookresearch/pythiafacebookresearch avatar

    facebookresearch/pythia

    5,635View on GitHub↗

    Pythia is a multimodal research framework and distributed training system designed for building, training, and evaluating large models that combine visual and linguistic data. It provides a modular environment for developing vision-language models, focusing on the integration of image and text inputs into shared feature representations. The framework utilizes a modular architecture that decouples model building blocks into interchangeable components, allowing for flexible configuration of vision and language modules. It includes a benchmark suite for executing reference models against standar

    Python
    View on GitHub↗5,635
Compare all 30 related projects→

Frequently asked questions

What does kimiyoung/transformer-xl do?

This project is an implementation of the Transformer-XL language model, a neural network architecture designed for long-context language modeling. It provides frameworks for training and deploying models that capture long-term dependencies and relationships in text sequences that extend beyond a fixed context window.

What are the main features of kimiyoung/transformer-xl?

The main features of kimiyoung/transformer-xl are: Segment-Level Recurrence, Distributed Training Frameworks, Data-Parallel Training, State-Based Memory Reuses, Long-Context Models, Large-Scale Model Training, Recurrent Transformer Architectures, Distributed Training.

Which projects share features with kimiyoung/transformer-xl?

Projects with overlapping indexed features include: zihangdai/xlnet — This project is a natural language processing framework focused on a generalized autoregressive pretrainer designed… yuanzhoulvpi2017/zero_nlp — zero_nlp is a distributed framework for training and fine-tuning large language models and multimodal architectures.… pytorch/fairseq — Fairseq is a deep learning research toolkit and sequence-to-sequence framework built on PyTorch. It provides a system… facebookresearch/pythia — Pythia is a multimodal research framework and distributed training system designed for building, training, and… internlm/xtuner — xtuner is a comprehensive training engine for large language models, offering a toolkit for pre-training, supervised… pytorch/ignite — Ignite is a high-level training framework for PyTorch neural networks that serves as a training engine and deep…