Fine-Tuned Sentiment Analysis with LoRA and DistilBERT
Movie review sentiment analysis using a fine-tuned DistilBERT transformer model. The model is trained and evaluated on the IMDb dataset with Hugging Face’s Transformers library and accelerated with CUDA on an NVIDIA GeForce RTX 4060 Laptop GPU. Fine-tuning is performed using Low-Rank Adaptation (LoRA) with Parameter-Efficient Fine-Tuning (PEFT), integrated into Hugging Face’s Trainer API. Inference is deployed through a Streamlit web application displaying predicted sentiment labels (positive/negative), confidence scores and runtime device information (CPU/GPU).