feat(exp): 四个 Arm 的实验编排与基准脚本
同一模型、同一批 5184 张图、同样 100 epoch,只换监督信号: - Arm C: VLM 重描述(唯一长 caption) - Arm D: 同 C 数据,模型缩到 13.4M(5.1M 非嵌入) - Arm E: prompt 压成 4 个共享模板 - Arm F: 颜色 + 车身两级模板 结果:C/D 颜色词被忽略(码一致率 0.75 / 0.60), E 降到 0.000 且色相 3/4 命中,F 在 20 格交叉积上只剩 1 列稳定。 bench_strata: strata(Qwen3.8)视觉描述的延迟与吞吐基准,1.06 s/img。 compare_gen: 多检查点批量出图对比。pdl.sh: 分片下载辅助。
This commit is contained in:
1 parent
5d2d3a2fb5
commit
9e29277715
7 files changed
+307
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/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 ==="
|
||||
Reference in new issue
Block a user