Aethel Gaze β€” TIA

A tiny GPT (Task-oriented Intelligent Architecture) trained from scratch on TinyStories. Written by a 12th-grade student on free Kaggle GPUs.

Model

Architecture Decoder-only Transformer (GPT-style)
Parameters 49.39M
Layers 6
Heads 6
Embedding dim 384
Context length 256
Vocab 50,257 (GPT-2 BPE via tiktoken)
Dropout 0.2

Dataset

Source roneneldan/TinyStories
Stories 2,119,719
Total tokens ~474M (train 426.6M / val 47.4M)
Tokens processed in training ~164M positions
Split 90% / 10%

Training

Hardware Kaggle GPU T4 Γ—2 (free tier)
Steps 19,999
Batch size 32
Optimizer AdamW (Ξ²1=0.9, Ξ²2=0.95)
LR 1e-3 with 500-step warmup + cosine decay
Gradient clipping 1.0

Results

Metric Value
Train loss 1.7690
Val loss (best) 1.7604
Perplexity 5.81
Train/val gap 0.0086

Example outputs

Prompt: Once upon a time

Once upon a time, there was a little girl named Lily. She loved to play outside in the sun. One day, she saw a big, scary dog in the park. The dog was very big and scary. Lily's mommy told her to be careful and stay away from the dog. … From that day on, Lily learned that sometimes it's okay to have something scary and that it's okay to ask for help when you need it.

Prompt: Lily went to the park and

Lily went to the park and saw a boy playing with a ball. She asked him if he wanted to play too. The boy said yes and they started to play together. …

Known limitations

  • Repetition in long generations (200+ tokens)
  • Factual inconsistency within a single story (e.g., "red ball" β†’ "blue ball")
  • No knowledge outside TinyStories (fails math, code, geography)
  • Character-level? No β€” uses GPT-2 BPE, but only learns the TinyStories distribution

Usage

import torch, tiktoken
from huggingface_hub import hf_hub_download, login
login()

# 1. Download checkpoint
ckpt = hf_hub_download("prashilmankar/aethel-gaze-TIA",
                       "tinystories_latest.pt")

# 2. Build model (see model.py in repo)
# model = AethelGazeTIA(50257)
# state = torch.load(ckpt, map_location="cpu")
# model.load_state_dict(state["model"])

# 3. Generate
enc = tiktoken.get_encoding("gpt2")
# ...
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

Dataset used to train prashilmankar/aethel-gaze-TIA