jburtoft commited on
Commit
2c261c9
1 Parent(s): 30d4b7e

86d4261d61a2204a879e99684f27b2ec2c942f4a73d05019a2caaade089a542c

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
model_index.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "NeuronStableDiffusionXLPipeline",
3
+ "_diffusers_version": "0.25.0",
4
+ "_name_or_path": "lykon-models/dreamshaper-xl-1-0",
5
+ "force_zeros_for_empty_prompt": true,
6
+ "scheduler": [
7
+ "diffusers",
8
+ "DEISMultistepScheduler"
9
+ ],
10
+ "text_encoder": [
11
+ "optimum",
12
+ "NeuronModelTextEncoder"
13
+ ],
14
+ "text_encoder_2": [
15
+ "optimum",
16
+ "NeuronModelTextEncoder"
17
+ ],
18
+ "tokenizer": [
19
+ "transformers",
20
+ "CLIPTokenizer"
21
+ ],
22
+ "tokenizer_2": [
23
+ "transformers",
24
+ "CLIPTokenizer"
25
+ ],
26
+ "unet": [
27
+ "optimum",
28
+ "NeuronModelUnet"
29
+ ],
30
+ "vae_decoder": [
31
+ "optimum",
32
+ "NeuronModelVaeDecoder"
33
+ ],
34
+ "vae_encoder": [
35
+ "optimum",
36
+ "NeuronModelVaeEncoder"
37
+ ]
38
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "DEISMultistepScheduler",
3
+ "_diffusers_version": "0.25.0",
4
+ "algorithm_type": "deis",
5
+ "beta_end": 0.012,
6
+ "beta_schedule": "scaled_linear",
7
+ "beta_start": 0.00085,
8
+ "clip_sample": false,
9
+ "dynamic_thresholding_ratio": 0.995,
10
+ "interpolation_type": "linear",
11
+ "lower_order_final": true,
12
+ "num_train_timesteps": 1000,
13
+ "prediction_type": "epsilon",
14
+ "sample_max_value": 1.0,
15
+ "set_alpha_to_one": false,
16
+ "skip_prk_steps": true,
17
+ "solver_order": 2,
18
+ "solver_type": "logrho",
19
+ "steps_offset": 1,
20
+ "thresholding": false,
21
+ "timestep_spacing": "leading",
22
+ "trained_betas": null,
23
+ "use_karras_sigmas": false
24
+ }
text_encoder/config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--Lykon--dreamshaper-xl-1-0/snapshots/41e6644752a8c9aa63930e6043c4fd83c7708420/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": "all",
20
+ "auto_cast_type": "bf16",
21
+ "compiler_type": "neuronx-cc",
22
+ "compiler_version": "2.12.68.0+4480452af",
23
+ "disable_fallback": false,
24
+ "disable_fast_relayout": false,
25
+ "dynamic_batch_size": false,
26
+ "input_names": [
27
+ "input_ids"
28
+ ],
29
+ "model_type": "clip-text-model",
30
+ "optlevel": "2",
31
+ "output_attentions": false,
32
+ "output_hidden_states": false,
33
+ "output_names": [
34
+ "last_hidden_state",
35
+ "pooler_output",
36
+ "hidden_states"
37
+ ],
38
+ "static_batch_size": 1,
39
+ "static_num_beams": 1,
40
+ "static_sequence_length": 77
41
+ },
42
+ "num_attention_heads": 12,
43
+ "num_hidden_layers": 12,
44
+ "output_hidden_states": true,
45
+ "pad_token_id": 1,
46
+ "projection_dim": 768,
47
+ "task": "feature-extraction",
48
+ "torch_dtype": "float16",
49
+ "torchscript": true,
50
+ "transformers_version": "4.36.2",
51
+ "vocab_size": 49408
52
+ }
text_encoder/model.neuron ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98750e8358b1864ea984f44170f1c06979234b67a53d4461b342a8626593b16d
3
+ size 375884546
text_encoder_2/config.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/home/ubuntu/.cache/huggingface/hub/models--Lykon--dreamshaper-xl-1-0/snapshots/41e6644752a8c9aa63930e6043c4fd83c7708420/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": "all",
20
+ "auto_cast_type": "bf16",
21
+ "compiler_type": "neuronx-cc",
22
+ "compiler_version": "2.12.68.0+4480452af",
23
+ "disable_fallback": false,
24
+ "disable_fast_relayout": false,
25
+ "dynamic_batch_size": false,
26
+ "input_names": [
27
+ "input_ids"
28
+ ],
29
+ "model_type": "clip-text-model",
30
+ "optlevel": "2",
31
+ "output_attentions": false,
32
+ "output_hidden_states": false,
33
+ "output_names": [
34
+ "text_embeds",
35
+ "last_hidden_state",
36
+ "hidden_states"
37
+ ],
38
+ "static_batch_size": 1,
39
+ "static_num_beams": 1,
40
+ "static_sequence_length": 77
41
+ },
42
+ "num_attention_heads": 20,
43
+ "num_hidden_layers": 32,
44
+ "output_hidden_states": true,
45
+ "pad_token_id": 1,
46
+ "projection_dim": 1280,
47
+ "task": "feature-extraction",
48
+ "torch_dtype": "float16",
49
+ "torchscript": true,
50
+ "transformers_version": "4.36.2",
51
+ "vocab_size": 49408
52
+ }