Run this model with HF Jobs
Run FacebookAI/roberta-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/FacebookAI/roberta-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FacebookAI/roberta-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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 ·
c2a5e57
1
Parent(s): ff46155
fix typos
Browse files41 unmodified lines42434445464748117 unmodified lines16616716816917017117217317417517617717817941 unmodified linesNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)to make decisions, such as sequence classification, token classification or question answering. For tasks such as textgeneration you should look at model like GPT2.### How to use117 unmodified lines- [Stories](https://arxiv.org/abs/1806.02847) a dataset containing a subset of CommonCrawl data filtered to match thestory-like style of Winograd schemas.Together theses datasets weight 160GB of text.## Training procedure### PreprocessingThe texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs ofthe model take pieces of 512 contiguous token that may span over documents. The beginning of a new document is markedwith `<s>` and the end of one by `</s>`The details of the masking procedure for each sentence are the following:41 unmodified lines42434445464748117 unmodified lines16616716816917017117217317417517617717817941 unmodified linesNote that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked)to make decisions, such as sequence classification, token classification or question answering. For tasks such as textgeneration you should look at a model like GPT2.### How to use117 unmodified lines- [Stories](https://arxiv.org/abs/1806.02847) a dataset containing a subset of CommonCrawl data filtered to match thestory-like style of Winograd schemas.Together these datasets weigh 160GB of text.## Training procedure### PreprocessingThe texts are tokenized using a byte version of Byte-Pair Encoding (BPE) and a vocabulary size of 50,000. The inputs ofthe model take pieces of 512 contiguous tokens that may span over documents. The beginning of a new document is markedwith `<s>` and the end of one by `</s>`The details of the masking procedure for each sentence are the following:
README.md+3-3