pressoholic commited on
Commit
b27aac1
1 Parent(s): 7e4d7ca

Upload config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +28 -106
config.json CHANGED
@@ -1,77 +1,21 @@
1
  {
2
- "_class_name": "UNet2DConditionModel",
3
- "_commit_hash": null,
4
- "_diffusers_version": "0.21.0.dev0",
5
- "_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--stabilityai--stable-diffusion-2-1-base/snapshots/5ede9e4bf3e3fd1cb0ef2f7a3fff13ee514fdf06/unet",
6
- "_use_default_values": [
7
- "conv_in_kernel",
8
- "mid_block_type",
9
- "projection_class_embeddings_input_dim",
10
- "cross_attention_norm",
11
- "addition_time_embed_dim",
12
- "addition_embed_type_num_heads",
13
- "class_embed_type",
14
- "mid_block_only_cross_attention",
15
- "encoder_hid_dim",
16
- "resnet_out_scale_factor",
17
- "time_cond_proj_dim",
18
- "conv_out_kernel",
19
- "attention_type",
20
- "resnet_skip_time_act",
21
- "transformer_layers_per_block",
22
- "time_embedding_type",
23
- "time_embedding_act_fn",
24
- "addition_embed_type",
25
- "encoder_hid_dim_type",
26
- "class_embeddings_concat",
27
- "upcast_attention",
28
- "num_attention_heads",
29
- "resnet_time_scale_shift",
30
- "timestep_post_act",
31
- "time_embedding_dim"
32
  ],
33
- "act_fn": "silu",
34
- "addition_embed_type": null,
35
- "addition_embed_type_num_heads": 64,
36
- "addition_time_embed_dim": null,
37
- "attention_head_dim": [
38
- 5,
39
- 10,
40
- 20,
41
- 20
42
- ],
43
- "attention_type": "default",
44
- "block_out_channels": [
45
- 320,
46
- 640,
47
- 1280,
48
- 1280
49
- ],
50
- "center_input_sample": false,
51
- "class_embed_type": null,
52
- "class_embeddings_concat": false,
53
- "conv_in_kernel": 3,
54
- "conv_out_kernel": 3,
55
- "cross_attention_dim": 1024,
56
- "cross_attention_norm": null,
57
- "down_block_types": [
58
- "CrossAttnDownBlock2D",
59
- "CrossAttnDownBlock2D",
60
- "CrossAttnDownBlock2D",
61
- "DownBlock2D"
62
- ],
63
- "downsample_padding": 1,
64
- "dual_cross_attention": false,
65
- "encoder_hid_dim": null,
66
- "encoder_hid_dim_type": null,
67
- "flip_sin_to_cos": true,
68
- "freq_shift": 0,
69
- "in_channels": 4,
70
- "layers_per_block": 2,
71
- "mid_block_only_cross_attention": null,
72
- "mid_block_scale_factor": 1,
73
- "mid_block_type": "UNetMidBlock2DCrossAttn",
74
- "model_type": "unet",
75
  "neuron": {
76
  "auto_cast": null,
77
  "auto_cast_type": null,
@@ -79,43 +23,21 @@
79
  "compiler_version": "2.8.0.25+a3ad0f342",
80
  "dynamic_batch_size": false,
81
  "input_names": [
82
- "sample",
83
- "timestep",
84
- "encoder_hidden_states"
85
  ],
86
  "output_names": [
87
- "sample"
 
88
  ],
89
  "static_batch_size": 1,
90
- "static_height": 64,
91
- "static_num_channels": 4,
92
- "static_sequence_length": 77,
93
- "static_width": 64
94
  },
95
- "norm_eps": 1e-05,
96
- "norm_num_groups": 32,
97
- "num_attention_heads": null,
98
- "num_class_embeds": null,
99
- "only_cross_attention": false,
100
- "out_channels": 4,
101
- "projection_class_embeddings_input_dim": null,
102
- "resnet_out_scale_factor": 1.0,
103
- "resnet_skip_time_act": false,
104
- "resnet_time_scale_shift": "default",
105
- "sample_size": 64,
106
- "time_cond_proj_dim": null,
107
- "time_embedding_act_fn": null,
108
- "time_embedding_dim": null,
109
- "time_embedding_type": "positional",
110
- "timestep_post_act": null,
111
- "transformer_layers_per_block": 1,
112
- "transformers_version": null,
113
- "up_block_types": [
114
- "UpBlock2D",
115
- "CrossAttnUpBlock2D",
116
- "CrossAttnUpBlock2D",
117
- "CrossAttnUpBlock2D"
118
- ],
119
- "upcast_attention": false,
120
- "use_linear_projection": true
121
  }
 
1
  {
2
+ "_commit_hash": "5ede9e4bf3e3fd1cb0ef2f7a3fff13ee514fdf06",
3
+ "_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--stabilityai--stable-diffusion-2-1-base/snapshots/5ede9e4bf3e3fd1cb0ef2f7a3fff13ee514fdf06/text_encoder",
4
+ "architectures": [
5
+ "CLIPTextModel"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  ],
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 0,
9
+ "dropout": 0.0,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_size": 1024,
13
+ "initializer_factor": 1.0,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4096,
16
+ "layer_norm_eps": 1e-05,
17
+ "max_position_embeddings": 77,
18
+ "model_type": "clip-text-model",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  "neuron": {
20
  "auto_cast": null,
21
  "auto_cast_type": null,
 
23
  "compiler_version": "2.8.0.25+a3ad0f342",
24
  "dynamic_batch_size": false,
25
  "input_names": [
26
+ "input_ids"
 
 
27
  ],
28
  "output_names": [
29
+ "text_embeds",
30
+ "last_hidden_state"
31
  ],
32
  "static_batch_size": 1,
33
+ "static_sequence_length": 77
 
 
 
34
  },
35
+ "num_attention_heads": 16,
36
+ "num_hidden_layers": 23,
37
+ "pad_token_id": 1,
38
+ "projection_dim": 512,
39
+ "torch_dtype": "float32",
40
+ "torchscript": true,
41
+ "transformers_version": "4.25.0.dev0",
42
+ "vocab_size": 49408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  }