Instructions to use almanach/camembertv2-base-ckpts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use almanach/camembertv2-base-ckpts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="almanach/camembertv2-base-ckpts")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("almanach/camembertv2-base-ckpts", dtype="auto") - Notebooks
- Google Colab
- Kaggle
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.
Model Checkpoints
This repository contains all intermediate model checkpoints with corresponding checkpoints in TF and PT structured as follows:
โโโ checkpoints/
โ โโโ iter_ckpt_rank_XX/ # Contains all iterator checkpoints from a specific rank
โ โโโ summaries/ # Tensorboard logs
โ โโโ ckpt-YYYYY.data-00000-of-00001
โ โโโ ckpt-YYYYY.index
โโโ post/
โ โโโ ckpt-YYYYY/
โ โ โโโ pt/
โ โ โ โโโ config.json
โ โ โ โโโ pytorch_model.bin
โ โ โ โโโ special_tokens_map.json
โ โ โ โโโ tokenizer.json
โ โ โ โโโ tokenizer_config.json
โ โ โโโ tf/
โ โ โ โโโ ...
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},
}