Instructions to use FacebookAI/roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FacebookAI/roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="FacebookAI/roberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("FacebookAI/roberta-base") model = AutoModelForMaskedLM.from_pretrained("FacebookAI/roberta-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signaturefc7e919
-
Adds the tokenizer configuration file (#12)
Verified signature- Adds tokenizer_config.json file (a7bf0580bc6f27340160108ed925ef00a55bd70a)e2da8e2
-
fix typos (#6)
- fix typos (c2a5e573587885ce23744cf330ee7c402f0df16f) Co-authored-by: George Ogden <George-Ogden@users.noreply.huggingface.co>bc2764f
-
Convert weights to .safetensors (#3)
- Convert weights to .safetensors (a97a0fa19af3b9cf51ccbd4529dd661b7d619fe8)ff46155
-
add flax weights
Patrick von Platen251c3c3 -
update gitattribetes
Patrick von Platenb5156de
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/roberta-base-README.md841d321
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>366e931
-
add flax model
90e83f2
-
Update tokenizer.json
d31b775
-
Update rust_model.ot
2a6355b -
Update config.json
47a52b9
-
Update config.json
2ecd732
-
Update modelcard.json
cb39467
-
Update config.json
e306078 -
Update config.json
f52b0ba
-
Update config.json
3094fd1 -
Update config.json
bbbb96c
-
Update tf_model.h5
3bf2200
-
Update config.json
02c245a
-
Update vocab.json
e9e13e3
-
Update vocab.json
724788e
-
Update vocab.json
67d9c0f -
Update vocab.json
c099717 -
Update vocab.json
ce86094 -
Update merges.txt
43b8f0b
-
Update config.json
83a60a2 -
Update pytorch_model.bin
fa1301c
-
Update config.json
a5b34d0
-
Update dict.txt
34627a9 -
initial commit
37d86ca