Downloads · 30 days
10
24% of all-time downloads
asfandyarazhar/fine-tuned-gpt2-medium-jokes
fine-tuned-gpt2-medium-jokes is a text generation model from asfandyarazhar. 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 GPT-2 Medium, specifically trained to generate programming-related jokes. The fine-tuning was performed on a dataset of jokes . The model aims to produce humorous and contextually…
Downloads · 30 days
10
24% of all-time downloads
All-time downloads
41
Public
Parameters
355M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of GPT-2 Medium, specifically trained to generate programming-related jokes. The fine-tuning was performed on a dataset of jokes . The model aims to produce humorous and contextually appropriate responses to prompts related to programming and technology.
The fine-tuning process involved training the GPT-2 Medium model on the programming jokes dataset using the Hugging Face transformers library. Key training configurations included:
The fine-tuned model demonstrates an improved ability to generate relevant and humorous responses to prompts. While it captures the structure and style of programming jokes, the quality and coherence of the humor can vary. The model's humor is influenced by the data it was trained on, and users should consider this when interpreting outputs.
This model is designed for entertainment and educational purposes, providing a fun way to explore text generation in the context of programming humor. It can be used to generate jokes, study language patterns in humor, or as a starting point for further fine-tuning on similar datasets.
You can use this model with the transformers library in Python:
from transformers import pipeline
generator = pipeline('text-generation', model='your_username/fine-tuned-gpt2-medium-jokes')
result = generator("Why do programmers prefer dark mode?", max_length=50, num_return_sequences=1)
print(result[0]['generated_text'])