https://github.com/muavia1/fine-tuning-gpt2-on-mathriddles-dataset
This repository contains code for fine-tuning GPT-2 to generate math riddles with solutions using Hugging Face’s transformers and TRL.
https://github.com/muavia1/fine-tuning-gpt2-on-mathriddles-dataset
fine-tuning finetuning-llms gpt gpt-2 trainer training
Last synced: about 2 months ago
JSON representation
This repository contains code for fine-tuning GPT-2 to generate math riddles with solutions using Hugging Face’s transformers and TRL.
- Host: GitHub
- URL: https://github.com/muavia1/fine-tuning-gpt2-on-mathriddles-dataset
- Owner: Muavia1
- Created: 2025-03-25T11:18:36.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T12:06:15.000Z (2 months ago)
- Last Synced: 2025-03-25T13:23:03.595Z (2 months ago)
- Topics: fine-tuning, finetuning-llms, gpt, gpt-2, trainer, training
- Language: Jupyter Notebook
- Homepage: https://medium.com/@muaviaijaz8/fine-tuning-gpt-2-on-math-riddles-24d229fa1d71
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fine-Tuning-GPT2-on-MathRiddles-Dataset
This repository contains code for fine-tuning **GPT-2** to generate **math riddles with solutions** using **Hugging Face’s transformers** and **TRL**. The project covers:
✅ **Dataset Preparation** – Structuring riddles and solutions for training.
✅ **Fine-Tuning GPT-2** – Using `transformers` and `trl` for text generation.
✅ **Interactive Riddle Generation** – A CLI for generating riddles on demand.
🚀 **Potential Applications:** AI-powered education, tutoring assistants, and interactive learning tools.
#AI #MachineLearning #NLP #GPT2 #EdTech