Downloads · 30 days
5
14% of all-time downloads
ashrafs1/shakespeare
shakespeare is a machine learning model from ashrafs1. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
5
14% of all-time downloads
All-time downloads
37
Public
Repo size
989 MB
Likes
0
Public
Click a slice to open those files.
.pt495 MB · 100%
From the Hugging Face model README
import torch, json
from model.gpt import GPT, GPTConfig
with open('config.json') as f:
cfg = json.load(f)
config = GPTConfig(**{k: cfg[k] for k in ['context_length','vocab_size','num_layers','embd_size','num_heads']})
model = GPT(config)
model.load_state_dict(torch.load('model.pt', map_location='cpu'))