All models

ernie

A language model from baidu's ERNIE series.

Language · 304 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 (27 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
109.5M
Operations
304
Framework
PyTorch
Recurrent
No
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
m4694
Graph hash
7c96fd2765462f9faa9be3e68f1d684df2cae4ebac30943d78a533bbf544b1a8
Skeleton hash
85901edcef90052b0a94b948fdecf69036ee4b26b8c9ed9620d8a00af593e34c
Architecture hash
ee161f10af0ff0b992401deae36b2381f9c0d557e2eec69472da648baaaca09c
Diagram SHA-256
304110b4aafe550203b17ffd8d809bdfddf7a5561446e5c344bcfe551098683e
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.AutoModelForMaskedLM.from_config()

What it is

This model is ERNIE with a masked language modeling head, which predicts the token at a [MASK] position.

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.