Jingya HF staff commited on
Commit
3434f22
1 Parent(s): 04b9a1e
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. unet/config.json +129 -0
  3. unet/model.neuron +3 -0
.gitattributes CHANGED
@@ -36,3 +36,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
36
  text_encoder/model.neuron filter=lfs diff=lfs merge=lfs -text
37
  vae_encoder/model.neuron filter=lfs diff=lfs merge=lfs -text
38
  vae_decoder/model.neuron filter=lfs diff=lfs merge=lfs -text
 
 
36
  text_encoder/model.neuron filter=lfs diff=lfs merge=lfs -text
37
  vae_encoder/model.neuron filter=lfs diff=lfs merge=lfs -text
38
  vae_decoder/model.neuron filter=lfs diff=lfs merge=lfs -text
39
+ unet/model.neuron filter=lfs diff=lfs merge=lfs -text
unet/config.json ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "UNet2DConditionModel",
3
+ "_commit_hash": null,
4
+ "_diffusers_version": "0.25.0",
5
+ "_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--runwayml--stable-diffusion-inpainting/snapshots/51388a731f57604945fddd703ecb5c50e8e7b49d/unet",
6
+ "_use_default_values": [
7
+ "attention_type",
8
+ "class_embeddings_concat",
9
+ "transformer_layers_per_block",
10
+ "addition_embed_type",
11
+ "conv_in_kernel",
12
+ "dropout",
13
+ "mid_block_only_cross_attention",
14
+ "time_embedding_dim",
15
+ "dual_cross_attention",
16
+ "projection_class_embeddings_input_dim",
17
+ "time_embedding_type",
18
+ "timestep_post_act",
19
+ "resnet_out_scale_factor",
20
+ "addition_time_embed_dim",
21
+ "encoder_hid_dim",
22
+ "use_linear_projection",
23
+ "num_class_embeds",
24
+ "encoder_hid_dim_type",
25
+ "conv_out_kernel",
26
+ "class_embed_type",
27
+ "upcast_attention",
28
+ "resnet_time_scale_shift",
29
+ "only_cross_attention",
30
+ "time_cond_proj_dim",
31
+ "reverse_transformer_layers_per_block",
32
+ "num_attention_heads",
33
+ "time_embedding_act_fn",
34
+ "mid_block_type",
35
+ "cross_attention_norm",
36
+ "addition_embed_type_num_heads",
37
+ "resnet_skip_time_act"
38
+ ],
39
+ "act_fn": "silu",
40
+ "addition_embed_type": null,
41
+ "addition_embed_type_num_heads": 64,
42
+ "addition_time_embed_dim": null,
43
+ "attention_head_dim": 8,
44
+ "attention_type": "default",
45
+ "block_out_channels": [
46
+ 320,
47
+ 640,
48
+ 1280,
49
+ 1280
50
+ ],
51
+ "center_input_sample": false,
52
+ "class_embed_type": null,
53
+ "class_embeddings_concat": false,
54
+ "conv_in_kernel": 3,
55
+ "conv_out_kernel": 3,
56
+ "cross_attention_dim": 768,
57
+ "cross_attention_norm": null,
58
+ "down_block_types": [
59
+ "CrossAttnDownBlock2D",
60
+ "CrossAttnDownBlock2D",
61
+ "CrossAttnDownBlock2D",
62
+ "DownBlock2D"
63
+ ],
64
+ "downsample_padding": 1,
65
+ "dropout": 0.0,
66
+ "dual_cross_attention": false,
67
+ "encoder_hid_dim": null,
68
+ "encoder_hid_dim_type": null,
69
+ "flip_sin_to_cos": true,
70
+ "freq_shift": 0,
71
+ "in_channels": 9,
72
+ "layers_per_block": 2,
73
+ "mid_block_only_cross_attention": null,
74
+ "mid_block_scale_factor": 1,
75
+ "mid_block_type": "UNetMidBlock2DCrossAttn",
76
+ "neuron": {
77
+ "auto_cast": "matmul",
78
+ "auto_cast_type": "bf16",
79
+ "compiler_type": "neuronx-cc",
80
+ "compiler_version": "2.12.68.0+4480452af",
81
+ "dynamic_batch_size": false,
82
+ "input_names": [
83
+ "sample",
84
+ "timestep",
85
+ "encoder_hidden_states"
86
+ ],
87
+ "model_type": "unet",
88
+ "optlevel": "2",
89
+ "output_attentions": false,
90
+ "output_hidden_states": false,
91
+ "output_names": [
92
+ "sample"
93
+ ],
94
+ "static_batch_size": 1,
95
+ "static_height": 128,
96
+ "static_num_beams": 1,
97
+ "static_num_channels": 9,
98
+ "static_sequence_length": 77,
99
+ "static_width": 128
100
+ },
101
+ "norm_eps": 1e-05,
102
+ "norm_num_groups": 32,
103
+ "num_attention_heads": null,
104
+ "num_class_embeds": null,
105
+ "only_cross_attention": false,
106
+ "out_channels": 4,
107
+ "projection_class_embeddings_input_dim": null,
108
+ "resnet_out_scale_factor": 1.0,
109
+ "resnet_skip_time_act": false,
110
+ "resnet_time_scale_shift": "default",
111
+ "reverse_transformer_layers_per_block": null,
112
+ "sample_size": 64,
113
+ "task": "semantic-segmentation",
114
+ "time_cond_proj_dim": null,
115
+ "time_embedding_act_fn": null,
116
+ "time_embedding_dim": null,
117
+ "time_embedding_type": "positional",
118
+ "timestep_post_act": null,
119
+ "transformer_layers_per_block": 1,
120
+ "transformers_version": null,
121
+ "up_block_types": [
122
+ "UpBlock2D",
123
+ "CrossAttnUpBlock2D",
124
+ "CrossAttnUpBlock2D",
125
+ "CrossAttnUpBlock2D"
126
+ ],
127
+ "upcast_attention": false,
128
+ "use_linear_projection": false
129
+ }
unet/model.neuron ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ac16f8d13ae9239307cb2c6af37015c4f80070a85cfc8b00ae4209fae9748c1
3
+ size 2701327800