Instructions to use Alirezamp/news-category-classifier-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Alirezamp/news-category-classifier-distilbert with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert/distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "Alirezamp/news-category-classifier-distilbert") - Notebooks
- Google Colab
- Kaggle
Ctrl+K