File size: 1,952 Bytes
7dd3211 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # MaxGPT-Ultra - SHAKEDOWN (prototype) config (~124M params)
# An exact scaled-down replica of the 1B. Goal: validate the ENTIRE pipeline
# (arch, data, training, WSD, SFT, DPO, RAG, GUI, autosave, pause/play) in days,
# and measure real throughput on the 5070 before committing to the long run.
name: maxgpt-ultra-shakedown
model:
vocab_size: 49152 # ~49k byte-level BPE (digit-split + byte fallback)
d_model: 768
n_layers: 12
n_heads: 12
n_kv_heads: 4 # GQA
mlp: swiglu
mlp_hidden: 2048 # ~8/3 * d_model
norm: rmsnorm
pos: rope
rope_theta: 10000
qk_norm: true
tie_embeddings: true
seq_len: 1024
# ~113M parameters (measured by scripts/smoke_test.py)
train:
precision: auto # bf16 where the card has it, else fp16 + loss scaling
optimizer: adamw # 'muon' optional (see PLAN.md)
lr: 6.0e-4
betas: [0.9, 0.95]
weight_decay: 0.1
grad_clip: 1.0
schedule: wsd # warmup -> stable -> decay
warmup_tokens: 2.0e8
total_tokens: 5.0e9 # quick validation budget (hours-to-days)
decay_frac: 0.2 # last 20% of tokens decay the LR
z_loss: 1.0e-4
# Tuned for a 12GB card (RTX 5070). The killer at this vocab is the output
# logits tensor: micro_batch * seq_len * 49152, so keep micro_batch small and
# make up the effective batch with grad_accum. tokens/step stays 4*32*1024=131072,
# so the schedule and total_steps are unchanged from micro_batch 16 / accum 8.
micro_batch: 4 # was 16 (16*1024 logits over 49k vocab OOM'd the 5070)
grad_accum: 32 # was 8; keeps effective ~131k tokens/step at seq 1024
grad_checkpointing: true # was false; recompute activations in backward to save VRAM
optimizer_8bit: false
compile: true
compile_modes: [max-autotune-no-cudagraphs, default] # no CUDA graphs: they break the checkpointed chunked loss (see train/trainer.py)
io:
autosave_minutes: 10
keep_last_k: 3
keep_best: true
|