Text Classification
Transformers
PyTorch
TensorBoard
roberta
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run nikuznetsov/roberta-base-finetuned-cola 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/nikuznetsov/roberta-base-finetuned-cola. 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/nikuznetsov/roberta-base-finetuned-cola 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 nikuznetsov/roberta-base-finetuned-cola with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nikuznetsov/roberta-base-finetuned-cola with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nikuznetsov/roberta-base-finetuned-cola")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nikuznetsov/roberta-base-finetuned-cola") model = AutoModelForSequenceClassification.from_pretrained("nikuznetsov/roberta-base-finetuned-cola", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Align label mapping with cola config of glue dataset
#1
by lewtun HF Staff - opened
23 unmodified lines242526272823 unmodified lines"transformers_version": "4.18.0","type_vocab_size": 1,"use_cache": true,"vocab_size": 50265}23 unmodified lines2425262728293031323334353623 unmodified lines"transformers_version": "4.18.0","type_vocab_size": 1,"use_cache": true,"vocab_size": 50265,"label2id": {"unacceptable": 0,"acceptable": 1},"id2label": {"0": "unacceptable","1": "acceptable"}}
config.json+10-2