All models

ernie4_5

A language model from baidu's ERNIE series.

Language · 1,289 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (42 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
ernie
Parameters
360.7M
Operations
1,289
Framework
PyTorch
Recurrent
No
Published
2025
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m4696
Graph hash
260c7e3356464804c28f4c10688092edfb1c67ecb744cc0ed61a66b97436c6e9
Skeleton hash
f5924f93e26021d4e6a5efe46d394c9307edb14607ae12726fe613e2da370729
Architecture hash
5d269f6517f01fd7a52559257afc5189c8bad7f99ff94f3bd6cb4ab42f9b0676
Diagram SHA-256
75a3336f37ad8d98bba31bf2f27f34587d36effa0d2f04f415c298b4e8d1234a
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForCausalLM.from_config()

What it is

This model is Ernie 4.5, the base text model without mixture of experts, which uses the standard Llama at its core.

About this model's family

ERNIE1.0, ERNIE2.0, ERNIE3.0, ERNIE-Gram and ERNIE-health are a series of language models proposed by baidu, aimed especially at Chinese tasks. The name stands for Enhanced Representation through kNowledge IntEgration: the models learn language representations with knowledge masking strategies, which include entity-level masking and phrase-level masking. Variants are available in different sizes and languages.

Ernie 4.5 is another release by baidu, a group of models with multiple different architectures and model sizes. The Ernie 4.5 model in this library is the base text model without mixture of experts, which the library describes as having 0.3B parameters in total, and it uses the standard Llama at its core.

Key idea. ERNIE learns language representations enhanced by knowledge masking strategies, which include entity-level masking and phrase-level masking.

  • ernie
  • enhanced representation through knowledge integration
  • ernie 4.5
  • ernie4_5
  • knowledge masking
  • entity-level masking
  • phrase-level masking
  • baidu ernie
  • chinese language model
  • masked language model

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.