Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Config objects #30

Merged
merged 27 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
460ff9b
Export AnomalyDetector
ejnnr Feb 28, 2024
dbae3bf
Make tasks more flexible
ejnnr Feb 29, 2024
f16b9ca
Iterating on tasks
ejnnr Feb 29, 2024
9073a85
Mostly fix tests
ejnnr Feb 29, 2024
54c34a6
[WIP] Remove configs
ejnnr Mar 1, 2024
51e6a25
Remove unused DatasetConfigs
ejnnr Mar 1, 2024
48f8292
Rename task file
ejnnr Mar 1, 2024
79b51ec
WIP on removing ScriptConfig and TrainConfig
ejnnr Mar 2, 2024
bdd56fb
Remove backdoor loading/storing logic
ejnnr Mar 2, 2024
62e618a
Remove TrainConfig
ejnnr Mar 2, 2024
94c54ed
Adjust abstractions
ejnnr Mar 2, 2024
4c7e0c2
Remove loggers
ejnnr Mar 3, 2024
6809a7e
Fix bugs and tests
ejnnr Mar 3, 2024
6f0e472
Move save_path and max_batch_size arguments
ejnnr Mar 3, 2024
ae98812
Remove another unused file
ejnnr Mar 3, 2024
31a7993
Remove more unused code
ejnnr Mar 3, 2024
f0dacc5
Minor improvements and remove TODOs
ejnnr Mar 3, 2024
0267bd1
Fix demo notebook
ejnnr Mar 3, 2024
975289e
Add WaNet warning
ejnnr Mar 3, 2024
1b82635
Update gitignore
ejnnr Mar 3, 2024
35220aa
Update documentation somewhat
ejnnr Mar 3, 2024
f9ab02b
Remove simple_parsing dependency
ejnnr Mar 3, 2024
80463e2
Merge remote-tracking branch 'origin/main' into no-configs
ejnnr Mar 4, 2024
d61c676
Adjust tampering/LM code to no-config style
ejnnr Mar 4, 2024
565f456
Add convenience method to clone WanetBackdoor instance
VRehnberg Mar 4, 2024
2c1b38c
Minor changes to WaNet cloning
ejnnr Mar 4, 2024
f7e9300
Merge pull request #34 from VRehnberg/wanet-partial-clone-method
ejnnr Mar 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
.python-version
__pycache__
/data
/results
/slurm
/notebooks/data
/logs
.venv
/notebooks/logs
/slurm
/notebooks/slurm
/.venv
/wandb
/notebooks/wandb
/dist
/build
/misc
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ installing `cupbearer`, in particular if you want to control CUDA version etc.

## Running experiments
We provide scripts in `cupbearer.scripts` for more easily running experiments.
See [demo.ipynb](demo.ipynb) for a quick example of how to use them---this is likely
See [the demo notebook](notebooks/simple_demo.ipynb) for a quick example of how to use them---this is likely
also the best way to get an overview of how the components of `cupbearer` fit together.

These "scripts" are Python functions and designed to be used from within Python,
e.g. in a Jupyter notebook or via [submitit](https://github.com/facebookincubator/submitit/tree/main)
if on Slurm. But of course you could also write a simple Python wrapper and then use
them from the CLI. Their configuration interface is designed to be very general,
them from the CLI. The scripts are designed to be pretty general,
which sometimes comes at the cost of being a bit verbose---we recommend writing helper
functions for your specific use case on top of the general script interface.
Of course you can also use the components of `cupbearer` directly without going through
Expand Down
Loading