Downloads · 30 days
9
11% of all-time downloads
thetobysiu/gpt2-waiting-for-godot
gpt2-waiting-for-godot is a text generation model from thetobysiu. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
A GPT-2 Medium model fine-tuned on Samuel Beckett's "Waiting for Godot" for generating absurdist theatrical dialogue and prose.
Downloads · 30 days
9
11% of all-time downloads
All-time downloads
79
Public
Repo size
2.9 GB
Likes
0
Public
Click a slice to open those files.
.bin1.4 GB · 100%
From the Hugging Face model README
A GPT-2 Medium model fine-tuned on Samuel Beckett's "Waiting for Godot" for generating absurdist theatrical dialogue and prose.
This model is part of the Deepstory project, which combines Natural Language Generation, Text-to-Speech, and animation technologies to create interactive storytelling experiences.
The model has been fine-tuned on the complete text of "Waiting for Godot" to capture the distinctive absurdist dialogue style, circular conversations, and existential themes of Beckett's masterpiece.
This model is based on GPT-2 Medium architecture.
| Parameter | Value |
|---|---|
| Architecture | GPT2LMHeadModel |
| Model Size | GPT-2 Medium |
| Number of Layers (n_layer) | 24 |
| Hidden Size (n_embd) | 1024 |
| Attention Heads (n_head) | 16 |
| Context Length (n_ctx) | 1024 |
| Max Positions (n_positions) | 1024 |
| Vocabulary Size | 50,257 |
| Activation Function | GELU (new) |
| Attention Dropout | 0.1 |
| Embedding Dropout | 0.1 |
| Residual Dropout | 0.1 |
| Layer Norm Epsilon | 1e-05 |
from transformers import GPT2Tokenizer, GPT2LMHeadModel
import torch
# Load model and tokenizer
tokenizer = GPT2Tokenizer.from_pretrained("thetobysiu/gpt2-waiting-for-godot")
model = GPT2LMHeadModel.from_pretrained("thetobysiu/gpt2-waiting-for-godot")
# Generate dialogue
prompt = "VLADIMIR: What do we do now?\nESTRAGON:"
input_ids = tokenizer.encode(prompt, return_tensors='pt')
output = model.generate(
input_ids=input_ids,
max_length=200,
temperature=0.9,
top_p=0.95,
top_k=50,
do_sample=True,
num_return_sequences=1
)
generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
print(generated_text)
For best results when generating Beckett-style dialogue:
| Parameter | Recommended Value | Description |
|---|---|---|
| temperature | 0.8 - 1.0 | Higher for more absurd outputs |
| top_p | 0.9 - 0.95 | Nucleus sampling threshold |
| top_k | 40 - 50 | Top-k sampling |
| max_length | 100 - 300 | Maximum tokens to generate |
| do_sample | True | Enable sampling |
The model works best when prompted with the character name format used in the play:
VLADIMIR: or DIDI:ESTRAGON: or GOGO:POZZO:LUCKY:BOY:The model was fine-tuned on the complete text of "Waiting for Godot" (En attendant Godot) by Samuel Beckett, including both Act I and Act II.
The model was fine-tuned using the Hugging Face Transformers library starting from the pre-trained GPT-2 Medium checkpoint.
This model is intended for:
The model tends to generate text with:
If you use this model, please cite the Deepstory project:
@misc{deepstory,
author = {Siu King Wai},
title = {Deepstory},
year = {2020},
publisher = {GitHub},
url = {https://github.com/thetobysiu/deepstory}
}
This model is released under the MIT License. Please note that "Waiting for Godot" is the intellectual property of the Samuel Beckett estate.