mini-gpt-shakespeare

A decoder-only Transformer trained from scratch (no nn.Transformer, no scaled_dot_product_attention β€” attention is hand-written Q/K/V, scaling, causal mask, softmax, weighted values).

Corpus tiny Shakespeare (char-level, 65-token vocab)
Architecture 4 layers, 4 heads, 128-dim, context 128, pre-norm
Training 5,000 steps, AdamW, RTX 5060
Validation loss 4.24 β†’ 1.61

Checkpoint format: torch.save dict with format_version, config, tokenizer, model_state_dict, step, metrics β€” loads with checkpoint.load_checkpoint(path, device) from nkthienai-lucky/mini-gpt.

Demo prompt (greedy): "ROMEO:" β†’ Shakespeare-like speaker headings and verse.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support