YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Fine-Tuned BERT for IMDb Sentiment Analysis

This repository contains a fine-tuned BERT-base-uncased model for binary sentiment classification (positive/negative) on the IMDb movie review dataset.

Model Overview

  • Base model: bert-base-uncased
  • Task: Sentiment classification
  • Dataset: IMDb (binary labels)
  • Metrics: Accuracy, Precision, Recall, F1-score

Performance

Epoch Training Loss Validation Loss Accuracy
1 0.3524 0.3526 91.8%
2 0.3233 0.3427 92.2%
3 0.2998 0.3524 93.4%
4 0.2821 0.3455 93.4%

Training Details

  • Framework: Transformers, PyTorch
  • Hardware: Google Colab Pro
  • Techniques used:
    • Label smoothing
    • Early stopping
    • Weight decay
    • Dropout regularization
    • WANDB for tracking metrics
  • Hyperparameters:
    • Learning rate: 2e-5
    • Batch size: 16
    • Epochs: 10
    • Dropout: 0.3
    • Label smoothing factor: 0.1

Usage

Inference

from transformers import pipeline

classifier = pipeline("text-classification", model="your-username/your-model-name")
result = classifier("This movie was fantastic!")
print(result)
# [{'label': 'POSITIVE', 'score': 0.99}]
Downloads last month
3
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support