almanach_camembert-base
almanach · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
language: fr license: mit datasets:
- oscar
CamemBERT: a Tasty French Language Model
Introduction
CamemBERT is a state-of-the-art language model for French based on the RoBERTa model.
It is now available on Hugging Face in 6 different versions with varying number of parameters, amount of pretraining data and pretraining data source domains.
Pre-trained models
| Model | #params | Arch. | Training data |
|---|---|---|---|
camembert-base |
110M | Base | OSCAR (138 GB of text) |
camembert/camembert-large |
335M | Large | CCNet (135 GB of text) |
camembert/camembert-base-ccnet |
110M | Base | CCNet (135 GB of text) |
camembert/camembert-base-wikipedia-4gb |
110M | Base | Wikipedia (4 GB of text) |
camembert/camembert-base-oscar-4gb |
110M | Base | Subsample of OSCAR (4 GB of text) |
camembert/camembert-base-ccnet-4gb |
110M | Base | Subsample of CCNet (4 GB of text) |
How to use CamemBERT with HuggingFace
Load CamemBERT and its sub-word tokenizer :
from transformers import CamembertModel, CamembertTokenizer
# You can replace "camembert-base" with any other model from the table, e.g. "camembert/camembert-large".
tokenizer = CamembertTokenizer.from_pretrained("camembert/camembert-base-wikipedia-4gb")
camembert = CamembertModel.from_pretrained("camembert/camembert-base-wikipedia-4gb")
camembert.eval() # disable dropout (or leave in train mode to finetune)
Filling masks using pipeline
from transformers import pipeline
camembert_fill_mask = pipeline("fill-mask", model="camembert/camembert-base-wikipedia-4gb", tokenizer="camembert/camembert-base-wikipedia-4gb")
results = camembert_fill_mask("Le camembert est un fromage de <mask>!")
# results
#[{'sequence': '<s> Le camembert est un fromage de chèvre!</s>', 'score': 0.4937814474105835, 'token': 19370},
#{'sequence': '<s> Le camembert est un fromage de brebis!</s>', 'score': 0.06255942583084106, 'token': 30616},
#{'sequence': '<s> Le camembert est un fromage de montagne!</s>', 'score': 0.04340197145938873, 'token': 2364},
# {'sequence': '<s> Le camembert est un fromage de Noël!</s>', 'score': 0.02823255956172943, 'token': 3236},
#{'sequence': '<s> Le camembert est un fromage de vache!</s>', 'score': 0.021357402205467224, 'token': 12329}]
Extract contextual embedding features from Camembert output
import torch
# Tokenize in sub-words with SentencePiece
tokenized_sentence = tokenizer.tokenize("J'aime le camembert !")
# ['▁J', "'", 'aime', '▁le', '▁ca', 'member', 't', '▁!']
# 1-hot encode and add special starting and end tokens
encoded_sentence = tokenizer.encode(tokenized_sentence)
# [5, 221, 10, 10600, 14, 8952, 10540, 75, 1114, 6]
# NB: Can be done in one step : tokenize.encode("J'aime le camembert !")
# Feed tokens to Camembert as a torch tensor (batch dim 1)
encoded_sentence = torch.tensor(encoded_sentence).unsqueeze(0)
embeddings, _ = camembert(encoded_sentence)
# embeddings.detach()
# embeddings.size torch.Size([1, 10, 768])
#tensor([[[-0.0928, 0.0506, -0.0094, ..., -0.2388, 0.1177, -0.1302],
# [ 0.0662, 0.1030, -0.2355, ..., -0.4224, -0.0574, -0.2802],
# [-0.0729, 0.0547, 0.0192, ..., -0.1743, 0.0998, -0.2677],
# ...,
Extract contextual embedding features from all Camembert layers
from transformers import CamembertConfig
# (Need to reload the model with new config)
config = CamembertConfig.from_pretrained("camembert/camembert-base-wikipedia-4gb", output_hidden_states=True)
camembert = CamembertModel.from_pretrained("camembert/camembert-base-wikipedia-4gb", config=config)
embeddings, _, all_layer_embeddings = camembert(encoded_sentence)
# all_layer_embeddings list of len(all_layer_embeddings) == 13 (input embedding layer + 12 self attention layers)
all_layer_embeddings[5]
# layer 5 contextual embedding : size torch.Size([1, 10, 768])
#tensor([[[-0.0059, -0.0227, 0.0065, ..., -0.0770, 0.0369, 0.0095],
# [ 0.2838, -0.1531, -0.3642, ..., -0.0027, -0.8502, -0.7914],
# [-0.0073, -0.0338, -0.0011, ..., 0.0533, -0.0250, -0.0061],
# ...,
Authors
CamemBERT was trained and evaluated by Louis Martin*, Benjamin Muller*, Pedro Javier Ortiz Suárez*, Yoann Dupont, Laurent Romary, Éric Villemonte de la Clergerie, Djamé Seddah and Benoît Sagot.
Citation
If you use our work, please cite:
@inproceedings{martin2020camembert,
title={CamemBERT: a Tasty French Language Model},
author={Martin, Louis and Muller, Benjamin and Su{\'a}rez, Pedro Javier Ortiz and Dupont, Yoann and Romary, Laurent and de la Clergerie, {\'E}ric Villemonte and Seddah, Djam{\'e} and Sagot, Beno{\^\i}t},
booktitle={Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
year={2020}
}
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:75bdec79a57be53c735140184e5e724418feaf70&dn=almanach_camembert-baseOpen magnet in torrent client · infohash 75bdec79a57be53c735140184e5e724418feaf70
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 5.0 KB (5,154 B) | 646d8c150fd63c3ba25b564501f14c6115e02b3a | d0126876421264e4e29a12a3591e6df21ed1e9b5cc2ccbd7a27976e852684cad |
| config.json | 508 B (508 B) | ea407689031fd146da8a53085337be8934d761c5 | 040e75e6b8dcded7c01d4d3acb9cade6f8b51e038e8658664327bfc5b48897ba |
| model.safetensors | 424.4 MB (445,008,750 B) | c06fdf85b650a90041c8106281c0c8c6bdeba6e9 | 486643fdcac936afc551aa4b0fedcd9f61c5f71f42b8333e07c709f38043475d |
| pytorch_model.bin | 424.4 MB (445,032,417 B) | 3d6acb3318eaeb54a8be8b7e3f670acf75eabf0b | 54ca0c5f4daf6885f7b07df460624de6120fe5cf964f9b082a4874be6249f5f5 |
| sentencepiece.bpe.model | 791.9 KB (810,912 B) | e84a8997bb03a815aab434b82f5d99e2c35fafb8 | 988bc5a00281c6d210a5d34bd143d0363741a432fefe741bf71e61b1869d4314 |
| tokenizer.json | 1.3 MB (1,395,301 B) | 37cac90e9f6f97be82ab09861847572d4a85390d | 94e041bf917a884207001cc0758f393b2cdcc4a6d24fdc8b2339a83dd47c9218 |
| tokenizer_config.json | 25 B (25 B) | 34ddbd64a4cd3f2d9d8a9120d3662d0bf91baead | 994f46754c5bf4014f1aa92d34b1374319c3a6b3f702105cd5b742beaecd18ce |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/almanach_camembert-base/
- Slug
- almanach_camembert-base
- Infohash
- 75bdec79a57be53c735140184e5e724418feaf70
- License
- mit
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: almanach_camembert-base.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | almanach/camembert-base |
|---|---|
| Revision (pinned) | a75967561c78f2aa81cc41045378d3b4ee25af9e |
| Fetched at | 2026-09-03T20:54:30Z |
| License at fetch | mit |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-03T20:54:39Z
mit850.9 MB (892,253,067 bytes)transformerspytorchsafetensorscamembertfill-maskendpoints_compatible2 languages (tf, fr)paper: 1911.03894