#!/bin/bash # Arm D: same 5,184 VLM captions, same iters, but a much smaller model. # Hypothesis: the 45M model memorised the dataset (val image-token acc 0.002) # and therefore encodes "car -> that exact image" instead of the colour attribute. # If capacity is the binding constraint, a ~5M non-embedding model must generalise. set -e cd /home/lhj/projects/tiny-gpt/mm PY=/home/lhj/projects/tiny-gpt/.venv/bin/python echo "=== train Arm D (small) ===" $PY train.py \ --data ../data_mm_car_q/train.bin --val_data ../data_mm_car_q/val.bin --row_len 128 \ --n_layer 4 --n_embd 256 --n_head 8 --n_kv_head 4 \ --ngram_vocab 65536 --ngram_dim 32 \ --batch_size 64 --grad_accum 2 \ --max_iters 4050 --warmup 100 \ --eval_interval 405 --eval_iters 20 \ --log_interval 405 --save_interval 0 \ --mtp 0 --out_dir out_car_d 2>&1 | grep -Ev '^\s*$' echo "=== probe Arm D ===" $PY probe_ctrl.py --ckpt out_car_d/ckpt.pt --label armD 2>&1 | tail -10 echo "=== ARM D DONE ==="