XLNet
by Google DeepMind · Jun 1, 2019
XLNet is an open-weight chat llm from Google DeepMind, released Jun 1, 2019. It has 340M parameters.
- Provider
- Google DeepMind
- Released
- Jun 1, 2019
- Type
- Chat LLM
- Parameters
- 340M
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 6.2e+21 FLOP
- Training data
- 32.9B tokens/words
About XLNet
With the capability of modeling bidirectional contexts, denoising autoencoding based pretraining like BERT achieves better performance than pretraining approaches based on autoregressive language modeling. However, relying on corrupting the input with masks, BERT neglects dependency between the masked positions and suffers from a pretrain-finetune discrepancy.
How to run XLNet
XLNet is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 340M parameters it needs roughly 1 GB of memory at 4-bit quantization.
XLNet vs alternatives
- XLNet vs CamemBERT
- XLNet vs RoBERTa Large
- XLNet vs GPT-2 (355M)
- XLNet vs MT-DNN
- XLNet vs Megatron-LM (355M)
- XLNet vs GPT-2 (774M)
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| CamemBERTopen | Meta | Nov 2019 | 335M | — | — | — | — |
| RoBERTa Largeopen | Meta | Jul 2019 | 355M | — | — | — | — |
| GPT-2 (355M)open | OpenAI | Feb 2019 | 355M | — | — | — | — |
| MT-DNNopen | Microsoft | Jan 2019 | 330M | — | — | — | — |
| Megatron-LM (355M)open | NVIDIA | Sep 2019 | 355M | — | — | — | — |
| GPT-2 (774M)open | OpenAI | Feb 2019 | 774M | — | — | — | — |
| DensePhrasesopen | Korea University | Dec 2020 | — | — | — | — | — |
| ERNIE-GEN (large)open | Baidu | Aug 2020 | 340M | — | — | — | — |
More models from Google DeepMind
All Google DeepMind models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Gemma 4 31B ITopen | Apr 2026 | 31B | 256K | Free | Free |
| Gemma 4 26B A4B ITopen | Apr 2026 | 26B (4B act.) | 256K | Free | Free |
| Gemini 4 Argon | Oct 2026 | — | 1M | $2 | $10 |
| Gemini 4 Carbon | Nov 2026 | — | 1M | $2 | $10 |
| Gemini 3.8 Flash | Sep 2026 | — | 1M | $0.75 | $3.75 |
| Gemini 4 Hydrogen | Nov 2026 | — | 1M | $1.50 | $7.50 |
| Gemini Pro Latest | Feb 2026 | — | 1M | $2 | $12 |
| Gemini 3.7 Flash | Aug 2026 | — | 1M | $0.75 | $3.75 |
Frequently asked questions
Who made XLNet?
XLNet was developed by Google DeepMind (United States of America,United States of America). It was released on Jun 1, 2019.
Is XLNet open source?
Yes. XLNet's weights are publicly available, so you can download and run it yourself.
How many parameters does XLNet have?
XLNet has 340M parameters.
Sources: epoch · paper. Last updated 2026-11-22.