You can use the raw model for masked language modeling (MLM), but it's mostly intended to be fine-tuned on a downstream task, especially one that uses the whole sentence to make decisions such as text classification, extractive question answering, or semantic search. For tasks such as text generation, you should look at autoregressive models like
BelGPT-2
.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained('antoinelouis/camembert-L10')
model = AutoModel.from_pretrained('antoinelouis/camembert-L10')
text = "Remplacez-moi par le texte de votre choix."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
Variations
CamemBERT has originally been released in base (110M) and large (335M) variations. The following checkpoints prune the base variation by dropping the top 2, 4, 6, 8, and 10 pretrained encoding layers, respectively.
camembert-L10 huggingface.co is an AI model on huggingface.co that provides camembert-L10's model effect (), which can be used instantly with this antoinelouis camembert-L10 model. huggingface.co supports a free trial of the camembert-L10 model, and also provides paid use of the camembert-L10. Support call camembert-L10 model through api, including Node.js, Python, http.
camembert-L10 huggingface.co is an online trial and call api platform, which integrates camembert-L10's modeling effects, including api services, and provides a free online trial of camembert-L10, you can try camembert-L10 online for free by clicking the link below.
antoinelouis camembert-L10 online free url in huggingface.co:
camembert-L10 is an open source model from GitHub that offers a free installation service, and any user can find camembert-L10 on GitHub to install. At the same time, huggingface.co provides the effect of camembert-L10 install, users can directly use camembert-L10 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.