Downloads · 30 days
15
23% of all-time downloads
moh0405/distilbert-imdb-lora
distilbert-imdb-lora is a text classification model from moh0405. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned version of distilbert-base-uncased for binary sentiment classification, adapted using LoRA (Low-Rank Adaptation) rather than full fine-tuning.
Downloads · 30 days
15
23% of all-time downloads
All-time downloads
66
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Fine-tuned version of distilbert-base-uncased for binary sentiment classification,
adapted using LoRA (Low-Rank Adaptation) rather than full fine-tuning.
Classifies English-language text (originally movie reviews) as POSITIVE or NEGATIVE sentiment. Suitable for quick sentiment tagging tasks similar in style to IMDB reviews.
[More Information Needed]
Not intended for nuanced/mixed sentiment detection, non-English text, or domains far from movie reviews (e.g. financial sentiment, medical text) without further fine-tuning. Trained on a small subset for a learning exercise — not validated for production use.
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
```python from transformers import pipeline
classifier = pipeline("text-classification", model="moh0405/distilbert-imdb-lora") result = classifier("This movie was surprisingly good.") print(result) ```
[More Information Needed]
Subset of the IMDB movie review dataset (stanfordnlp/imdb) — 2,000 training examples,
500 evaluation examples, randomly sampled (seed=42) from the full 25,000/25,000 split.
[More Information Needed]
[More Information Needed]
[More Information Needed]
500-example held-out split from stanfordnlp/imdb test set.
Accuracy
[More Information Needed]
[More Information Needed]
| Stage | Accuracy |
|---|---|
| Before fine-tuning | 50.8% |
| After fine-tuning (1 epoch) | 78.6% |
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
Apple Mac Mini (Apple Silicon, MPS backend)
transformers, peft, datasets, PyTorch
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]