stanfordnlp/imdb
Viewer โข Updated โข 100k โข 161k โข 963
This project demonstrates fine-tuning a pre-trained transformer model to perform binary sentiment classification using the IMDb dataset. The task involves classifying movie reviews as either negative (0) or positive (1). The implementation leverages the Hugging Face Transformers and Datasets libraries, along with PyTorch, to preprocess the data, fine-tune a pre-trained DistilBERT model, evaluate the model, and save the final model for future use.
The assignment includes the following key steps:
Dataset Selection and Preprocessing
Model Selection and Fine-Tuning
Trainer API.Evaluation
Saving the Model
Install the necessary libraries using pip:
pip install -U transformers datasets scikit-learn torch