Views
No views yet
.
├── broad_steering.py # Experiment 1: broad steering (Section 2.1, 3.1)
├── multi_steering.py # Experiment 2: multi-steering (Section 2.2, 3.2)
├── run_experiments.py # End-to-end runner for both experiments
├── test_pipeline_small.py # Quick CPU test with GPT-2
└── README.mdpip install torch transformers datasets numpy tqdmpython test_pipeline_small.pypython run_experiments.py --model meta-llama/Llama-2-7b-chat-hf --experiment allpython run_experiments.py --experiment broadpython run_experiments.py --experiment multipython run_experiments.py --test./results/:broad_steering_results.json — relative coding/text accuracy per layer and coefficientmulti_steering_results.json — individual, combined, and simultaneous steering scoressteering_vectors/ — saved numpy arrays of steering vectors1@article{vanderweij2024extending,
2 title={Extending Activation Steering to Broad Skills and Multiple Behaviours},
3 author={van der Weij, Teun and Poesio, Massimo and Schoots, Nandi},
4 journal={arXiv preprint arXiv:2403.05767},
5 year={2024}
6}