Views
No views yet
| Property | Value |
|---|---|
| Parameters | ~125M |
| Architecture | Decoder-only Transformer |
| Embedding dim | 768 |
| Attention heads | 12 |
| Layers | 8 |
| Context length | 512 tokens |
| Vocab size | 32,000 (SentencePiece BPE) |
| Setting | Value |
|---|---|
| Training steps | 162,000 |
| Val loss | 4.3889 |
| Optimizer | AdamW |
| Learning rate | 3e-4 (cosine decay) |
| Batch size | 1 (effective 4 with grad accum) |
1import torch
2import sentencepiece as spm
3from huggingface_hub import hf_hub_download
4
5# Download files
6ckpt_path = hf_hub_download("saiakula/KernelGPT", "pytorch_model.pt")
7tok_path = hf_hub_download("saiakula/KernelGPT", "tokenizer.model")
8
9# Load tokenizer
10sp = spm.SentencePieceProcessor(model_file=tok_path)
11
12# Load model
13# (requires TinyGPT src — clone https://github.com/your-username/TinyGPT)
14checkpoint = torch.load(ckpt_path, map_location="cpu")