rom1504 commited on
Commit
0ee52be
1 Parent(s): 657dbd8

Upload decoder/1.5B_laion2B/decoder_config.json with huggingface_hub

Browse files
decoder/1.5B_laion2B/decoder_config.json ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seed": 1,
3
+
4
+ "decoder": {
5
+ "unets": [
6
+ {
7
+ "dim": 320,
8
+ "cond_dim": 512,
9
+ "image_embed_dim": 768,
10
+ "text_embed_dim": 768,
11
+ "cond_on_text_encodings": true,
12
+ "channels": 3,
13
+ "dim_mults": [1, 2, 3, 4],
14
+ "num_resnet_blocks": 4,
15
+ "attn_heads": 8,
16
+ "attn_dim_head": 64,
17
+ "sparse_attn": true,
18
+ "memory_efficient": true,
19
+ "self_attn": [false, true, true, true]
20
+ }
21
+ ],
22
+ "clip": {
23
+ "make": "openai",
24
+ "model": "ViT-L/14"
25
+ },
26
+ "image_sizes": [64],
27
+ "channels": 3,
28
+ "timesteps": 1000,
29
+ "loss_type": "l2",
30
+ "beta_schedule": ["cosine"],
31
+ "learned_variance": true
32
+ },
33
+ "data": {
34
+ "webdataset_base_url": "pipe:aws s3 cp --quiet s3://s-datasets/laion5b/laion2B-data/{}.tar -",
35
+ "num_workers": 12,
36
+ "batch_size": 26,
37
+ "start_shard": 0,
38
+ "end_shard": 231349,
39
+ "shard_width": 6,
40
+ "index_width": 4,
41
+ "splits": {
42
+ "train": 0.75,
43
+ "val": 0.15,
44
+ "test": 0.1
45
+ },
46
+ "shuffle_train": false,
47
+ "resample_train": true,
48
+ "preprocessing": {
49
+ "RandomResizedCrop": {
50
+ "size": [224, 224],
51
+ "scale": [0.75, 1.0],
52
+ "ratio": [1.0, 1.0]
53
+ },
54
+ "ToTensor": true
55
+ }
56
+ },
57
+ "train": {
58
+ "epochs": 1000,
59
+ "lr": 1e-4,
60
+ "wd": 0.01,
61
+ "max_grad_norm": 0.5,
62
+ "save_every_n_samples": 2000000,
63
+ "n_sample_images": 10,
64
+ "device": "cuda:0",
65
+ "epoch_samples": 10000000,
66
+ "validation_samples": 100000,
67
+ "use_ema": true,
68
+ "ema_beta": 0.99,
69
+ "save_all": false,
70
+ "save_latest": true,
71
+ "save_best": true,
72
+ "unet_training_mask": [true]
73
+ },
74
+ "evaluate": {
75
+ "n_evaluation_samples": 30,
76
+ "FID": {
77
+ "feature": 64
78
+ },
79
+ "LPIPS": {
80
+ "net_type": "vgg",
81
+ "reduction": "mean"
82
+ }
83
+ },
84
+ "tracker": {
85
+ "data_path": "/fsx/dalle2/.tracker-laion2B",
86
+ "overwrite_data_path": true,
87
+
88
+ "log": {
89
+ "log_type": "wandb",
90
+
91
+ "wandb_entity": "rom1504",
92
+ "wandb_project": "dalle2_train_decoder",
93
+ "wandb_resume": false,
94
+
95
+ "verbose": true
96
+ },
97
+
98
+ "load": {
99
+ "resume": true,
100
+ "load_from": "url",
101
+ "url": "https://huggingface.co/laion/DALLE2-PyTorch/resolve/main/decoder/1.5B/latest.pth"
102
+ },
103
+
104
+ "save": [{
105
+ "save_to": "wandb"
106
+ },
107
+ {
108
+ "save_to": "huggingface",
109
+ "huggingface_repo": "laion/DALLE2-PyTorch",
110
+ "save_meta_to": "decoder/1.5B_laion2B/",
111
+
112
+ "save_latest_to": "decoder/1.5B_laion2B/latest.pth",
113
+
114
+ "save_type": "model"
115
+ }]
116
+ }
117
+ }
118
+