ERNIE-Doc (247M)
by Baidu · Dec 31, 2020
ERNIE-Doc (247M) is an open-weight chat llm from Baidu, released Dec 31, 2020. It has 247M parameters.
- Provider
- Baidu
- Released
- Dec 31, 2020
- Type
- Chat LLM
- Parameters
- 247M
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 3.0e+19 FLOP
- Training data
- 103M tokens/words
About ERNIE-Doc (247M)
Transformers are not suited for processing long documents, due to their quadratically increasing memory and time consumption. Simply truncating a long document or applying the sparse attention mechanism will incur the context fragmentation problem or lead to an inferior modeling capability against comparable model sizes. In this paper, we propose ERNIE-Doc, a document-level language pretraining model based on Recurrence Transformers.
How to run ERNIE-Doc (247M)
ERNIE-Doc (247M) 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 247M parameters it needs roughly 1 GB of memory at 4-bit quantization.
ERNIE-Doc (247M) vs alternatives
- ERNIE-Doc (247M) vs ALBERT-xxlarge
- ERNIE-Doc (247M) vs DensePhrases
- ERNIE-Doc (247M) vs Hopfield Networks (2020)
- ERNIE-Doc (247M) vs Segatron XL large, M=384
- ERNIE-Doc (247M) vs Segatron XL base, M=384
- ERNIE-Doc (247M) vs ELECTRA
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| ALBERT-xxlargeopen | Google DeepMind | Feb 2020 | 235M | — | — | — | — |
| DensePhrasesopen | Korea University | Dec 2020 | — | — | — | — | — |
| Hopfield Networks (2020)open | Johannes Kepler University Linz | Jul 2020 | — | — | — | — | — |
| Segatron XL large, M=384open | University of Waterloo | Apr 2020 | 257M | — | — | — | — |
| Segatron XL base, M=384open | University of Waterloo | Apr 2020 | 257M | — | — | — | — |
| ELECTRAopen | Google DeepMind | Mar 2020 | 335M | — | — | — | — |
| GBERT-Largeopen | deepset | Oct 2020 | 335M | — | — | — | — |
| German ELECTRA Largeopen | deepset | Oct 2020 | 335M | — | — | — | — |
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-Doc (247M)?
ERNIE-Doc (247M) was developed by Baidu (China). It was released on Dec 31, 2020.
Is ERNIE-Doc (247M) open source?
Yes. ERNIE-Doc (247M)'s weights are publicly available, so you can download and run it yourself.
How many parameters does ERNIE-Doc (247M) have?
ERNIE-Doc (247M) has 247M parameters.
Sources: epoch · paper. Last updated 2026-11-22.