#!/bin/bash # Arm E: identical images and model as Arm C, but the text side is collapsed to # 4 shared templates ("a {colour} car"). Diagnosis being tested: with unique # captions the colour word is redundant (the sentence already identifies the # image), so the model memorises instead of learning the attribute. Make the # prompt shared and the attribute becomes the only informative token. set -e cd /home/lhj/projects/tiny-gpt/mm PY=/home/lhj/projects/tiny-gpt/.venv/bin/python echo "=== train Arm E (shared short prompts, 45M) ===" $PY train.py \ --data ../data_mm_car_s/train.bin --val_data ../data_mm_car_s/val.bin --row_len 128 \ --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_e 2>&1 | grep -Ev '^\s*$' echo "=== probe Arm E ===" $PY probe_simple.py --ckpt out_car_e/ckpt.pt --label armE 2>&1 | tail -14 echo "=== ARM E DONE ==="