Skip to content
llmmodels
Chat LLMOpen weightsHistorical

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.

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

Alternatives to XLNet
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
CamemBERTopenMetaNov 2019335M————
RoBERTa LargeopenMetaJul 2019355M————
GPT-2 (355M)openOpenAIFeb 2019355M————
MT-DNNopenMicrosoftJan 2019330M————
Megatron-LM (355M)openNVIDIASep 2019355M————
GPT-2 (774M)openOpenAIFeb 2019774M————
DensePhrasesopenKorea UniversityDec 2020—————
ERNIE-GEN (large)openBaiduAug 2020340M————

More models from Google DeepMind

All Google DeepMind models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Gemma 4 31B ITopenApr 202631B256KFreeFree
Gemma 4 26B A4B ITopenApr 202626B (4B act.)256KFreeFree
Gemini 4 ArgonOct 2026—1M$2$10
Gemini 4 CarbonNov 2026—1M$2$10
Gemini 3.8 FlashSep 2026—1M$0.75$3.75
Gemini 4 HydrogenNov 2026—1M$1.50$7.50
Gemini Pro LatestFeb 2026—1M$2$12
Gemini 3.7 FlashAug 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.