Veldrovive commited on
Commit
ce713a1
1 Parent(s): 76da67c

Upload decoder/3B_fp16/decoder_config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. decoder/3B_fp16/decoder_config.json +122 -0
decoder/3B_fp16/decoder_config.json ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seed": 1,
3
+
4
+ "decoder": {
5
+ "unets": [
6
+ {
7
+ "dim": 576,
8
+ "image_embed_dim": 768,
9
+ "text_embed_dim": 768,
10
+ "cond_on_text_encodings": false,
11
+ "channels": 3,
12
+ "dim_mults": [1, 2, 3, 4],
13
+ "self_attn": [false, true, true, true],
14
+ "num_resnet_blocks": 4,
15
+ "attn_heads": 16,
16
+ "attn_dim_head": 64,
17
+ "sparse_attn": false,
18
+ "memory_efficient": true
19
+ }
20
+ ],
21
+ "image_sizes": [64],
22
+ "channels": 3,
23
+ "timesteps": 1000,
24
+ "loss_type": "l2",
25
+ "beta_schedule": ["cosine"],
26
+ "learned_variance": false
27
+ },
28
+ "data": {
29
+ "webdataset_base_url": "pipe:aws s3 cp --quiet s3://s-datasets/laion-aesthetic/data/laion2B-en-aesthetic/{}.tar -",
30
+ "img_embeddings_url": "s3://s-datasets/laion-aesthetic/ordered_embeddings/",
31
+ "num_workers": 6,
32
+ "batch_size": 40,
33
+ "start_shard": 0,
34
+ "end_shard": 5247,
35
+ "shard_width": 5,
36
+ "index_width": 4,
37
+ "splits": {
38
+ "train": 0.75,
39
+ "val": 0.15,
40
+ "test": 0.1
41
+ },
42
+ "shuffle_train": false,
43
+ "resample_train": true,
44
+ "preprocessing": {
45
+ "RandomResizedCrop": {
46
+ "size": [224, 224],
47
+ "scale": [0.75, 1.0],
48
+ "ratio": [1.0, 1.0]
49
+ },
50
+ "ToTensor": true
51
+ }
52
+ },
53
+ "train": {
54
+ "epochs": 1000,
55
+ "lr":1.2e-4,
56
+ "wd": 0.0,
57
+ "warmup_steps": 1000,
58
+ "max_grad_norm": 0.5,
59
+ "save_every_n_samples": 1500000,
60
+ "n_sample_images": 10,
61
+ "device": "cuda:0",
62
+ "epoch_samples": 3000000,
63
+ "validation_samples": 100000,
64
+ "use_ema": true,
65
+ "ema_beta": 0.9999,
66
+ "unet_training_mask": [true],
67
+ "find_unused_parameters": false
68
+ },
69
+ "evaluate": {
70
+ "n_evaluation_samples": 10,
71
+ "FID": {
72
+ "feature": 64
73
+ },
74
+ "LPIPS": {
75
+ "net_type": "vgg",
76
+ "reduction": "mean"
77
+ }
78
+ },
79
+ "tracker": {
80
+ "data_path": "/fsx/aidan/new/multinode/experiments/deepspeed_fp16/.tracker-data",
81
+ "overwrite_data_path": true,
82
+
83
+ "log": {
84
+ "log_type": "wandb",
85
+
86
+ "wandb_entity": "Veldrovive",
87
+ "wandb_project": "dalle2_train_decoder",
88
+ "wandb_run_name": "3B deepspeed fp16",
89
+
90
+ "auto_resume": true,
91
+ "verbose": true
92
+ },
93
+
94
+ "load": {
95
+ "load_from": "local",
96
+ "only_auto_resume": true,
97
+ "file_path": "/fsx/aidan/new/multinode/experiments/deepspeed_fp16/models/checkpoints/latest.pth"
98
+ },
99
+
100
+ "save": [{
101
+ "save_to": "huggingface",
102
+ "huggingface_repo": "laion/DALLE2-PyTorch",
103
+
104
+ "save_meta_to": "decoder/3B_fp16/",
105
+ "save_latest_to": "decoder/3B_fp16/latest.pth",
106
+
107
+ "save_type": "model"
108
+ },{
109
+ "save_to": "huggingface",
110
+ "huggingface_repo": "laion/DALLE2-PyTorch",
111
+
112
+ "save_latest_to": "decoder/3B_fp16/checkpoints/latest.pth",
113
+
114
+ "save_type": "checkpoint"
115
+ },{
116
+ "save_to": "local",
117
+ "save_latest_to": "/fsx/aidan/new/multinode/experiments/deepspeed_fp16/models/checkpoints/latest.pth",
118
+
119
+ "save_type": "checkpoint"
120
+ }]
121
+ }
122
+ }