Create config,json
Browse files- config,json +38 -0
config,json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model_type": "text_to_image",
|
3 |
+
"text_encoder": {
|
4 |
+
"model_type": "gpt2",
|
5 |
+
"vocab_size": 50257,
|
6 |
+
"n_positions": 1024,
|
7 |
+
"n_embd": 768,
|
8 |
+
"n_layer": 12,
|
9 |
+
"n_head": 12,
|
10 |
+
"activation_function": "gelu_new",
|
11 |
+
"layer_norm_epsilon": 1e-5,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"bos_token_id": 50256,
|
14 |
+
"eos_token_id": 50256,
|
15 |
+
"pad_token_id": 50256,
|
16 |
+
"transformers_version": "4.0.0"
|
17 |
+
},
|
18 |
+
"image_decoder": {
|
19 |
+
"model_type": "vae",
|
20 |
+
"image_size": 256,
|
21 |
+
"latent_dim": 1024,
|
22 |
+
"n_channels": 3,
|
23 |
+
"hidden_dims": [64, 128, 256, 512],
|
24 |
+
"beta": 4.0,
|
25 |
+
"gamma": 1000,
|
26 |
+
"max_capacity": 25,
|
27 |
+
"Capacity_max_iter": 100000,
|
28 |
+
"loss_type": "BCE"
|
29 |
+
},
|
30 |
+
"training": {
|
31 |
+
"learning_rate": 0.0001,
|
32 |
+
"batch_size": 32,
|
33 |
+
"num_epochs": 100,
|
34 |
+
"gradient_accumulation_steps": 1,
|
35 |
+
"fp16": true,
|
36 |
+
"device": "cuda"
|
37 |
+
}
|
38 |
+
}
|