Downloads · 30 days
7
7% of all-time downloads
KamalEzzo/gemma2-9b-it-essay-grading-lora
gemma2-9b-it-essay-grading-lora is a text generation model from KamalEzzo. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A LoRA adapter fine-tuned on Gemma 2 9B-IT for automated grading of essay questions in undergraduate business education. The model evaluates student responses using a 4-criterion rubric and produces grades on a 0-5 sc…
Downloads · 30 days
7
7% of all-time downloads
All-time downloads
98
Public
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 97%
From the Hugging Face model README
A LoRA adapter fine-tuned on Gemma 2 9B-IT for automated grading of essay questions in undergraduate business education. The model evaluates student responses using a 4-criterion rubric and produces grades on a 0-5 scale.
| Parameter | Value |
|---|---|
| Rank (r) | 80 |
| Alpha | 80 |
| Dropout | 0.0 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Task type | CAUSAL_LM |
| Parameter | Value |
|---|---|
| Learning rate | 5e-6 |
| Epochs | 3 |
| Batch size | 2 (with gradient accumulation 4 → effective 8) |
| Precision | bf16 |
| Optimizer | AdamW (8-bit) |
| Warmup steps | 5 |
| LR scheduler | Linear |
| Hardware | Google Colab (NVIDIA T4 GPU) |
Evaluated on a held-out test set of 510 samples (17 questions x 30 responses):
| Model | ±1.0 Accuracy | MAE | QWK | Off-Topic Acc |
|---|---|---|---|---|
| Fine-tuned Gemma 2 9B (this model) | 78.4% | 0.713 | 0.821 | 93.1% |
| Zero-shot Gemma 2 9B | 72.4% | 0.875 | 0.761 | 77.3% |
| Claude Opus 4.6 | 77.1% | 0.749 | 0.813 | 91.8% |
| Claude Sonnet 4 | 77.5% | 0.813 | 0.787 | 84.1% |
| GPT-4o | 71.6% | 0.845 | 0.766 | 88.4% |
| GPT-5.2 | 68.0% | 0.897 | 0.771 | 91.8% |
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load base model and tokenizer
base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-9b-it")
tokenizer = AutoTokenizer.from_pretrained("KamalEzzo/gemma2-9b-it-essay-grading-lora")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "KamalEzzo/gemma2-9b-it-essay-grading-lora")
If you use this model, please cite:
@misc{abdulfattah2026essaygrading,
title={Automated Essay Grading with Fine-Tuned Gemma 2 9B-IT},
author={Abdul-Fattah, Kamal},
year={2026},
url={https://huggingface.co/KamalEzzo/gemma2-9b-it-essay-grading-lora}
}