All models

mmBERT-small (jhu-clsp)

mmBERT is a masked language model built on the ModernBERT encoder architecture.

Language · 77 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 (10 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
mmbert
Parameters
275.3K
Operations
77
Framework
PyTorch
Recurrent
No
Published
2025
Source
transformers 5.18.0
Name in source
jhu-clsp:mmBERT-small
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
m5490
Graph hash
5c02f02b5f0d1b83aded62867dd08ac2ddf97f773aa5ba5ab29718abb9ae3085
Skeleton hash
937836551b263863183ea2a2fe22b813616ed7c4cb036aed3204b5762ee0f9b2
Architecture hash
fdb4cb22736a8edcdd170b2020c47e50557810fb51882d8d183da98fca8e98f5
Diagram SHA-256
e53ec55ab093a7b90a2f04ca35c5d1fab5a6d4825005f6127b4e80a88f3fb1e0
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

menagerie.classics.wave_d_reimpl:build_hf_text: build({})

What it is

About this model's family

mmBERT uses the ModernBERT architecture, which is a modernized version of BERT. ModernBERT's changes to the original architecture include rotary positional embeddings to support sequences of up to 8192 tokens, unpadding to avoid spending compute on padding tokens, GeGLU layers, and alternating attention.

As a masked language model, it predicts the token hidden behind a [MASK] placeholder. The ModernBERT architecture also supports padding-free inference and training. It can be fine-tuned for question-answering tasks with the HuggingFace Transformers library.

Key idea. The ModernBERT architecture used by mmBERT updates BERT with rotary positional embeddings, unpadding, GeGLU layers and alternating attention.

  • mmBERT
  • mmBERT-base
  • mmBERT-small
  • jhu-clsp mmBERT
  • masked language model
  • fill-mask
  • text encoder
  • multilingual encoder
  • encoder-only transformer

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