Downloads · 30 days
21
11% of all-time downloads
yeniguno/gpt2-turkish-poem-generator
gpt2-turkish-poem-generator is a text generation model from yeniguno. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of ytu-ce-cosmos/turkish-gpt2-large, trained on 100,000 Turkish poems. It specializes in generating poetry in Turkish with fluency and coherence.
Downloads · 30 days
21
11% of all-time downloads
All-time downloads
183
Public
Parameters
774M
3.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of ytu-ce-cosmos/turkish-gpt2-large, trained on 100,000 Turkish poems. It specializes in generating poetry in Turkish with fluency and coherence.
Use the code below to get started with the model.
from transformers import pipeline, AutoTokenizer, GPT2LMHeadModel
model = GPT2LMHeadModel.from_pretrained("yeniguno/gpt2-turkish-poem-generator")
tokenizer = AutoTokenizer.from_pretrained("yeniguno/gpt2-turkish-poem-generator")
text_generator = pipeline('text-generation', model=model, tokenizer=tokenizer)
response = text_generator("Dağ başındasın, ", max_length=100)
print(f"\nRESPONSE\n{response}")
"""
RESPONSE
[{'generated_text': 'Dağ başındasın, uçar peşinde. Bir düştün şu garip dünyaya. Girdin sen de dünyamı başıma. Hiç acımadın bu genç yaşa. Uçtun, tozdun, bir başına. Sen de bir çocuk olmuştun. Ağlıyordun, o dünyada. Gel, gör bir de gör, ne olmuşsun. Yaşamak, düşlemek ne olmuşsun. Gel, gör bu genç yaşta ne olmuşsun.\nUçmayı, dağlarda gezmeyi düşlüyordun, Uçmak, ağaçlarda'}]
"""
turkish-gpt2-large.| Epoch | Training Loss | Validation Loss |
|---|---|---|
| 1 | 3.9527 | 3.8496 |
| 2 | 3.6406 | 3.7984 |
| 3 | 3.3847 | 3.7995 |