Sentiment Analyzer โ€” Gemma 2B LoRA

A small sentiment-analysis fine-tune of Google's Gemma 2B model using LoRA (PEFT).

This model was fine-tuned by Sanjay734 and uploaded to Hugging Face as:

sanjay734/sentiment-analyzer

Model Details

  • Base model: google/gemma-2b
  • Fine-tuning method: LoRA / PEFT
  • Task: Sentiment classification
  • Sentiment labels: POSITIVE, NEGATIVE, NEUTRAL
  • Language: English
  • Author: Sanjay734
  • Hugging Face: sanjay734

Fine-Tuning Setup

The model was loaded in 4-bit quantization to reduce GPU memory usage.

LoRA Configuration

  • r = 8
  • lora_alpha = 16
  • lora_dropout = 0.05
  • task_type = CAUSAL_LM

Training Configuration

  • Batch size per device: 2
  • Maximum training steps: 50
  • Learning rate: 2e-4
  • Logging steps: 10
  • FP16: enabled

Training Data

The fine-tuning dataset contains 8 example reviews:

  • 3 positive examples
  • 3 negative examples
  • 2 neutral examples

Example:

Review: I love this product!
Sentiment: POSITIVE
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for sanjay734/sentiment-analyzer

Base model

google/gemma-2b
Adapter
(23699)
this model