-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/iamgroot42/mimir
- Loading branch information
Showing
26 changed files
with
907 additions
and
480 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 |
Oops, something went wrong.