File size: 1,069 Bytes
9759036
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
language: en
license: apache-2.0
base_model: distilbert/distilbert-base-uncased
tags:
  - text-classification
  - sentiment-analysis
  - distilbert
datasets:
  - imdb
metrics:
  - loss
---

# DistilBERT Sentiment Classifier (IMDB)

Fine-tuned [distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) for binary sentiment classification (positive/negative) on a subset of the IMDB movie review dataset.

## Model Details

- **Base model:** distilbert/distilbert-base-uncased
- **Task:** Sentiment analysis (binary classification)
- **Labels:** `0` = negative, `1` = positive
- **Max sequence length:** 128 tokens

## Training

| Hyperparameter | Value |
|---|---|
| Dataset | IMDB (500 samples, 80/20 split) |
| Epochs | 2 |
| Batch size | 8 |
| Learning rate | 5e-5 (linear decay) |

**Final eval loss:** 0.0008

## Usage

```python
from transformers import pipeline

classifier = pipeline("text-classification", model="chinmaygarde/hello")
classifier("This movie was absolutely fantastic!")
# [{'label': 'LABEL_1', 'score': 0.999}]
```