Instructions to use bertin-project/bertin-roberta-base-spanish with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bertin-project/bertin-roberta-base-spanish with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="bertin-project/bertin-roberta-base-spanish")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("bertin-project/bertin-roberta-base-spanish") model = AutoModelForMaskedLM.from_pretrained("bertin-project/bertin-roberta-base-spanish", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download config.py from bertin-project/bertin-roberta-base-spanish: direct link, hf CLI and curl.
- Browser
- Download file 256 Bytes
-
https://huggingface.co/bertin-project/bertin-roberta-base-spanish/resolve/main/config.py
- Command line
-
hf download hf://bertin-project/bertin-roberta-base-spanish/config.py
-
curl -L -o config.py https://huggingface.co/bertin-project/bertin-roberta-base-spanish/resolve/main/config.py
256 Bytes
| #!/usr/bin/env python | |
| from transformers import RobertaConfig | |
| config = RobertaConfig.from_pretrained("roberta-large") | |
| config.save_pretrained("./configs/large") | |
| config = RobertaConfig.from_pretrained("roberta-base") | |
| config.save_pretrained("./configs/base") | |