Downloads · 30 days
8
32% of all-time downloads
Jaxay/jaxay-imdb-distilbert
jaxay-imdb-distilbert is a machine learning model from Jaxay. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model, jaxay-imdb-distilbert, is a fine-tuned version of distilbert-base-uncased by Jaxay for binary sentiment classification. It is trained on the IMDb dataset to classify movie reviews as either positive or neg…
Downloads · 30 days
8
32% of all-time downloads
All-time downloads
25
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
This model, jaxay-imdb-distilbert, is a fine-tuned version of distilbert-base-uncased by Jaxay for binary sentiment classification. It is trained on the IMDb dataset to classify movie reviews as either positive or negative.
Trainer API for 3 epochs.The model was fine-tuned on a balanced subset of the IMDb dataset, consisting of positive and negative movie reviews. It is designed to be lightweight and efficient, making it suitable for applications requiring quick inference times.
This model is ideal for classifying movie reviews into positive and negative categories. It can be used in applications like:
Here’s how to use the model for inference:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
# Load the model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Jaxay/jaxay-imdb-distilbert")
model = AutoModelForSequenceClassification.from_pretrained("Jaxay/jaxay-imdb-distilbert")
# Define the input text
text = "The movie was fantastic! A true masterpiece."
# Tokenize the input and make a prediction
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
outputs = model(**inputs)
# Get the predicted label
predicted_class = outputs.logits.argmax().item()
label = "Positive" if predicted_class == 1 else "Negative"
print(f"Sentiment: {label}")