-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from iamgroot42/michael/exp_changes
Update to NE code
- Loading branch information
Showing
25 changed files
with
734 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"base_model": "EleutherAI/gpt-neo-125m", | ||
"dataset_member": "the_pile", | ||
"dataset_nonmember": "the_pile", | ||
"min_words": 100, | ||
"max_words": 200, | ||
"max_tokens": 512, | ||
"max_data": 100000, | ||
"output_name": "unified_mia", | ||
"specific_source": "Github", | ||
"n_samples": 1000, | ||
"blackbox_attacks": ["loss", "ref", "min_k"], | ||
"ref_config": { | ||
"models": [ | ||
"stabilityai/stablelm-base-alpha-3b-v2" | ||
] | ||
}, | ||
"neighborhood_config": { | ||
"model": "bert", | ||
"n_perturbation_list": [ | ||
25 | ||
], | ||
"pct_words_masked": 0.3, | ||
"span_length": 2, | ||
"dump_cache": false, | ||
"load_from_cache": true | ||
}, | ||
"env_config": { | ||
"results": "results_new", | ||
"device_map": "balanced_low_0" | ||
}, | ||
"dump_cache": false, | ||
"load_from_cache": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#!/bin/bash | ||
# Ideally, run after caching data with cache_data.json | ||
for subset in "full_pile" #"wikimia" "arxiv_2021_01" "arxiv_2021_06" "arxiv_2022_01" "arxiv_2022_06" "arxiv_2023_01" "arxiv_2023_06" "c4" | ||
for subset in "arxiv_2020-08" "arxiv_2021-01" "arxiv_2021-06" "arxiv_2022-01" "arxiv_2022-06" "arxiv_2023-01" "arxiv_2023-06" #"temporal_wiki_full" #"wikimia" "c4" | ||
do | ||
echo generating neighbors for $subset | ||
python run.py \ | ||
--config configs/neighbor_gen_new.json \ | ||
--specific_source $subset \ | ||
--max_data 10000 \ | ||
--n_samples 10000 | ||
--specific_source $subset | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
python parse_results.py \ | ||
/gscratch/h2lab/micdun/mimir/results_new/mia_unified_mia_v5_ne/*/* \ | ||
--output mia_unified_mia_v5_ne_results.json | ||
/gscratch/h2lab/micdun/mimir/results_new/mia_unified_mia_v5_temporal_arxiv_v2/*/* \ | ||
--output mia_unified_mia_v5_temporal_arxiv_v2_results.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.