All models

xlm

A transformer language model with a masked language modeling head, in the XLM design.

Language · 516 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 (6 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
xlm
Parameters
667.1M
Operations
516
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
m11308
Graph hash
d28a9c7f74d9d29a1a094c0e77a3e58068eb70ceb01088b20c5f80c88f9b8101
Skeleton hash
7640eed956d24b565c2b6a4b252317ff12d790bc78ee5c8f27e112e8681e35b6
Architecture hash
e906786689f0e9f393bdbef43af2588c7a2c3b086b1d43356faa014a40af0561
Diagram SHA-256
85c428e54cc17cbb56d3f2183c05a04f759b8c164c802f173f7fe69be2ad7503
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 XLM itself, which supports causal language modeling, masked language modeling and translation language modeling.

About this model's family

XLM is a language model for cross-lingual pretraining. It demonstrates two approaches: unsupervised training on a single language, and supervised training on more than one language with a cross-lingual language model objective. The model supports three objectives: causal language modeling, masked language modeling, and translation language modeling, which extends the masked language modeling objective of BERT to multiple language inputs.

FlauBERT is a French language model whose implementation is based on XLM. It is a transformer model pretrained with a masked language modeling (MLM) objective, like BERT, and was learned on a very large and heterogeneous French corpus. Its paper reports applying the French models to text classification, paraphrasing, natural language inference, parsing and word sense disambiguation, and shares an evaluation protocol for these downstream tasks called FLUE (French Language Understanding Evaluation).

Key idea. XLM demonstrates cross-lingual pretraining with unsupervised training on a single language and supervised training on more than one language with a cross-lingual language model objective.

  • xlm
  • cross-lingual language model
  • cross-lingual pretraining
  • flaubert
  • french language model
  • masked language modeling
  • translation language modeling
  • flue

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