<feed xmlns='http://www.w3.org/2005/Atom'>
<title>faeval.git/experiments/train_vit_dfa_save_checkpoint.py, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.blackhao.com/faeval.git/'/>
<entry>
<title>Add ViT-Mini DFA training script that saves checkpoint + Bs</title>
<updated>2026-04-08T04:10:56+00:00</updated>
<author>
<name>YurenHao0426</name>
<email>Blackhao0426@gmail.com</email>
</author>
<published>2026-04-08T04:10:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.blackhao.com/faeval.git/commit/?id=89fff0048c04bdc4c8beb6d11f8d5564d75cbb0c'/>
<id>89fff0048c04bdc4c8beb6d11f8d5564d75cbb0c</id>
<content type='text'>
The existing snapshot_evolution_vit.py and vit_frozen_blocks_baseline.py
do not save model checkpoints — they only emit per-epoch JSON logs. This
makes it impossible to apply the diagnostic protocol to a trained ViT
post-hoc, since the protocol needs an actual model object.

This script trains a 4-block d=128 ViT-Mini with block-level DFA on
CIFAR-10 (same training rule as snapshot_evolution_vit.py) for 60 epochs
and saves:
  - the final state_dict
  - the random feedback Bs (so the protocol can also verify bug 4 on
    this checkpoint)
  - test_acc and config

Output: results/vit_dfa_checkpoints/dfa_vit_s{seed}.pt
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The existing snapshot_evolution_vit.py and vit_frozen_blocks_baseline.py
do not save model checkpoints — they only emit per-epoch JSON logs. This
makes it impossible to apply the diagnostic protocol to a trained ViT
post-hoc, since the protocol needs an actual model object.

This script trains a 4-block d=128 ViT-Mini with block-level DFA on
CIFAR-10 (same training rule as snapshot_evolution_vit.py) for 60 epochs
and saves:
  - the final state_dict
  - the random feedback Bs (so the protocol can also verify bug 4 on
    this checkpoint)
  - test_acc and config

Output: results/vit_dfa_checkpoints/dfa_vit_s{seed}.pt
</pre>
</div>
</content>
</entry>
</feed>
