Skip to content
llmmodels
Chat LLMOpen weightsHistorical

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

Alternatives to ERNIE-GEN (large)
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
ELECTRAopenGoogle DeepMindMar 2020335M————
DensePhrasesopenKorea UniversityDec 2020—————
Hopfield Networks (2020)openJohannes Kepler University LinzJul 2020—————
GBERT-LargeopendeepsetOct 2020335M————
German ELECTRA LargeopendeepsetOct 2020335M————
AraBERT LArge v2openAmerican University of BeirutMar 2020371M————
ALBERT-xxlargeopenGoogle DeepMindFeb 2020235M————
Segatron XL large, M=384openUniversity of WaterlooApr 2020257M————

More models from Baidu

All Baidu models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Unlimited-OCRopenJun 20263.3B———
Unlimited-OCR-2openOct 20263.3B———
ERNIE-4.5-21B-A3B-ThinkingopenSep 202522B (3B act.)———
Qianfan-OCRopenMar 20264.7B———
ERNIE-5.5-Flash-BaseopenOct 2026286B———
ERNIE-4.5-21B-A3B-PTopenJun 202522B (3B act.)———
ERNIE-5.5-Flash-Base-BF16openOct 2026286B———
ERNIE 4.5 300B A47BopenJun 2025300B (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.