almanach / camembertv2-base

huggingface.co
Total runs: 3.2K
24-hour runs: 39
7-day runs: -22
30-day runs: 117
Model's Last Updated: May 13 2026
fill-mask

Introduction of camembertv2-base

Model Details of camembertv2-base

CamemBERT(a)-v2: A Smarter French Language Model Aged to Perfection

CamemBERTv2 is a French language model pretrained on a large corpus of 275B tokens of French text. It is the second version of the CamemBERT model, which is based on the RoBERTa architecture. CamemBERTv2 is trained using the Masked Language Modeling (MLM) objective with 40% mask rate for 3 epochs 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 CamemBERT model. Note that the new tokenizer is different from the original CamemBERT tokenizer, so you will need to use Fast Tokenizers to use the model. It will work with CamemBERTTokenizerFast from transformers library even if the original CamemBERTTokenizer was sentencepiece-based.

Check the CamemBERTav2 model, a much stronger French language model, based on DeBERTaV3, here .

Model update details

The new update includes:

  • Much larger pretraining dataset: 275B unique tokens (previously ~32B)
  • A newly built tokenizer based on WordPiece with 32,768 tokens, addition of the newline and tab characters, support emojis, and better handling of numbers (numbers are split into two digits tokens)
  • Extended context window of 1024 tokens

More details are available in the CamemBERTv2 paper .

How to use
from transformers import AutoTokenizer, AutoModel, AutoModelForMaskedLM

camembertv2 = AutoModelForMaskedLM.from_pretrained("almanach/camembertv2-base")
tokenizer = AutoTokenizer.from_pretrained("almanach/camembertv2-base")
Fine-tuning Results:

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 81.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: CamemBERTv2 Finetuned Models

Pretraining Codebase

We use the pretraining codebase from the CamemBERTa repository for all v2 models.

Citation
@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},
}

Runs of almanach camembertv2-base on huggingface.co

3.2K
Total runs
39
24-hour runs
-296
3-day runs
-22
7-day runs
117
30-day runs

More Information About camembertv2-base huggingface.co Model

More camembertv2-base license Visit here:

https://choosealicense.com/licenses/mit

camembertv2-base huggingface.co

camembertv2-base huggingface.co is an AI model on huggingface.co that provides camembertv2-base's model effect (), which can be used instantly with this almanach camembertv2-base model. huggingface.co supports a free trial of the camembertv2-base model, and also provides paid use of the camembertv2-base. Support call camembertv2-base model through api, including Node.js, Python, http.

camembertv2-base huggingface.co Url

https://huggingface.co/almanach/camembertv2-base

almanach camembertv2-base online free

camembertv2-base huggingface.co is an online trial and call api platform, which integrates camembertv2-base's modeling effects, including api services, and provides a free online trial of camembertv2-base, you can try camembertv2-base online for free by clicking the link below.

almanach camembertv2-base online free url in huggingface.co:

https://huggingface.co/almanach/camembertv2-base

camembertv2-base install

camembertv2-base is an open source model from GitHub that offers a free installation service, and any user can find camembertv2-base on GitHub to install. At the same time, huggingface.co provides the effect of camembertv2-base install, users can directly use camembertv2-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

camembertv2-base install url in huggingface.co:

https://huggingface.co/almanach/camembertv2-base

Url of camembertv2-base

camembertv2-base huggingface.co Url

Provider of camembertv2-base huggingface.co

almanach
ORGANIZATIONS

Other API from almanach