cadentj/caft

25

stars

17

commits

Python

primary language

Mar 30, 2026

updated

cadentj.github.io/caft/

README

Concept Ablation Fine Tuning

Project page: https://cadentj.github.io/caft/

Section 4: Controlling Emergent Misalignment

CommandDescription
python -m emergent_misalignment.training.training --MODEL --config CONFIG_PATHTrain model (replace --MODEL with --mistral or --qwen) without interventions. Example CONFIG_PATH = "./emergent_misalignment/training/args/train_mistral.json"
python -m emergent_misalignment.finding_features.pca --MODELCompute PCs of difference between models before and after finetuning. Use --lora_weights_path for add finetuned model path.
python -m emergent_misalignment.visualize.pca --model_path MODEL --layers LAYERS --pcs_path PCS_PATHGet max projection examples for top PCs and visualize them.
python -m emergent_misalignment.training.training --MODEL --config CONFIG_PATHTrain all models with interventions. Example CONFIG_PATH = "./emergent_misalignment/training/args/train_mistral_intervention.json". Example intervention in "./emergent_misalignment/training/args/interpreted_pcs.json".

[SAE code needs testing and likely has some bugs.]

CommandDescription
python -m emergent_misalignment.finding_features.saesCompute feature displays

Section 5: Reducing Sensitivity to Spurious Cues

[This section is still a work in progress and might have some bugs.]

CommandDescription
python -m spurious_correlations.finding_features.saesCompute feature displays
python -m spurious_correlations.training.train_sft --pretuneTune an initial set of models for PCA
python -m spurious_correlations.finding_features.pcaCompute feature displays (run after pretune)
python -m spurious_correlations.training.train_sft --allTrain all models with interventions

Contributors

cadentj

7 commits

cadentj/caft

25

stars

17

commits

Python

primary language

Mar 30, 2026

updated

cadentj.github.io/caft/

README

Concept Ablation Fine Tuning

Project page: https://cadentj.github.io/caft/

Section 4: Controlling Emergent Misalignment

CommandDescription
python -m emergent_misalignment.training.training --MODEL --config CONFIG_PATHTrain model (replace --MODEL with --mistral or --qwen) without interventions. Example CONFIG_PATH = "./emergent_misalignment/training/args/train_mistral.json"
python -m emergent_misalignment.finding_features.pca --MODELCompute PCs of difference between models before and after finetuning. Use --lora_weights_path for add finetuned model path.
python -m emergent_misalignment.visualize.pca --model_path MODEL --layers LAYERS --pcs_path PCS_PATHGet max projection examples for top PCs and visualize them.
python -m emergent_misalignment.training.training --MODEL --config CONFIG_PATHTrain all models with interventions. Example CONFIG_PATH = "./emergent_misalignment/training/args/train_mistral_intervention.json". Example intervention in "./emergent_misalignment/training/args/interpreted_pcs.json".

[SAE code needs testing and likely has some bugs.]

CommandDescription
python -m emergent_misalignment.finding_features.saesCompute feature displays

Section 5: Reducing Sensitivity to Spurious Cues

[This section is still a work in progress and might have some bugs.]

CommandDescription
python -m spurious_correlations.finding_features.saesCompute feature displays
python -m spurious_correlations.training.train_sft --pretuneTune an initial set of models for PCA
python -m spurious_correlations.finding_features.pcaCompute feature displays (run after pretune)
python -m spurious_correlations.training.train_sft --allTrain all models with interventions

Contributors

cadentj

7 commits

Languages

Python

98.6%

Jinja

1.4%