Instructions to use chunwei-sf/roberta-base-category-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use chunwei-sf/roberta-base-category-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("roberta-base") model = PeftModel.from_pretrained(base_model, "chunwei-sf/roberta-base-category-classifier") - Transformers
How to use chunwei-sf/roberta-base-category-classifier with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("chunwei-sf/roberta-base-category-classifier", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K