#!/bin/bash # ============================================================================= # gradient_ascent_generate.sh — generate a full caption under bathroom-steering # at one layer, for a sweep of alphas (induction +α and suppression −α), on the # base or LoRA model. Reads off whether "toilet" appears in the generated text. # # New steering method (matches gradient_ascent.py): h' = h + ALPHA*‖h‖*v, so ALPHA # is a FRACTION of the per-position residual norm (comparable across layers). v = # unit bathroom-ascent vector from the 4variant probe gradient. NEGATIVE ALPHA # suppresses. Probe stays the (base+lora-trained) 4variant checkpoint. # # Tunables (override inline, e.g. VARIANT=lora STEER_LAYER=20 bash