Upload folder using huggingface_hub
Browse files- .gitattributes +5 -0
- model_index.json +39 -0
- scheduler/scheduler_config.json +23 -0
- text_encoder/config.json +50 -0
- text_encoder/model.neuron +3 -0
- text_encoder_2/config.json +50 -0
- text_encoder_2/model.neuron +3 -0
- tokenizer/merges.txt +0 -0
- tokenizer/special_tokens_map.json +30 -0
- tokenizer/tokenizer_config.json +30 -0
- tokenizer/vocab.json +0 -0
- tokenizer_2/merges.txt +0 -0
- tokenizer_2/special_tokens_map.json +30 -0
- tokenizer_2/tokenizer_config.json +38 -0
- tokenizer_2/vocab.json +0 -0
- unet/config.json +115 -0
- unet/model.neuron +3 -0
- vae_decoder/config.json +71 -0
- vae_decoder/model.neuron +3 -0
- vae_encoder/config.json +71 -0
- vae_encoder/model.neuron +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
text_encoder/model.neuron filter=lfs diff=lfs merge=lfs -text
|
37 |
+
text_encoder_2/model.neuron filter=lfs diff=lfs merge=lfs -text
|
38 |
+
unet/model.neuron filter=lfs diff=lfs merge=lfs -text
|
39 |
+
vae_decoder/model.neuron filter=lfs diff=lfs merge=lfs -text
|
40 |
+
vae_encoder/model.neuron filter=lfs diff=lfs merge=lfs -text
|
model_index.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "NeuronStableDiffusionXLPipeline",
|
3 |
+
"_diffusers_version": "0.30.3",
|
4 |
+
"_name_or_path": "stabilityai/stable-diffusion-xl-base-1.0",
|
5 |
+
"force_zeros_for_empty_prompt": true,
|
6 |
+
"requires_aesthetics_score": false,
|
7 |
+
"scheduler": [
|
8 |
+
"diffusers",
|
9 |
+
"EulerDiscreteScheduler"
|
10 |
+
],
|
11 |
+
"text_encoder": [
|
12 |
+
"optimum",
|
13 |
+
"NeuronModelTextEncoder"
|
14 |
+
],
|
15 |
+
"text_encoder_2": [
|
16 |
+
"optimum",
|
17 |
+
"NeuronModelTextEncoder"
|
18 |
+
],
|
19 |
+
"tokenizer": [
|
20 |
+
"transformers",
|
21 |
+
"CLIPTokenizer"
|
22 |
+
],
|
23 |
+
"tokenizer_2": [
|
24 |
+
"transformers",
|
25 |
+
"CLIPTokenizer"
|
26 |
+
],
|
27 |
+
"unet": [
|
28 |
+
"optimum",
|
29 |
+
"NeuronModelUnet"
|
30 |
+
],
|
31 |
+
"vae_decoder": [
|
32 |
+
"optimum",
|
33 |
+
"NeuronModelVaeDecoder"
|
34 |
+
],
|
35 |
+
"vae_encoder": [
|
36 |
+
"optimum",
|
37 |
+
"NeuronModelVaeEncoder"
|
38 |
+
]
|
39 |
+
}
|
scheduler/scheduler_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "EulerDiscreteScheduler",
|
3 |
+
"_diffusers_version": "0.30.3",
|
4 |
+
"beta_end": 0.012,
|
5 |
+
"beta_schedule": "scaled_linear",
|
6 |
+
"beta_start": 0.00085,
|
7 |
+
"clip_sample": false,
|
8 |
+
"final_sigmas_type": "zero",
|
9 |
+
"interpolation_type": "linear",
|
10 |
+
"num_train_timesteps": 1000,
|
11 |
+
"prediction_type": "epsilon",
|
12 |
+
"rescale_betas_zero_snr": false,
|
13 |
+
"sample_max_value": 1.0,
|
14 |
+
"set_alpha_to_one": false,
|
15 |
+
"sigma_max": null,
|
16 |
+
"sigma_min": null,
|
17 |
+
"skip_prk_steps": true,
|
18 |
+
"steps_offset": 1,
|
19 |
+
"timestep_spacing": "leading",
|
20 |
+
"timestep_type": "discrete",
|
21 |
+
"trained_betas": null,
|
22 |
+
"use_karras_sigmas": false
|
23 |
+
}
|
text_encoder/config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--diffusers--stable-diffusion-xl-1.0-inpainting-0.1/snapshots/115134f363124c53c7d878647567d04daf26e41e/text_encoder",
|
3 |
+
"architectures": [
|
4 |
+
"CLIPTextModel"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"dropout": 0.0,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "quick_gelu",
|
11 |
+
"hidden_size": 768,
|
12 |
+
"initializer_factor": 1.0,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 3072,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 77,
|
17 |
+
"model_type": "clip_text_model",
|
18 |
+
"neuron": {
|
19 |
+
"auto_cast": "matmul",
|
20 |
+
"auto_cast_type": "bf16",
|
21 |
+
"compiler_type": "neuronx-cc",
|
22 |
+
"compiler_version": "2.15.128.0+56dc5a86",
|
23 |
+
"dynamic_batch_size": false,
|
24 |
+
"inline_weights_to_neff": true,
|
25 |
+
"input_names": [
|
26 |
+
"input_ids"
|
27 |
+
],
|
28 |
+
"model_type": "clip-text-model",
|
29 |
+
"optlevel": "2",
|
30 |
+
"output_attentions": false,
|
31 |
+
"output_hidden_states": false,
|
32 |
+
"output_names": [
|
33 |
+
"last_hidden_state",
|
34 |
+
"pooler_output",
|
35 |
+
"hidden_states"
|
36 |
+
],
|
37 |
+
"static_batch_size": 1,
|
38 |
+
"static_sequence_length": 77
|
39 |
+
},
|
40 |
+
"num_attention_heads": 12,
|
41 |
+
"num_hidden_layers": 12,
|
42 |
+
"output_hidden_states": true,
|
43 |
+
"pad_token_id": 1,
|
44 |
+
"projection_dim": 768,
|
45 |
+
"task": "feature-extraction",
|
46 |
+
"torch_dtype": "float16",
|
47 |
+
"torchscript": true,
|
48 |
+
"transformers_version": "4.43.2",
|
49 |
+
"vocab_size": 49408
|
50 |
+
}
|
text_encoder/model.neuron
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:394dd082d4d7276d2fb3e54eea74f45c438ec9c096a5b8f7fea3d015e8006ac5
|
3 |
+
size 375701239
|
text_encoder_2/config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--diffusers--stable-diffusion-xl-1.0-inpainting-0.1/snapshots/115134f363124c53c7d878647567d04daf26e41e/text_encoder_2",
|
3 |
+
"architectures": [
|
4 |
+
"CLIPTextModelWithProjection"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"dropout": 0.0,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_size": 1280,
|
12 |
+
"initializer_factor": 1.0,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 5120,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 77,
|
17 |
+
"model_type": "clip_text_model",
|
18 |
+
"neuron": {
|
19 |
+
"auto_cast": "matmul",
|
20 |
+
"auto_cast_type": "bf16",
|
21 |
+
"compiler_type": "neuronx-cc",
|
22 |
+
"compiler_version": "2.15.128.0+56dc5a86",
|
23 |
+
"dynamic_batch_size": false,
|
24 |
+
"inline_weights_to_neff": true,
|
25 |
+
"input_names": [
|
26 |
+
"input_ids"
|
27 |
+
],
|
28 |
+
"model_type": "clip-text-with-projection",
|
29 |
+
"optlevel": "2",
|
30 |
+
"output_attentions": false,
|
31 |
+
"output_hidden_states": false,
|
32 |
+
"output_names": [
|
33 |
+
"text_embeds",
|
34 |
+
"last_hidden_state",
|
35 |
+
"hidden_states"
|
36 |
+
],
|
37 |
+
"static_batch_size": 1,
|
38 |
+
"static_sequence_length": 77
|
39 |
+
},
|
40 |
+
"num_attention_heads": 20,
|
41 |
+
"num_hidden_layers": 32,
|
42 |
+
"output_hidden_states": true,
|
43 |
+
"pad_token_id": 1,
|
44 |
+
"projection_dim": 1280,
|
45 |
+
"task": "feature-extraction",
|
46 |
+
"torch_dtype": "float16",
|
47 |
+
"torchscript": true,
|
48 |
+
"transformers_version": "4.43.2",
|
49 |
+
"vocab_size": 49408
|
50 |
+
}
|
text_encoder_2/model.neuron
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:188ee35230b49c57cbca0a079570ecd5e573d221bca2a5aa2de1d7f3cfc361ff
|
3 |
+
size 1788577005
|
tokenizer/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer/special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|startoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<|endoftext|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<|endoftext|>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer/tokenizer_config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"49406": {
|
5 |
+
"content": "<|startoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"49407": {
|
13 |
+
"content": "<|endoftext|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
}
|
20 |
+
},
|
21 |
+
"bos_token": "<|startoftext|>",
|
22 |
+
"clean_up_tokenization_spaces": true,
|
23 |
+
"do_lower_case": true,
|
24 |
+
"eos_token": "<|endoftext|>",
|
25 |
+
"errors": "replace",
|
26 |
+
"model_max_length": 77,
|
27 |
+
"pad_token": "<|endoftext|>",
|
28 |
+
"tokenizer_class": "CLIPTokenizer",
|
29 |
+
"unk_token": "<|endoftext|>"
|
30 |
+
}
|
tokenizer/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_2/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_2/special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|startoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "!",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<|endoftext|>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer_2/tokenizer_config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"0": {
|
5 |
+
"content": "!",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"49406": {
|
13 |
+
"content": "<|startoftext|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"49407": {
|
21 |
+
"content": "<|endoftext|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"bos_token": "<|startoftext|>",
|
30 |
+
"clean_up_tokenization_spaces": true,
|
31 |
+
"do_lower_case": true,
|
32 |
+
"eos_token": "<|endoftext|>",
|
33 |
+
"errors": "replace",
|
34 |
+
"model_max_length": 77,
|
35 |
+
"pad_token": "!",
|
36 |
+
"tokenizer_class": "CLIPTokenizer",
|
37 |
+
"unk_token": "<|endoftext|>"
|
38 |
+
}
|
tokenizer_2/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
unet/config.json
ADDED
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "UNet2DConditionModel",
|
3 |
+
"_commit_hash": null,
|
4 |
+
"_diffusers_version": "0.30.3",
|
5 |
+
"_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--diffusers--stable-diffusion-xl-1.0-inpainting-0.1/snapshots/115134f363124c53c7d878647567d04daf26e41e/unet",
|
6 |
+
"_use_default_values": [
|
7 |
+
"reverse_transformer_layers_per_block",
|
8 |
+
"dropout"
|
9 |
+
],
|
10 |
+
"act_fn": "silu",
|
11 |
+
"addition_embed_type": "text_time",
|
12 |
+
"addition_embed_type_num_heads": 64,
|
13 |
+
"addition_time_embed_dim": 256,
|
14 |
+
"attention_head_dim": [
|
15 |
+
5,
|
16 |
+
10,
|
17 |
+
20
|
18 |
+
],
|
19 |
+
"attention_type": "default",
|
20 |
+
"block_out_channels": [
|
21 |
+
320,
|
22 |
+
640,
|
23 |
+
1280
|
24 |
+
],
|
25 |
+
"center_input_sample": false,
|
26 |
+
"class_embed_type": null,
|
27 |
+
"class_embeddings_concat": false,
|
28 |
+
"conv_in_kernel": 3,
|
29 |
+
"conv_out_kernel": 3,
|
30 |
+
"cross_attention_dim": 2048,
|
31 |
+
"cross_attention_norm": null,
|
32 |
+
"decay": 0.9999,
|
33 |
+
"down_block_types": [
|
34 |
+
"DownBlock2D",
|
35 |
+
"CrossAttnDownBlock2D",
|
36 |
+
"CrossAttnDownBlock2D"
|
37 |
+
],
|
38 |
+
"downsample_padding": 1,
|
39 |
+
"dropout": 0.0,
|
40 |
+
"dual_cross_attention": false,
|
41 |
+
"encoder_hid_dim": null,
|
42 |
+
"encoder_hid_dim_type": null,
|
43 |
+
"flip_sin_to_cos": true,
|
44 |
+
"freq_shift": 0,
|
45 |
+
"in_channels": 9,
|
46 |
+
"inv_gamma": 1.0,
|
47 |
+
"layers_per_block": 2,
|
48 |
+
"mid_block_only_cross_attention": null,
|
49 |
+
"mid_block_scale_factor": 1,
|
50 |
+
"mid_block_type": "UNetMidBlock2DCrossAttn",
|
51 |
+
"min_decay": 0.0,
|
52 |
+
"neuron": {
|
53 |
+
"auto_cast": "matmul",
|
54 |
+
"auto_cast_type": "bf16",
|
55 |
+
"compiler_type": "neuronx-cc",
|
56 |
+
"compiler_version": "2.15.128.0+56dc5a86",
|
57 |
+
"dynamic_batch_size": false,
|
58 |
+
"inline_weights_to_neff": true,
|
59 |
+
"input_names": [
|
60 |
+
"sample",
|
61 |
+
"timestep",
|
62 |
+
"encoder_hidden_states",
|
63 |
+
"text_embeds",
|
64 |
+
"time_ids"
|
65 |
+
],
|
66 |
+
"model_type": "unet",
|
67 |
+
"optlevel": "2",
|
68 |
+
"output_attentions": false,
|
69 |
+
"output_hidden_states": false,
|
70 |
+
"output_names": [
|
71 |
+
"sample"
|
72 |
+
],
|
73 |
+
"static_batch_size": 1,
|
74 |
+
"static_height": 128,
|
75 |
+
"static_num_channels": 9,
|
76 |
+
"static_sequence_length": 77,
|
77 |
+
"static_vae_scale_factor": 8,
|
78 |
+
"static_width": 128
|
79 |
+
},
|
80 |
+
"norm_eps": 1e-05,
|
81 |
+
"norm_num_groups": 32,
|
82 |
+
"num_attention_heads": null,
|
83 |
+
"num_class_embeds": null,
|
84 |
+
"only_cross_attention": false,
|
85 |
+
"optimization_step": 37000,
|
86 |
+
"out_channels": 4,
|
87 |
+
"power": 0.6666666666666666,
|
88 |
+
"projection_class_embeddings_input_dim": 2816,
|
89 |
+
"resnet_out_scale_factor": 1.0,
|
90 |
+
"resnet_skip_time_act": false,
|
91 |
+
"resnet_time_scale_shift": "default",
|
92 |
+
"reverse_transformer_layers_per_block": null,
|
93 |
+
"sample_size": 128,
|
94 |
+
"task": "semantic-segmentation",
|
95 |
+
"time_cond_proj_dim": null,
|
96 |
+
"time_embedding_act_fn": null,
|
97 |
+
"time_embedding_dim": null,
|
98 |
+
"time_embedding_type": "positional",
|
99 |
+
"timestep_post_act": null,
|
100 |
+
"transformer_layers_per_block": [
|
101 |
+
1,
|
102 |
+
2,
|
103 |
+
10
|
104 |
+
],
|
105 |
+
"transformers_version": null,
|
106 |
+
"up_block_types": [
|
107 |
+
"CrossAttnUpBlock2D",
|
108 |
+
"CrossAttnUpBlock2D",
|
109 |
+
"UpBlock2D"
|
110 |
+
],
|
111 |
+
"upcast_attention": null,
|
112 |
+
"update_after_step": 0,
|
113 |
+
"use_ema_warmup": false,
|
114 |
+
"use_linear_projection": true
|
115 |
+
}
|
unet/model.neuron
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:193aa133bac4b821b60faa698f88c8f7449185578a5a15e8f3f091d4c726b8db
|
3 |
+
size 4164144509
|
vae_decoder/config.json
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AutoencoderKL",
|
3 |
+
"_commit_hash": null,
|
4 |
+
"_diffusers_version": "0.30.3",
|
5 |
+
"_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--diffusers--stable-diffusion-xl-1.0-inpainting-0.1/snapshots/115134f363124c53c7d878647567d04daf26e41e/vae",
|
6 |
+
"_use_default_values": [
|
7 |
+
"latents_mean",
|
8 |
+
"use_post_quant_conv",
|
9 |
+
"shift_factor",
|
10 |
+
"mid_block_add_attention",
|
11 |
+
"latents_std",
|
12 |
+
"use_quant_conv"
|
13 |
+
],
|
14 |
+
"act_fn": "silu",
|
15 |
+
"block_out_channels": [
|
16 |
+
128,
|
17 |
+
256,
|
18 |
+
512,
|
19 |
+
512
|
20 |
+
],
|
21 |
+
"down_block_types": [
|
22 |
+
"DownEncoderBlock2D",
|
23 |
+
"DownEncoderBlock2D",
|
24 |
+
"DownEncoderBlock2D",
|
25 |
+
"DownEncoderBlock2D"
|
26 |
+
],
|
27 |
+
"force_upcast": false,
|
28 |
+
"in_channels": 3,
|
29 |
+
"latent_channels": 4,
|
30 |
+
"latents_mean": null,
|
31 |
+
"latents_std": null,
|
32 |
+
"layers_per_block": 2,
|
33 |
+
"mid_block_add_attention": true,
|
34 |
+
"neuron": {
|
35 |
+
"auto_cast": "matmul",
|
36 |
+
"auto_cast_type": "bf16",
|
37 |
+
"compiler_type": "neuronx-cc",
|
38 |
+
"compiler_version": "2.15.128.0+56dc5a86",
|
39 |
+
"dynamic_batch_size": false,
|
40 |
+
"inline_weights_to_neff": true,
|
41 |
+
"input_names": [
|
42 |
+
"latent_sample"
|
43 |
+
],
|
44 |
+
"model_type": "vae-decoder",
|
45 |
+
"optlevel": "2",
|
46 |
+
"output_attentions": false,
|
47 |
+
"output_hidden_states": false,
|
48 |
+
"output_names": [
|
49 |
+
"sample"
|
50 |
+
],
|
51 |
+
"static_batch_size": 1,
|
52 |
+
"static_height": 128,
|
53 |
+
"static_num_channels": 4,
|
54 |
+
"static_width": 128
|
55 |
+
},
|
56 |
+
"norm_num_groups": 32,
|
57 |
+
"out_channels": 3,
|
58 |
+
"sample_size": 512,
|
59 |
+
"scaling_factor": 0.13025,
|
60 |
+
"shift_factor": null,
|
61 |
+
"task": "semantic-segmentation",
|
62 |
+
"transformers_version": null,
|
63 |
+
"up_block_types": [
|
64 |
+
"UpDecoderBlock2D",
|
65 |
+
"UpDecoderBlock2D",
|
66 |
+
"UpDecoderBlock2D",
|
67 |
+
"UpDecoderBlock2D"
|
68 |
+
],
|
69 |
+
"use_post_quant_conv": true,
|
70 |
+
"use_quant_conv": true
|
71 |
+
}
|
vae_decoder/model.neuron
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ccee15917ef5d0a095c2eb8cfc83e7c351e8c97145b6d45aa41d7fe60c71f75e
|
3 |
+
size 647236211
|
vae_encoder/config.json
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "AutoencoderKL",
|
3 |
+
"_commit_hash": null,
|
4 |
+
"_diffusers_version": "0.30.3",
|
5 |
+
"_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--diffusers--stable-diffusion-xl-1.0-inpainting-0.1/snapshots/115134f363124c53c7d878647567d04daf26e41e/vae",
|
6 |
+
"_use_default_values": [
|
7 |
+
"latents_mean",
|
8 |
+
"use_post_quant_conv",
|
9 |
+
"shift_factor",
|
10 |
+
"mid_block_add_attention",
|
11 |
+
"latents_std",
|
12 |
+
"use_quant_conv"
|
13 |
+
],
|
14 |
+
"act_fn": "silu",
|
15 |
+
"block_out_channels": [
|
16 |
+
128,
|
17 |
+
256,
|
18 |
+
512,
|
19 |
+
512
|
20 |
+
],
|
21 |
+
"down_block_types": [
|
22 |
+
"DownEncoderBlock2D",
|
23 |
+
"DownEncoderBlock2D",
|
24 |
+
"DownEncoderBlock2D",
|
25 |
+
"DownEncoderBlock2D"
|
26 |
+
],
|
27 |
+
"force_upcast": false,
|
28 |
+
"in_channels": 3,
|
29 |
+
"latent_channels": 4,
|
30 |
+
"latents_mean": null,
|
31 |
+
"latents_std": null,
|
32 |
+
"layers_per_block": 2,
|
33 |
+
"mid_block_add_attention": true,
|
34 |
+
"neuron": {
|
35 |
+
"auto_cast": "matmul",
|
36 |
+
"auto_cast_type": "bf16",
|
37 |
+
"compiler_type": "neuronx-cc",
|
38 |
+
"compiler_version": "2.15.128.0+56dc5a86",
|
39 |
+
"dynamic_batch_size": false,
|
40 |
+
"inline_weights_to_neff": true,
|
41 |
+
"input_names": [
|
42 |
+
"sample"
|
43 |
+
],
|
44 |
+
"model_type": "vae-encoder",
|
45 |
+
"optlevel": "2",
|
46 |
+
"output_attentions": false,
|
47 |
+
"output_hidden_states": false,
|
48 |
+
"output_names": [
|
49 |
+
"latent_sample"
|
50 |
+
],
|
51 |
+
"static_batch_size": 1,
|
52 |
+
"static_height": 1024,
|
53 |
+
"static_num_channels": 3,
|
54 |
+
"static_width": 1024
|
55 |
+
},
|
56 |
+
"norm_num_groups": 32,
|
57 |
+
"out_channels": 3,
|
58 |
+
"sample_size": 512,
|
59 |
+
"scaling_factor": 0.13025,
|
60 |
+
"shift_factor": null,
|
61 |
+
"task": "semantic-segmentation",
|
62 |
+
"transformers_version": null,
|
63 |
+
"up_block_types": [
|
64 |
+
"UpDecoderBlock2D",
|
65 |
+
"UpDecoderBlock2D",
|
66 |
+
"UpDecoderBlock2D",
|
67 |
+
"UpDecoderBlock2D"
|
68 |
+
],
|
69 |
+
"use_post_quant_conv": true,
|
70 |
+
"use_quant_conv": true
|
71 |
+
}
|
vae_encoder/model.neuron
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6b37ea7650b0ed5caf2ec51cfddf50dcf3a0db6d88a680d56197ac1c1f62660
|
3 |
+
size 329304691
|