#975 · Primary category: Education & Research

xlnet-Pytorch

bert natural-language-processing nlp pytorch xlnet xlnet-pytorch

Simple XLNet implementation with Pytorch Wrapper

Project last updated:07/03/19

GitHub Stars

581

Forks

104

Contributors

1

License

Apache-2.0

Why we included this project

This PyTorch reimplementation of XLNet is built to make the architecture legible, not to serve as a production model. If you are working through the paper, the code walks you through permutation language modeling, Transformer-XL memory, and two-stream self-attention with a small pre-training example that runs on a single machine or in a Colab notebook. The command-line flags mirror the paper's hyperparameters, so you can adjust sequence length, reuse length, and masking groups and watch how each choice changes training. It is not a drop-in replacement for the official XLNet release or a fine-tuning toolkit, so treat it as a study aid and a reference for the core algorithm. For researchers and students who find the original implementation dense, this is a gentler place to start.

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