Transformer-XL (257M)
by Google DeepMind · Jan 9, 2019
Transformer-XL (257M) is an open-weight chat llm from Google DeepMind, released Jan 9, 2019. It has 257M parameters.
- Provider
- Google DeepMind
- Released
- Jan 9, 2019
- Type
- Chat LLM
- Parameters
- 257M
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 3.8e+20 FLOP
- Training data
- 103M tokens/words
About Transformer-XL (257M)
Transformers have a potential of learning longer-term dependency, but are limited by a fixed-length context in the setting of language modeling. We propose a novel neural architecture Transformer-XL that enables learning dependency beyond a fixed length without disrupting temporal coherence. It consists of a segment-level recurrence mechanism and a novel positional encoding scheme. Our method not only enables capturing longer-term dependency, but also resolves the context fragmentation problem.
How to run Transformer-XL (257M)
Transformer-XL (257M) 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 257M parameters it needs roughly 1 GB of memory at 4-bit quantization.
Transformer-XL (257M) vs alternatives
- Transformer-XL (257M) vs L_UL-seq
- Transformer-XL (257M) vs CamemBERT
- Transformer-XL (257M) vs GPT-2 (355M)
- Transformer-XL (257M) vs MT-DNN
- Transformer-XL (257M) vs Megatron-LM (355M)
- Transformer-XL (257M) vs GPT-2 (124M)
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| L_UL-seqopen | Meta | Aug 2019 | 247M | — | — | — | — |
| CamemBERTopen | Meta | Nov 2019 | 335M | — | — | — | — |
| GPT-2 (355M)open | OpenAI | Feb 2019 | 355M | — | — | — | — |
| MT-DNNopen | Microsoft | Jan 2019 | 330M | — | — | — | — |
| Megatron-LM (355M)open | NVIDIA | Sep 2019 | 355M | — | — | — | — |
| GPT-2 (124M)open | OpenAI | Feb 2019 | 124M | — | — | — | — |
| SciBERTopen | Allen Institute for AI (Ai2) | Mar 2019 | 110M | — | — | — | — |
| DensePhrasesopen | Korea University | Dec 2020 | — | — | — | — | — |
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 Transformer-XL (257M)?
Transformer-XL (257M) was developed by Google DeepMind (United States of America,United States of America). It was released on Jan 9, 2019.
Is Transformer-XL (257M) open source?
Yes. Transformer-XL (257M)'s weights are publicly available, so you can download and run it yourself.
How many parameters does Transformer-XL (257M) have?
Transformer-XL (257M) has 257M parameters.
Sources: epoch · paper. Last updated 2026-11-22.