
xlm
Language516 ops667.1M params
A transformer language model with a masked language modeling head, in the XLM design.
Language · 516 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForMaskedLM.from_config()
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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.