Run this model with HF Jobs
Run solwol/roberta-sentiment-classifier-peft 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/solwol/roberta-sentiment-classifier-peft. 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/solwol/roberta-sentiment-classifier-peft 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 solwol/roberta-sentiment-classifier-peft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use solwol/roberta-sentiment-classifier-peft with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("roberta-base") model = PeftModel.from_pretrained(base_model, "solwol/roberta-sentiment-classifier-peft") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files36 unmodified lines3738394041424336 unmodified linesmodel = PeftModel.from_pretrained(model, "solwol/roberta-sentiment-classifier-peft")```Now, to perform sentiment classification:```pythonfrom transformers import AutoTokenizer, TextClassificationPipeline36 unmodified lines3738394041424336 unmodified linesmodel = PeftModel.from_pretrained(model, "solwol/roberta-sentiment-classifier-peft")```Next, to perform sentiment classification:```pythonfrom transformers import AutoTokenizer, TextClassificationPipeline
README.md+1-1