Instructions to use NbAiLab/roberta_des_512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NbAiLab/roberta_des_512 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="NbAiLab/roberta_des_512")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("NbAiLab/roberta_des_512") model = AutoModelForMaskedLM.from_pretrained("NbAiLab/roberta_des_512", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 163 Bytes
0768ca3 | 1 2 3 4 5 6 7 | from transformers import RobertaConfig
model_dir = "./" # ${MODEL_DIR}
config = RobertaConfig.from_pretrained("roberta-base")
config.save_pretrained(model_dir)
|