Views
No views yet
model.py for the architecture classes, then:1import torch
2from model import MiniGPT
3
4model = MiniGPT(vocab_size=50257, embed_dim=256, num_heads=8,
5 num_layers=6, hidden_dim=1024, max_seq_len=128)
6ckpt = torch.load("checkpoint.pt", map_location="cpu")
7model.load_state_dict(ckpt["model"])Once upon a time, there was a little girl named Lily who loved to play outside. She had a lot of fun playing in the mud and splashing around...