Downloads · 30 days
3
4% of all-time downloads
YuvarajK-g25ait2054/distilbert-goodreads-genres-V2
distilbert-goodreads-genres-V2 is a text classification model from YuvarajK-g25ait2054. 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.
Developed by: Yuvaraj K Model type: DistilBERT for Sequence Classification Language: English Finetuned from: distilbert-base-cased Training platform: Kaggle GPU Experiment tracking: Weights & Biases
Downloads · 30 days
3
4% of all-time downloads
All-time downloads
85
Public
Parameters
65.8M
526 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors263 MB · 100%
From the Hugging Face model README
Developed by: Yuvaraj K
Model type: DistilBERT for Sequence Classification
Language: English
Finetuned from: distilbert-base-cased
Training platform: Kaggle GPU
Experiment tracking: Weights & Biases
This model is a fine-tuned DistilBERT transformer model for multi-class text classification on Goodreads book review text.
The objective of this project was to build a complete MLOps workflow including:
DistilBERT was selected because it is computationally efficient, lightweight, and well-suited for free GPU environments while maintaining competitive NLP performance.
Dataset: Goodreads book review classification dataset
Classification task: Multi-class genre classification
Number of classes: 8
Example classes:
Base model: distilbert-base-cased
Hyperparameters:
Training platform:
| Metric | Score |
|---|---|
| Accuracy | 0.6031 |
| F1 Score | 0.6007 |
| Eval Loss | 2.2373 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "YuvarajK-g25ait2054/distilbert-goodreads-genres-V2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
text = "This mystery novel was suspenseful and brilliantly written."
inputs = tokenizer(
text,
return_tensors="pt",
truncation=True,
padding=True
)
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=1)
print(prediction)
This model is intended for:
Weights & Biases Dashboard:
https://wandb.ai/g25ait2054-iit-jodhpur/mlops-assignment2
Hugging Face Model:
https://huggingface.co/YuvarajK-g25ait2054/distilbert-goodreads-genres-V2
Kaggle Notebook:
https://www.kaggle.com/code/kyuvarajg25ait2054/g25ait2054-yuvaraj
GitHub Repository:
https://github.com/YuvarajK-g25ait2054/Mlops_assignment2