Downloads · 30 days
4
19% of all-time downloads
retaj249/imdb-deberta-v3-sentiment
imdb-deberta-v3-sentiment is a text classification model from retaj249. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This is the production export of a binary IMDB movie-review sentiment classifier fine-tuned from microsoft/deberta-v3-base. It is the winning model from a five-model screening workflow and the final selected run uses…
Downloads · 30 days
4
19% of all-time downloads
All-time downloads
21
Public
Parameters
184M
740 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
This is the production export of a binary IMDB movie-review sentiment classifier
fine-tuned from microsoft/deberta-v3-base.
It is the winning model from a five-model screening workflow and the final selected
run uses seed 42.
The accompanying production API and reproducibility workflow are available in the
RetajMelhem/imdb-sentiment-api
repository.
| Class ID | Label |
|---|---|
| 0 | negative |
| 1 | positive |
The model emits two logits. Production inference applies float32 softmax and predicts
positive when the class-1 probability is at least 0.477; otherwise it predicts
negative. This optimized threshold differs from the default 0.5/argmax behavior used
by many generic text-classification examples.
microsoft/deberta-v3-base42use_fast=False384pad_to_multiple_of=88For exact parity, use the SentimentPredictor implementation in the linked source
repository. A generic Transformers pipeline can load the weights, but it does not by
itself reproduce the custom preprocessing, head–tail truncation, or 0.477 decision
threshold for long or borderline reviews.
Evaluation used the 25,000-example IMDB test split.
| Metric | Value |
|---|---|
| Accuracy | 0.960880 |
| Precision | 0.950712 |
| Recall | 0.972160 |
| F1 | 0.961316 |
| Macro F1 | 0.960875 |
| ROC AUC | 0.992435 |
| Log loss | 0.130604 |
Confusion matrix, with rows as true labels and columns as predicted labels:
[[11870, 630],
[ 348, 12152]]
Pin deployments to an immutable Hub commit SHA rather than mutable main:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_id = "retaj249/imdb-deberta-v3-sentiment"
revision = "<40-character-commit-sha>"
tokenizer = AutoTokenizer.from_pretrained(
model_id,
revision=revision,
use_fast=False,
trust_remote_code=False,
)
model = AutoModelForSequenceClassification.from_pretrained(
model_id,
revision=revision,
use_safetensors=True,
trust_remote_code=False,
)
The source repository provides the complete API configuration and prediction command that preserve the validated inference contract.
The model is intended for English binary sentiment classification of movie-review-like text, including API, batch, and portfolio demonstration workloads. It is not designed for factuality, safety moderation, emotion classification, multilingual analysis, or high-stakes decisions.
The authoritative training notebook is tracked in the linked GitHub repository. It records the five-model screening, final DeBERTa-v3-base selection, seed-42 run, threshold optimization, export, and validation evidence. The Hub repository contains only inference-required artifacts and metadata; it excludes validation predictions, training checkpoints, credentials, caches, and local paths.
The fine-tuned model is published under the MIT license, consistent with the upstream
microsoft/deberta-v3-base model. Users remain responsible for complying with the
IMDB dataset terms and applicable requirements for their use case.