← All projects

2024 · Lead researcher & engineer

Text Generation Model with GPT-2

A capstone research project at Christopher Newport University exploring how a fine-tuned GPT-2 model, paired with OpenAI APIs, can produce coherent long-form text in a narrow subject domain.

Amber-lit streams of generated text tokens flowing out of a dark terminal window, illustrating a fine-tuned GPT-2 model producing long-form text
Fine-tuned GPT-2 generating domain-specific long-form text, evaluated against the base checkpoint.
The problem

General-purpose language models drift off-topic and hallucinate specifics when asked to write within a technical domain. The project asked whether a modest fine-tune on curated data could measurably reduce that drift.

Approach
Technologies
PythonPyTorchHugging Face TransformersOpenAI APIJupyterGit
Outcomes
More work