tiny-8mb-chat / README.md
devilloots's picture
Upload Tiny8MB chat model (3.87M params, RMSNorm+SwiGLU+GQA, 53.5s on 2x T4)
55dabcc verified
|
Raw History Blame Contribute Delete
815 Bytes
metadata
license: mit
tags:
  - text-generation
  - tiny-llm
  - from-scratch
  - gqa
  - swiglu
library_name: pytorch

Tiny8MB Chat

A 3.87M-parameter modern decoder-only Transformer (~9.85 MB .pt checkpoint in FP16), trained from scratch on 2x Tesla T4 GPUs in 53.5 seconds.

Architecture

  • Params: 3,868,928 (weight-tied embeddings)
  • Design: RMSNorm + SwiGLU + Grouped-Query Attention (8 Q heads / 2 KV heads) + RoPE
  • Layers / Dim: 4 layers, d_model=256, mlp_dim=704, block_size=192
  • Tokenizer: 4,096-token BPE (bpe_4096.json)

Training Summary

  • Stage 1 (Mixed Pre-training): 6.91M tokens (TinyStories + Alpaca Q&A), 480 steps in 30.7s (final loss 2.655)
  • Stage 2 (Gentle SFT + Context Recall): 11,358 examples, 350 steps in 21.0s (final loss 2.390)