Downloads · 30 days
10
11% of all-time downloads
MAnveer29605/gpt2-poetry-manveer_2
gpt2-poetry-manveer_2 is a text generation model from MAnveer29605. Use it when you need the model to write or continue text. The card lists the license as mit.
This is a fine-tuned version of GPT-2 on a small dataset of 6 original English poem lines. The model was trained to generate short poetic verses based on any given prompt.
Downloads · 30 days
10
11% of all-time downloads
All-time downloads
90
Public
Parameters
124M
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt2 GB · 57%
From the Hugging Face model README
This is a fine-tuned version of GPT-2 on a small dataset of 6 original English poem lines.
The model was trained to generate short poetic verses based on any given prompt.
Custom-created poems.txt file with 6 manually written poetic lines.
Each line represents a single poetic sentence.
Trainer APITry the model with the text-generation pipeline:
from transformers import pipeline
generator = pipeline("text-generation", model="YOUR_USERNAME/gpt2-poetry-manveer")
output = generator("In the shadow of the", max_new_tokens=50)
print(output[0]["generated_text"])