Text Classification
PEFT
Safetensors
PyTorch
Transformers
English
sentiment-analysis
distilbert
lora
distributed-training
Eval Results (legacy)
Instructions to use ahnafthaqeef/distilbert-sst2-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ahnafthaqeef/distilbert-sst2-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "ahnafthaqeef/distilbert-sst2-lora") - Transformers
How to use ahnafthaqeef/distilbert-sst2-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ahnafthaqeef/distilbert-sst2-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ahnafthaqeef/distilbert-sst2-lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!