Downloads · 30 days
235
82% of all-time downloads
amgadmadkour/simple-gpt-shakespeare
simple-gpt-shakespeare is a text generation model from amgadmadkour. Use it when you need the model to write or continue text. It is set up for pytorch.
Custom character-level GPT trained on amgadmadkour/tinyshakespeare.
Downloads · 30 days
235
82% of all-time downloads
All-time downloads
288
Public
Parameters
10.8M
129 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors43.1 MB · 100%
From the Hugging Face model README
Custom character-level GPT trained on amgadmadkour/tiny_shakespeare.
model.safetensors: model weightsconfig.json: architecture settingsvocab.json: character vocabularyimport sys
sys.path.append("../model/simple-gpt-shakespeare")
from modeling_simple_gpt import GPT, complete
model = GPT.from_pretrained("simple-gpt-shakespeare")
print(complete(model, "To be, or not to be", max_new_tokens=200, temperature=0.8, top_k=50))