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
·
zihangdai avatar

zihangdai/xlnet

0
View on GitHub↗
6,182 stars·1,151 forks·Python·Apache-2.0·17 views

Xlnet

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 implementations.

The codebase covers the full machine learning workflow, including text cleansing and subword tokenization for data preprocessing, as well as task-specific fine-tuning for question answering, reading comprehension, and text classification. It includes utilities for parameter optimization, learning rate scheduling, and the evaluation of answer probabilities through precision-recall metrics.

The project provides configurations for managing model hyperparameters and hardware-accelerated training across multiple hosts.

Features

  • Permutation Language Models - Implements a generalized autoregressive pretrainer combining autoregressive modeling with permutation-based training.
  • Recurrent Transformer Architectures - Implements a Transformer-XL backbone that combines attention with segment-level recurrence for extended context processing.
  • Language Representations - Learns general semantic and syntactic patterns from unlabeled text for use in downstream tasks.
  • Long-Context Models - Designed to handle text sequences exceeding standard length limits through segment-level recurrence.
  • Long Context Processing - Processes and analyzes sequences of text that exceed standard length limits by managing long-range dependencies.
  • Distributed Training - Scales the training of large-scale language models by distributing workloads across multiple GPU and TPU hosts.
  • Language Model Pretraining - Trains a generalized autoregressive model on large text corpora using hardware accelerators.
  • Segment-Level Recurrence - Caches hidden states from previous segments to maintain long-range dependencies across sequences exceeding a fixed window.
  • Relative - Tracks the distance between tokens to better generalize to sequence lengths not encountered during training.
  • Transformer Language Models - Uses a Transformer-XL backbone to learn unsupervised language representations.
  • Unsupervised Pre-training - Implements a generalized autoregressive pretrainer for unsupervised language representation on large text corpora.
  • Permutation Language Modeling - Implements a generalized autoregressive pretraining objective using all possible permutations of the input sequence.
  • Distributed Training Optimizers - Accelerates model training by distributing workloads across multiple hardware hosts and cores.
  • Hyperparameter Configurations - Provides configurations for layer counts, attention heads, and hidden sizes to ensure consistency across training phases.
  • Warmup Schedules - Uses linear warmup schedules to gradually increase the learning rate and stabilize initial unsupervised learning.
  • GPU-Accelerated Training - Executes unsupervised pretraining of language representation models using GPU acceleration.
  • TPU Training Accelerators - Manages cluster resolvers and run configurations to enable hardware-accelerated training on TPU clusters.
  • Classification Fine-Tuning - Adapts pretrained models for single-document and document-pair classification and regression tasks.
  • Synchronous Gradient Averaging - Synchronizes model updates across multiple hardware accelerators by computing the mean of gradients across training replicas.
  • Natural Language Processing - Provides a framework for training and fine-tuning language representations for various NLP tasks.
  • Question Answering Fine-tuning - Fine-tunes models on reading comprehension datasets to extract precise answers from long-context passages.
  • Question Answering Systems - Fine-tunes a language model to extract precise answers from text passages and evaluate reading comprehension accuracy.
  • Subword Tokenization - Segments raw text into subword units while applying specialized rules for numerical punctuation.
  • Text Tokenizers - Transforms raw text into a sequence of integer identifiers by tokenizing input and mapping pieces to IDs.
  • Vocabulary Construction - Transforms raw text into numerical IDs using a vocabulary model for data processing.
  • Reading Comprehension - Implements training processes to map text positions for answering questions within provided passages.
  • Language Modeling - Generalized autoregressive pre-training for language understanding.
  • Natural Language Processing - Autoregressive pretraining for language understanding.
  • Transformer Implementations - Official code repository for the XLNet research paper.

Star history

Star history chart for zihangdai/xlnetStar history chart for zihangdai/xlnet

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

Frequently asked questions

What does zihangdai/xlnet do?

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.

What are the main features of zihangdai/xlnet?

The main features of zihangdai/xlnet are: Permutation Language Models, Recurrent Transformer Architectures, Language Representations, Long-Context Models, Long Context Processing, Distributed Training, Language Model Pretraining, Segment-Level Recurrence.

What are some open-source alternatives to zihangdai/xlnet?

Open-source alternatives to zihangdai/xlnet include: kimiyoung/transformer-xl — This project is an implementation of the Transformer-XL language model, a neural network architecture designed for… google-research/bert — This project is a transformer-based language model and natural language processing toolkit designed to generate deep… tingsongyu/pytorch_tutorial — This project is a comprehensive collection of educational examples and reference implementations for building vision… google/sentencepiece — SentencePiece is a text segmentation engine and tokenization library designed for machine learning workflows. It… bojone/bert4keras — bert4keras is a lightweight reimplementation of the BERT transformer architecture for the Keras deep learning… google-research/text-to-text-transfer-transformer — This is a machine learning framework for treating diverse natural language processing tasks as a unified text-to-text…

Open-source alternatives to Xlnet

Similar open-source projects, ranked by how many features they share with Xlnet.
  • kimiyoung/transformer-xlkimiyoung avatar

    kimiyoung/transformer-xl

    3,703View on GitHub↗

    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 code

    Python
    View on GitHub↗3,703
  • google-research/bertgoogle-research avatar

    google-research/bert

    39,869View on GitHub↗

    This project is a transformer-based language model and natural language processing toolkit designed to generate deep contextual representations of text. By utilizing a transformer-based encoder architecture, the system processes input sequences through stacked self-attention layers to capture the semantic meaning of tokens based on their surrounding sentence structure. The model distinguishes itself through bidirectional contextual processing, which analyzes text in both directions simultaneously, and masked language modeling, which trains the system by predicting hidden tokens within a seque

    Pythongooglenatural-language-processingnatural-language-understanding
    View on GitHub↗39,869
  • tingsongyu/pytorch_tutorialTingsongYu avatar

    TingsongYu/PyTorch_Tutorial

    8,018View on GitHub↗

    This project is a comprehensive collection of educational examples and reference implementations for building vision and language models using PyTorch. It serves as a deep learning tutorial covering the end-to-end process of developing neural networks, from initial architecture definition to final production deployment. The repository provides detailed guides on implementing a wide range of domain-specific models, including convolutional neural networks for object detection and segmentation, as well as transformer and recurrent architectures for natural language processing. It emphasizes gene

    Python
    View on GitHub↗8,018
  • google/sentencepiecegoogle avatar

    google/sentencepiece

    11,657View on GitHub↗

    SentencePiece is a text segmentation engine and tokenization library designed for machine learning workflows. It provides a comprehensive toolkit for transforming raw text into subword units or numerical identifiers, enabling consistent data representation for neural network training and inference. The library supports the training of segmentation models from raw text, allowing for the creation of custom vocabularies tailored to specific domain requirements. The project distinguishes itself through its byte-level encoding and fallback mechanisms, which ensure that every input can be represent

    C++natural-language-processingneural-machine-translationword-segmentation
    View on GitHub↗11,657
  • See all 30 alternatives to Xlnet→