Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
sagar007ย 
posted an update Aug 23
Post
750
๐ŸŒŸ Enchanted Tales Generator: A GPT-2 Inspired Story Weaver ๐ŸŒŸ

Hello Hugging Face community! I'm excited to share my latest project, the Enchanted Tales Generator, inspired by Andrej Karpathy's enlightening YouTube videos on GPT-2.

๐Ÿง™โ€โ™‚๏ธ What is the Enchanted Tales Generator?

The Enchanted Tales Generator is a magical text generation app that weaves whimsical stories based on your prompts. It's powered by a fine-tuned GPT model and brings the wonder of AI-generated storytelling to your fingertips.

๐ŸŽฅ Inspiration

This project was born from the inspiration I drew from Andrej Karpathy's incredible YouTube series on GPT-2. His clear explanations and deep insights into the workings of language models sparked my imagination and drove me to create something that could bring joy and creativity to others.

๐Ÿ”ฎ Features

- Story Incantation: Input your magical prompt to start your tale
- Scroll Length: Adjust the length of your generated story
- Magical Intensity: Control the creativity (temperature) of the generation
- Arcane Diversity: Fine-tune the variety of word choices (top-k sampling)

๐Ÿš€ Try It Out: sagar007/GPT-2-with_gpu

You can experience the Enchanted Tales Generator right here on Hugging Face Spaces: [Insert your Spaces link here]

๐Ÿ› ๏ธ Behind the Scenes

The app is built using:
- PyTorch for the underlying GPT model
- Gradio for the user interface
- Hugging Face Spaces for deployment

I've implemented techniques learned from Karpathy's videos, such as:
- Custom GPT architecture
- Top-k sampling for diverse outputs
- Temperature-controlled generation

๐ŸŒˆ Future Enchantments

I'm continuously working on improving the Enchanted Tales Generator. Some ideas for future updates include:
- Fine-tuning on specific genres of stories
- Adding options for character and setting generation
- Implementing more advanced sampling techniques

๐Ÿค Join the Magic!
In this post