royrin commited on
Commit
6bb558e
·
verified ·
1 Parent(s): 188cd5b

update README

Browse files
Files changed (1) hide show
  1. README.md +59 -3
README.md CHANGED
@@ -1,3 +1,59 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ # Structure of Data
6
+
7
+ The overal structure is as follows:
8
+ ```
9
+ full_models
10
+ ├── CIFAR10
11
+ ├── CIFAR10_augmented
12
+ └── LIVING17
13
+ oracles
14
+ └── CIFAR10
15
+ ├── forget_set_1
16
+ ├── forget_set_2
17
+ ├── forget_set_3
18
+ ├── forget_set_4
19
+ ├── forget_set_5
20
+ ├── forget_set_6
21
+ ├── forget_set_7
22
+ ├── forget_set_8
23
+ ├── forget_set_9
24
+ └── forget_set_10
25
+ ```
26
+ Each folder has
27
+
28
+ * train_logits_##.pt - logits at the end of training for model `##` for validation points
29
+ * val_logits_##.pt - logits at the end of training for model `##` for train points
30
+ * `##__val_margins_#.npy` - margins of model `##` at epoch `#` (this is derived from logits)
31
+ * `sd_##____epoch_#.pt` - model `##` checkpoint at epoch `#`
32
+
33
+
34
+ # How to download
35
+
36
+
37
+
38
+ Create script `download_folder.sh`
39
+
40
+ ```
41
+ #!/bin/bash
42
+ REPO_URL=https://huggingface.co/datasets/royrin/KLOM-models
43
+ TARGET_DIR=KLOM-models # name it what you wish
44
+ FOLDER=$1 # e.g., "oracles/CIFAR10/forget_set_3"
45
+
46
+ mkdir -p $TARGET_DIR
47
+
48
+ git clone --filter=blob:none --no-checkout $REPO_URL $TARGET_DIR
49
+ cd $TARGET_DIR
50
+ git sparse-checkout init --cone
51
+ git sparse-checkout set $FOLDER
52
+ git checkout main
53
+ ```
54
+
55
+ Example how to run script:
56
+ ```
57
+ bash download_folder.sh oracles/CIFAR10/forget_set_3
58
+ ```
59
+