Model reference · open weights
camembertav2 is an open-weight embedding model from almanach. camembertav2-base (FP32) weighs 221 MB; the smallest configuration that runs it is RTX 3060 12 GB.
CamemBERTav2 is a French feature-extraction model developed by almanach, based on the DebertaV2 architecture. It contains 111M parameters and supports a context length of 1024 tokens. The model is released under the MIT licence.
Summary of the almanach/camembertav2-base model card, 2026-10-01
What it is
| Released by | almanach |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 111M |
| Context | 1,024 tokens |
| Runs with | transformers |
| Released | 2024-11-14 |
| Popularity | 3k downloads / month |
| Weights | 221 MB (camembertav2-base (FP32), file size) |
| Licence | Open weights |
What it runs on
Weights 221 MB (file size) · overhead about 1.1 GB.
| Card | Runs | Counted memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
Estimates, not measurements: the weights are the build's file size. No cache grows with use; a batch of inputs needs working memory of its own. Counted memory is 92 % of what CUDA reports for the card.
From the model card
CamemBERTav2 is a French language model pretrained on a large corpus of 275B tokens of French text. It is the second version of the CamemBERTa model, which is based on the DebertaV2 architecture. CamemBERTav2 is trained using the Replaced Token Detection (RTD) objective with 20% mask rate on 275B tokens on 32 H100 GPUs. The dataset used for training is a combination of French OSCAR dumps from the CulturaX Project, French scientific documents from HALvest, and the French Wikipedia.
The model is a drop-in replacement for the original CamemBERTa model. Note that the new tokenizer is different from the original CamemBERTa tokenizer, so you will need to use Fast Tokenizers to use the model. It will work with DebertaV2TokenizerFast from transformers library even if the original DebertaV2TokenizerFast was sentencepiece-based.
The new update includes:
More details are available in the CamemBERTv2 paper.
from transformers import AutoTokenizer, AutoModel, AutoModelForMaskedLM
camembertav2 = AutoModel.from_pretrained("almanach/camembertav2-base")
tokenizer = AutoTokenizer.from_pretrained("almanach/camembertav2-base")
Datasets: POS tagging and Dependency Parsing (GSD, Rhapsodie, Sequoia, FSMB), NER (FTB), the FLUE benchmark (XNLI, CLS, PAWS-X), the French Question Answering Dataset (FQuAD), Social Media NER (Counter-NER), and Medical NER (CAS1, CAS2, E3C, EMEA, MEDLINE).
| Model | UPOS | LAS | FTB-NER | CLS | PAWS-X | XNLI | F1 (FQuAD) | EM (FQuAD) | Counter-NER | Medical-NER |
|---|---|---|---|---|---|---|---|---|---|---|
| CamemBERT | 97.59 | 88.69 | 89.97 | 94.62 | 91.36 | 81.95 | 80.98 | 62.51 | 84.18 | 70.96 |
| CamemBERTa | 97.57 | 88.55 | 90.33 | 94.92 | 91.67 | 82.00 | 81.15 | 62.01 | 87.37 | 71.86 |
| CamemBERT-bio | - | - | - | - | - | - | - | - | - | 73.96 |
| CamemBERTv2 | 97.66 | 88.64 | 91.99 | 95.07 | 92.00 | 81.75 | 80.98 | 61.35 | 87.46 | 72.77 |
| CamemBERTav2 | 97.71 | 88.65 | 93.40 | 95.63 | 93.06 | 84.82 | 83.04 | 64.29 | 89.53 | 73.98 |
Finetuned models are available in the following collection: CamemBERTav2 Finetuned Models
We use the pretraining codebase from the CamemBERTa repository for all v2 models.
@misc{antoun2024camembert20smarterfrench,
title={CamemBERT 2.0: A Smarter French Language Model Aged to Perfection},
author={Wissam Antoun and Francis Kulumba and Rian Touchent and Éric de la Clergerie and Benoît Sagot and Djamé Seddah},
year={2024},
eprint={2411.08868},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2411.08868},
}
Quoted from the model card on Hugging Face — the full card is behind the Hugging Face link above.