This is the codebase for the paper Stress-Testing Capability Elicitation With Password-Locked Models.
sandbagging/sandbagging_cache_c.sandbagging/all_train_ray.py, we recommend only executing some of the experiments (the total runtime is over 4000 GPU-hours);sandbagging/pb_splits_by_setting.py, and the code to evaluate wheather a given output is correct (depending on which task it is for) can be found in sandbagging/all_data.py;If you want precomputed runs, or a dump of the redis cache (which caches LLM calls), please contact the authors.
The code for the function composition experiments isn't present in this codebase, and will be released later.
Requirement: a linux machine with at least one 80GB GPU with cuda drivers.
pip install -r requirements.txt;REDIS_READER_PORT environment variable to the port it is running on;OPENAI_API_KEY environment variable to your OpenAI API key;python sandbagging/get_problems.py to generate the code generation data - the data for other experiments is precomputed and stored in sandbagging\sandbagging_cache_c;python sandbagging/all_train_ray.py, we recommend only executing some of the experiments (the total runtime is over 4000 GPU-hours) by removing certain parts of the script;python sandbagging/all_plot.py.This is the codebase for the paper Stress-Testing Capability Elicitation With Password-Locked Models.
sandbagging/sandbagging_cache_c.sandbagging/all_train_ray.py, we recommend only executing some of the experiments (the total runtime is over 4000 GPU-hours);sandbagging/pb_splits_by_setting.py, and the code to evaluate wheather a given output is correct (depending on which task it is for) can be found in sandbagging/all_data.py;If you want precomputed runs, or a dump of the redis cache (which caches LLM calls), please contact the authors.
The code for the function composition experiments isn't present in this codebase, and will be released later.
Requirement: a linux machine with at least one 80GB GPU with cuda drivers.
pip install -r requirements.txt;REDIS_READER_PORT environment variable to the port it is running on;OPENAI_API_KEY environment variable to your OpenAI API key;python sandbagging/get_problems.py to generate the code generation data - the data for other experiments is precomputed and stored in sandbagging\sandbagging_cache_c;python sandbagging/all_train_ray.py, we recommend only executing some of the experiments (the total runtime is over 4000 GPU-hours) by removing certain parts of the script;python sandbagging/all_plot.py.