Instructions to use textattack/roberta-base-CoLA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/roberta-base-CoLA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/roberta-base-CoLA")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/roberta-base-CoLA") model = AutoModelForSequenceClassification.from_pretrained("textattack/roberta-base-CoLA", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download eval_results_cola.txt from textattack/roberta-base-CoLA: direct link, hf CLI and curl.
- Browser
- Download file 73 Bytes
-
https://huggingface.co/textattack/roberta-base-CoLA/resolve/refs%2Fpr%2F74/eval_results_cola.txt
- Command line
-
hf download hf://textattack/roberta-base-CoLA@refs/pr/74/eval_results_cola.txt
-
curl -L -o eval_results_cola.txt https://huggingface.co/textattack/roberta-base-CoLA/resolve/refs%2Fpr%2F74/eval_results_cola.txt
73 Bytes
| eval_loss = 0.5386970884659711 | |
| eval_mcc = 0.5365747584120986 | |
| epoch = 3.0 | |