Instructions to use FacebookAI/xlm-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FacebookAI/xlm-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="FacebookAI/xlm-roberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("FacebookAI/xlm-roberta-base") model = AutoModelForMaskedLM.from_pretrained("FacebookAI/xlm-roberta-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding ONNX file of this model
Beep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/optimum/exporters). On behalf of [mushfiqurrobin](https://huggingface.co/mushfiqurrobin), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!e9c793a
-
Adding `safetensors` variant of this model (#9)
- Adding `safetensors` variant of this model (42d8930d2fa6e51784fc924d37943d1cb89ec0de) Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>42f548f
-
Update README.md (#1)
- Update README.md (e9f5442d0e5232f48560686bed290d9dfc005c33) Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>f6d161e
-
Add TF weights (#2)
joaogante- Add TF weights (9e83a6a990fc25f6073fe25416d1899fe3797944)a8c9047
-
remove ipynb ckpt
5903ba7 -
add flax model
8524a13 -
track msgpack
e232200
-
Add model card
02355de
-
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/xlm-roberta-base-README.mdd9d8a8e
-
Update tokenizer.json
446679f
-
Update config.json
2cfd5ad
-
Update config.json
e17a4a0
-
Update sentencepiece.bpe.model
f73dcc4 -
Update pytorch_model.bin
e3fd215 -
Update config.json
d1a321d -
initial commit
d23a08c