All models

data2vec-text

A text encoder pretrained with data2vec's self-supervised prediction of contextualized latent targets.

Language · 310 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 (26 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

Parameters
109.5M
Operations
310
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
m4091
Graph hash
bab6ac584150104627b4290eda28fa83ce33274567c80ee3eb27ed265e3e4e7f
Skeleton hash
f1b6d14bb98056d5d791a90775514bf8edc57d5a8800b2e6a992bd8e0a22a90d
Architecture hash
4319ec5cf4f313b2d775b797f1126d2f0b6fc80f53578e615d058f70f148bd13
Diagram SHA-256
0435f9b332920bbf3a8161b7ee7cf0be00744d5c6eb567ee75fb37523b40953a
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.AutoModel.from_config()

What it is

Data2VecText is the text model of data2vec, a framework that uses the same self-supervised learning method for speech, natural language processing and computer vision. The core idea is to predict latent representations of the full input from a masked view of that input, in a self-distillation setup with a standard Transformer architecture. The prediction targets are contextualized representations that contain information from the entire input, where other methods predict local, modality-specific targets such as words.

For the text model, preprocessing is identical to that of RobertaModel, including tokenization. The paper reports experiments on benchmarks of speech recognition, image classification and natural language understanding. The original code for the language and speech models is in the fairseq repository.

Key idea. Data2Vec predicts contextualized latent representations of the full input from a masked view, using one self-distillation method for speech, vision and language.

  • data2vec
  • Data2VecText
  • data2vec-text
  • Data2Vec text
  • self-supervised learning
  • self-distillation
  • contextualized latent representations
  • text encoder

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