All models

flaubert

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 (5 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
m5034
Graph hash
123d941bb4ac9f61b570c63011c68b80243c40cf8e8b5101a783127ac9492794
Skeleton hash
291e2ee7ec8aa9835bb5daf2a88151225a2fa18ee0305cfb4d7a534f8c16eecb
Architecture hash
1640dd8a72a46db7ecdd89329375afa4c3daf23e8663756fdad8416fa01bbaa5
Diagram SHA-256
65d8dc13b2865bd7c0dc2f17945dc0cf0ad2fe83c96f31150f843a4adb1f3402
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

FlauBERT is a transformer model for French whose implementation is based on XLM. It is pretrained like RoBERTa without the sentence ordering prediction, so on the MLM objective alone.

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.