Skip to content
llmmodels
Chat LLMOpen weightsHistorical

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

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

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-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.