All models

KoBigBird

Sparse-attention transformer for 4096-token inputs, traced here as a randomly initialised causal language model.

Language · 448 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 (23 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
BigBird
Parameters
128.1M
Operations
448
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
m12702
Graph hash
7324d74c67d3addeaf736c53e62900780e99da06684c62556383f61e7b096a7b
Skeleton hash
a73f88bedd0d746334bb60f476b63a38530d772bcc55d0de1d0c77f3b01b3170
Architecture hash
1e003674fccf813cf2f7caa82fefddb1e4fc0c26b58257ae3eb85888a30b9864
Diagram SHA-256
d872f3997b159551835d1dd7cb937f6f2b96fc2fceac0bebc97b5ac023ea704f
TorchLens version
2.36.0
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

About this model's family

BigBird is a transformer built to read long documents: it handles sequence lengths up to 4096 tokens where BERT stops at 512. Ordinary attention gets expensive as inputs grow, so BigBird uses a sparse attention mechanism instead of looking at everything at once. That pattern mixes local attention, random attention and a few global tokens, which keeps the computation efficient while still covering enough of the sequence to understand it. The library documentation points it at long-document tasks such as question answering, summarization and genomic applications.

The implementation supports two attention modes, original_full and block_sparse, and the documentation recommends original_full for inputs shorter than 1024 tokens, where sparse patterns offer little benefit. The block-sparse path uses a window of 3 blocks and 2 global blocks and supports only the ITC implementation. The sequence length must be divisible by the block size, and inputs are padded on the right because BigBird uses absolute position embeddings.

Key idea. Sparse attention that mixes local attention, random attention and a few global tokens, so the transformer reads the whole input without attending to everything at once.

  • BigBird
  • Big Bird
  • KoBigBird
  • sparse attention
  • block sparse attention
  • long document transformer
  • BigBirdForCausalLM
  • google/bigbird-roberta-base

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