Download scripts/selection.py from Ziruibest/jspace-unlearning: direct link, hf CLI and curl.
- Browser
- Download file 2.82 kB
-
https://huggingface.co/datasets/Ziruibest/jspace-unlearning/resolve/main/scripts/selection.py
- Command line
-
hf download hf://datasets/Ziruibest/jspace-unlearning/scripts/selection.py
-
curl -L -o selection.py https://huggingface.co/datasets/Ziruibest/jspace-unlearning/resolve/main/scripts/selection.py
2.82 kB
| """The H1 checkpoint subset: 6 hparam points per method, epoch10, spanning lr | |
| plus one secondary hparam axis. Default repro.md points included where present.""" | |
| PREFIX = "open-unlearning/unlearn_tofu_Llama-3.2-1B-Instruct_forget10_" | |
| SELECTED = [ | |
| # NPO (repro default: lr1e-05_beta0.1_alpha1) | |
| "NPO_lr1e-05_beta0.1_alpha1_epoch10", | |
| "NPO_lr2e-05_beta0.1_alpha1_epoch10", | |
| "NPO_lr5e-05_beta0.1_alpha1_epoch10", | |
| "NPO_lr2e-05_beta0.05_alpha1_epoch10", | |
| "NPO_lr2e-05_beta0.5_alpha1_epoch10", | |
| "NPO_lr5e-05_beta0.5_alpha2_epoch10", | |
| # AltPO | |
| "AltPO_lr1e-05_beta0.1_alpha1_epoch10", | |
| "AltPO_lr2e-05_beta0.1_alpha1_epoch10", | |
| "AltPO_lr5e-05_beta0.1_alpha1_epoch10", | |
| "AltPO_lr2e-05_beta0.05_alpha1_epoch10", | |
| "AltPO_lr2e-05_beta0.5_alpha1_epoch10", | |
| "AltPO_lr5e-05_beta0.5_alpha2_epoch10", | |
| # GradDiff (repro default: lr1e-05_alpha1) | |
| "GradDiff_lr1e-05_alpha1_epoch10", | |
| "GradDiff_lr2e-05_alpha1_epoch10", | |
| "GradDiff_lr5e-05_alpha1_epoch10", | |
| "GradDiff_lr3e-05_alpha5_epoch10", | |
| "GradDiff_lr5e-05_alpha5_epoch10", | |
| "GradDiff_lr5e-05_alpha10_epoch10", | |
| # SimNPO | |
| "SimNPO_lr1e-05_b3.5_a1_d1_g0.125_ep10", | |
| "SimNPO_lr2e-05_b3.5_a1_d1_g0.125_ep10", | |
| "SimNPO_lr5e-05_b3.5_a1_d1_g0.125_ep10", | |
| "SimNPO_lr2e-05_b4.5_a1_d1_g0.125_ep10", | |
| "SimNPO_lr2e-05_b3.5_a1_d0_g0.25_ep10", | |
| "SimNPO_lr5e-05_b4.5_a1_d0_g0.25_ep10", | |
| # RMU | |
| "RMU_lr1e-05_layer5_scoeff100_epoch10", | |
| "RMU_lr2e-05_layer5_scoeff100_epoch10", | |
| "RMU_lr5e-05_layer5_scoeff100_epoch10", | |
| "RMU_lr2e-05_layer10_scoeff100_epoch10", | |
| "RMU_lr2e-05_layer10_scoeff10_epoch10", | |
| "RMU_lr5e-05_layer15_scoeff100_epoch10", | |
| # UNDIAL | |
| "UNDIAL_lr1e-05_beta3_alpha1_epoch10", | |
| "UNDIAL_lr0.0001_beta3_alpha1_epoch10", | |
| "UNDIAL_lr0.0001_beta10_alpha1_epoch10", | |
| "UNDIAL_lr0.0003_beta10_alpha1_epoch10", | |
| "UNDIAL_lr0.0003_beta30_alpha1_epoch10", | |
| "UNDIAL_lr0.0001_beta30_alpha2_epoch10", | |
| # IdkDPO | |
| "IdkDPO_lr1e-05_beta0.1_alpha1_epoch10", | |
| "IdkDPO_lr2e-05_beta0.1_alpha1_epoch10", | |
| "IdkDPO_lr5e-05_beta0.1_alpha1_epoch10", | |
| "IdkDPO_lr2e-05_beta0.05_alpha1_epoch10", | |
| "IdkDPO_lr2e-05_beta0.5_alpha1_epoch10", | |
| "IdkDPO_lr5e-05_beta0.05_alpha2_epoch10", | |
| # IdkNLL | |
| "IdkNLL_lr1e-05_alpha1_epoch10", | |
| "IdkNLL_lr2e-05_alpha1_epoch10", | |
| "IdkNLL_lr5e-05_alpha1_epoch10", | |
| "IdkNLL_lr2e-05_alpha5_epoch10", | |
| "IdkNLL_lr5e-05_alpha5_epoch10", | |
| "IdkNLL_lr3e-05_alpha2_epoch10", | |
| ] | |
| if __name__ == "__main__": | |
| import json | |
| grid = set(json.load(open("/workspace/jspace-unlearning/results/grid_all_398.json"))) | |
| missing = [s for s in SELECTED if PREFIX + s not in grid] | |
| assert not missing, f"not in grid: {missing}" | |
| print(len(SELECTED), "selected, all present in grid") | |
| for s in SELECTED: | |
| print(PREFIX + s) | |