← Back to Projects

Genre-Controlled Story Generation using QLoRA

Feb 2026 - May 2026
LLM Fine-Tuning / QLoRA / Streamlit
View GitHub →

Project Type

  • Association: University of Missouri-Kansas City
  • Role: Applied AI / LLM Fine-Tuning
  • Focus: Controlled text generation across fantasy, romance, and sci-fi
  • Interface: Streamlit application

Objective

Built a reproducible instruction-tuning pipeline for genre-controlled short story generation using Gemma 3-1B, QLoRA, and PEFT, then evaluated whether fine-tuning improved controllability and output quality.

Tools & Technologies

PythonPyTorchHugging FacePEFTQLoRAGemma 3-1BLLM-as-JudgeStreamlit

Project Details

Fine-tuned Gemma 3-1B with QLoRA and PEFT for controlled text generation using structured prompt formatting, dataset curation, and held-out evaluation.

Evaluated base vs. adapted models using validation loss, perplexity, genre fidelity, coherence, and LLM-as-Judge scoring.

Experimented with decoding parameters such as temperature and top-k to improve generation quality while tracking failure cases including repetition, weak endings, and genre drift.

Built an interactive Streamlit app so users could test genre, prompt, and generation settings in a simple interface.

Connect with me

© 2026 Sreekaran Reddy. Built to showcase data, machine learning, and applied AI work.