graykode/xlnet-Pytorch

Simple XLNet implementation with Pytorch Wrapper

49
/ 100
Emerging

Implements XLNet's permutation language modeling objective with Transformer-XL backbone, supporting configurable partial prediction masking, bidirectional data augmentation, and memory caching for long-context sequences. Uses SentencePiece/BERT tokenizers and exposes pretraining hyperparameters (sequence length, reuse length, permutation size, mask groups) as CLI arguments for reproducible experiments. Designed for PyTorch with minimal dependencies, enabling educational exploration of XLNet's two-stream self-attention and target-aware representations on custom datasets.

581 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 23 / 25

How are scores calculated?

Stars

581

Forks

104

Language

Jupyter Notebook

License

Apache-2.0

Last pushed

Jul 03, 2019

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/nlp/graykode/xlnet-Pytorch"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.