ERNIE-GEN (large)
by Baidu · Aug 6, 2020
ERNIE-GEN (large) is an open-weight chat llm from Baidu, released Aug 6, 2020. It has 340M parameters.
- Provider
- Baidu
- Released
- Aug 6, 2020
- Type
- Chat LLM
- Parameters
- 340M
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (non-commercial)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 2.0e+20 FLOP
- Training data
- 114.7B tokens/words
About ERNIE-GEN (large)
Current pre-training works in natural language generation pay little attention to the problem of exposure bias on downstream tasks. To address this issue, we propose an enhanced multi-flow sequence to sequence pre-training and fine-tuning framework named ERNIE-GEN, which bridges the discrepancy between training and inference with an infilling generation mechanism and a noise-aware generation method.
How to run ERNIE-GEN (large)
ERNIE-GEN (large) 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.
ERNIE-GEN (large) vs alternatives
- ERNIE-GEN (large) vs ELECTRA
- ERNIE-GEN (large) vs DensePhrases
- ERNIE-GEN (large) vs Hopfield Networks (2020)
- ERNIE-GEN (large) vs GBERT-Large
- ERNIE-GEN (large) vs German ELECTRA Large
- ERNIE-GEN (large) vs AraBERT LArge v2
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| ELECTRAopen | Google DeepMind | Mar 2020 | 335M | — | — | — | — |
| DensePhrasesopen | Korea University | Dec 2020 | — | — | — | — | — |
| Hopfield Networks (2020)open | Johannes Kepler University Linz | Jul 2020 | — | — | — | — | — |
| GBERT-Largeopen | deepset | Oct 2020 | 335M | — | — | — | — |
| German ELECTRA Largeopen | deepset | Oct 2020 | 335M | — | — | — | — |
| AraBERT LArge v2open | American University of Beirut | Mar 2020 | 371M | — | — | — | — |
| ALBERT-xxlargeopen | Google DeepMind | Feb 2020 | 235M | — | — | — | — |
| Segatron XL large, M=384open | University of Waterloo | Apr 2020 | 257M | — | — | — | — |
More models from Baidu
All Baidu models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Unlimited-OCRopen | Jun 2026 | 3.3B | — | — | — |
| Unlimited-OCR-2open | Oct 2026 | 3.3B | — | — | — |
| ERNIE-4.5-21B-A3B-Thinkingopen | Sep 2025 | 22B (3B act.) | — | — | — |
| Qianfan-OCRopen | Mar 2026 | 4.7B | — | — | — |
| ERNIE-5.5-Flash-Baseopen | Oct 2026 | 286B | — | — | — |
| ERNIE-4.5-21B-A3B-PTopen | Jun 2025 | 22B (3B act.) | — | — | — |
| ERNIE-5.5-Flash-Base-BF16open | Oct 2026 | 286B | — | — | — |
| ERNIE 4.5 300B A47Bopen | Jun 2025 | 300B (47B act.) | 123K | $0.28 | $1.10 |
Frequently asked questions
Who made ERNIE-GEN (large)?
ERNIE-GEN (large) was developed by Baidu (China). It was released on Aug 6, 2020.
Is ERNIE-GEN (large) open source?
Yes. ERNIE-GEN (large)'s weights are publicly available, so you can download and run it yourself.
How many parameters does ERNIE-GEN (large) have?
ERNIE-GEN (large) has 340M parameters.
Sources: epoch · paper. Last updated 2026-11-22.