add bf16 weights for flax, remove pt weights
Browse files- model_index.json +5 -5
- safety_checker/config.json +11 -3
- text_encoder/pytorch_model.bin β safety_checker/flax_model.msgpack +2 -2
- text_encoder/config.json +1 -1
- vae/diffusion_pytorch_model.bin β text_encoder/flax_model.msgpack +2 -2
- unet/config.json +3 -9
- safety_checker/pytorch_model.bin β unet/diffusion_flax_model.msgpack +2 -2
- vae/config.json +3 -2
- unet/diffusion_pytorch_model.bin β vae/diffusion_flax_model.msgpack +2 -2
model_index.json
CHANGED
@@ -7,15 +7,15 @@
|
|
7 |
],
|
8 |
"safety_checker": [
|
9 |
"stable_diffusion",
|
10 |
-
"
|
11 |
],
|
12 |
"scheduler": [
|
13 |
"diffusers",
|
14 |
-
"
|
15 |
],
|
16 |
"text_encoder": [
|
17 |
"transformers",
|
18 |
-
"
|
19 |
],
|
20 |
"tokenizer": [
|
21 |
"transformers",
|
@@ -23,10 +23,10 @@
|
|
23 |
],
|
24 |
"unet": [
|
25 |
"diffusers",
|
26 |
-
"
|
27 |
],
|
28 |
"vae": [
|
29 |
"diffusers",
|
30 |
-
"
|
31 |
]
|
32 |
}
|
|
|
7 |
],
|
8 |
"safety_checker": [
|
9 |
"stable_diffusion",
|
10 |
+
"FlaxStableDiffusionSafetyChecker"
|
11 |
],
|
12 |
"scheduler": [
|
13 |
"diffusers",
|
14 |
+
"FlaxPNDMScheduler"
|
15 |
],
|
16 |
"text_encoder": [
|
17 |
"transformers",
|
18 |
+
"FlaxCLIPTextModel"
|
19 |
],
|
20 |
"tokenizer": [
|
21 |
"transformers",
|
|
|
23 |
],
|
24 |
"unet": [
|
25 |
"diffusers",
|
26 |
+
"FlaxUNet2DConditionModel"
|
27 |
],
|
28 |
"vae": [
|
29 |
"diffusers",
|
30 |
+
"FlaxAutoencoderKL"
|
31 |
]
|
32 |
}
|
safety_checker/config.json
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
{
|
2 |
-
"
|
|
|
3 |
"architectures": [
|
4 |
"StableDiffusionSafetyChecker"
|
5 |
],
|
@@ -13,6 +14,7 @@
|
|
13 |
"architectures": null,
|
14 |
"attention_dropout": 0.0,
|
15 |
"bad_words_ids": null,
|
|
|
16 |
"bos_token_id": 0,
|
17 |
"chunk_size_feed_forward": 0,
|
18 |
"cross_attention_hidden_size": null,
|
@@ -66,8 +68,10 @@
|
|
66 |
"return_dict": true,
|
67 |
"return_dict_in_generate": false,
|
68 |
"sep_token_id": null,
|
|
|
69 |
"task_specific_params": null,
|
70 |
"temperature": 1.0,
|
|
|
71 |
"tie_encoder_decoder": false,
|
72 |
"tie_word_embeddings": true,
|
73 |
"tokenizer_class": null,
|
@@ -75,7 +79,7 @@
|
|
75 |
"top_p": 1.0,
|
76 |
"torch_dtype": null,
|
77 |
"torchscript": false,
|
78 |
-
"transformers_version": "4.
|
79 |
"typical_p": 1.0,
|
80 |
"use_bfloat16": false,
|
81 |
"vocab_size": 49408
|
@@ -94,6 +98,7 @@
|
|
94 |
"architectures": null,
|
95 |
"attention_dropout": 0.0,
|
96 |
"bad_words_ids": null,
|
|
|
97 |
"bos_token_id": null,
|
98 |
"chunk_size_feed_forward": 0,
|
99 |
"cross_attention_hidden_size": null,
|
@@ -133,6 +138,7 @@
|
|
133 |
"num_attention_heads": 16,
|
134 |
"num_beam_groups": 1,
|
135 |
"num_beams": 1,
|
|
|
136 |
"num_hidden_layers": 24,
|
137 |
"num_return_sequences": 1,
|
138 |
"output_attentions": false,
|
@@ -148,8 +154,10 @@
|
|
148 |
"return_dict": true,
|
149 |
"return_dict_in_generate": false,
|
150 |
"sep_token_id": null,
|
|
|
151 |
"task_specific_params": null,
|
152 |
"temperature": 1.0,
|
|
|
153 |
"tie_encoder_decoder": false,
|
154 |
"tie_word_embeddings": true,
|
155 |
"tokenizer_class": null,
|
@@ -157,7 +165,7 @@
|
|
157 |
"top_p": 1.0,
|
158 |
"torch_dtype": null,
|
159 |
"torchscript": false,
|
160 |
-
"transformers_version": "4.
|
161 |
"typical_p": 1.0,
|
162 |
"use_bfloat16": false
|
163 |
},
|
|
|
1 |
{
|
2 |
+
"_commit_hash": null,
|
3 |
+
"_name_or_path": "fusing/sd-v1-4",
|
4 |
"architectures": [
|
5 |
"StableDiffusionSafetyChecker"
|
6 |
],
|
|
|
14 |
"architectures": null,
|
15 |
"attention_dropout": 0.0,
|
16 |
"bad_words_ids": null,
|
17 |
+
"begin_suppress_tokens": null,
|
18 |
"bos_token_id": 0,
|
19 |
"chunk_size_feed_forward": 0,
|
20 |
"cross_attention_hidden_size": null,
|
|
|
68 |
"return_dict": true,
|
69 |
"return_dict_in_generate": false,
|
70 |
"sep_token_id": null,
|
71 |
+
"suppress_tokens": null,
|
72 |
"task_specific_params": null,
|
73 |
"temperature": 1.0,
|
74 |
+
"tf_legacy_loss": false,
|
75 |
"tie_encoder_decoder": false,
|
76 |
"tie_word_embeddings": true,
|
77 |
"tokenizer_class": null,
|
|
|
79 |
"top_p": 1.0,
|
80 |
"torch_dtype": null,
|
81 |
"torchscript": false,
|
82 |
+
"transformers_version": "4.23.1",
|
83 |
"typical_p": 1.0,
|
84 |
"use_bfloat16": false,
|
85 |
"vocab_size": 49408
|
|
|
98 |
"architectures": null,
|
99 |
"attention_dropout": 0.0,
|
100 |
"bad_words_ids": null,
|
101 |
+
"begin_suppress_tokens": null,
|
102 |
"bos_token_id": null,
|
103 |
"chunk_size_feed_forward": 0,
|
104 |
"cross_attention_hidden_size": null,
|
|
|
138 |
"num_attention_heads": 16,
|
139 |
"num_beam_groups": 1,
|
140 |
"num_beams": 1,
|
141 |
+
"num_channels": 3,
|
142 |
"num_hidden_layers": 24,
|
143 |
"num_return_sequences": 1,
|
144 |
"output_attentions": false,
|
|
|
154 |
"return_dict": true,
|
155 |
"return_dict_in_generate": false,
|
156 |
"sep_token_id": null,
|
157 |
+
"suppress_tokens": null,
|
158 |
"task_specific_params": null,
|
159 |
"temperature": 1.0,
|
160 |
+
"tf_legacy_loss": false,
|
161 |
"tie_encoder_decoder": false,
|
162 |
"tie_word_embeddings": true,
|
163 |
"tokenizer_class": null,
|
|
|
165 |
"top_p": 1.0,
|
166 |
"torch_dtype": null,
|
167 |
"torchscript": false,
|
168 |
+
"transformers_version": "4.23.1",
|
169 |
"typical_p": 1.0,
|
170 |
"use_bfloat16": false
|
171 |
},
|
text_encoder/pytorch_model.bin β safety_checker/flax_model.msgpack
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1810a63be161ad95baecafae311c5d5cd8264ac0e2a357226d63240710759299
|
3 |
+
size 607977215
|
text_encoder/config.json
CHANGED
@@ -19,6 +19,6 @@
|
|
19 |
"num_hidden_layers": 12,
|
20 |
"pad_token_id": 1,
|
21 |
"torch_dtype": "float32",
|
22 |
-
"transformers_version": "4.
|
23 |
"vocab_size": 49408
|
24 |
}
|
|
|
19 |
"num_hidden_layers": 12,
|
20 |
"pad_token_id": 1,
|
21 |
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.23.1",
|
23 |
"vocab_size": 49408
|
24 |
}
|
vae/diffusion_pytorch_model.bin β text_encoder/flax_model.msgpack
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:38aca8345bad31819530d6291463fe6b38b07275ae38065f774b30e7a8e07d64
|
3 |
+
size 246127918
|
unet/config.json
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
{
|
2 |
-
"_class_name": "
|
3 |
-
"_diffusers_version": "0.
|
4 |
-
"act_fn": "silu",
|
5 |
"attention_head_dim": 8,
|
6 |
"block_out_channels": [
|
7 |
320,
|
@@ -9,7 +8,6 @@
|
|
9 |
1280,
|
10 |
1280
|
11 |
],
|
12 |
-
"center_input_sample": false,
|
13 |
"cross_attention_dim": 768,
|
14 |
"down_block_types": [
|
15 |
"CrossAttnDownBlock2D",
|
@@ -17,14 +15,10 @@
|
|
17 |
"CrossAttnDownBlock2D",
|
18 |
"DownBlock2D"
|
19 |
],
|
20 |
-
"
|
21 |
-
"flip_sin_to_cos": true,
|
22 |
"freq_shift": 0,
|
23 |
"in_channels": 4,
|
24 |
"layers_per_block": 2,
|
25 |
-
"mid_block_scale_factor": 1,
|
26 |
-
"norm_eps": 1e-05,
|
27 |
-
"norm_num_groups": 32,
|
28 |
"out_channels": 4,
|
29 |
"sample_size": 64,
|
30 |
"up_block_types": [
|
|
|
1 |
{
|
2 |
+
"_class_name": "FlaxUNet2DConditionModel",
|
3 |
+
"_diffusers_version": "0.5.0.dev0",
|
|
|
4 |
"attention_head_dim": 8,
|
5 |
"block_out_channels": [
|
6 |
320,
|
|
|
8 |
1280,
|
9 |
1280
|
10 |
],
|
|
|
11 |
"cross_attention_dim": 768,
|
12 |
"down_block_types": [
|
13 |
"CrossAttnDownBlock2D",
|
|
|
15 |
"CrossAttnDownBlock2D",
|
16 |
"DownBlock2D"
|
17 |
],
|
18 |
+
"dropout": 0.0,
|
|
|
19 |
"freq_shift": 0,
|
20 |
"in_channels": 4,
|
21 |
"layers_per_block": 2,
|
|
|
|
|
|
|
22 |
"out_channels": 4,
|
23 |
"sample_size": 64,
|
24 |
"up_block_types": [
|
safety_checker/pytorch_model.bin β unet/diffusion_flax_model.msgpack
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:24fe3c11852cd27f6825387902e79ee044977b59654ae845ed99c795dc499a41
|
3 |
+
size 1719067125
|
vae/config.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
-
"_class_name": "
|
3 |
-
"_diffusers_version": "0.
|
4 |
"act_fn": "silu",
|
5 |
"block_out_channels": [
|
6 |
128,
|
@@ -17,6 +17,7 @@
|
|
17 |
"in_channels": 3,
|
18 |
"latent_channels": 4,
|
19 |
"layers_per_block": 2,
|
|
|
20 |
"out_channels": 3,
|
21 |
"sample_size": 512,
|
22 |
"up_block_types": [
|
|
|
1 |
{
|
2 |
+
"_class_name": "FlaxAutoencoderKL",
|
3 |
+
"_diffusers_version": "0.5.0.dev0",
|
4 |
"act_fn": "silu",
|
5 |
"block_out_channels": [
|
6 |
128,
|
|
|
17 |
"in_channels": 3,
|
18 |
"latent_channels": 4,
|
19 |
"layers_per_block": 2,
|
20 |
+
"norm_num_groups": 32,
|
21 |
"out_channels": 3,
|
22 |
"sample_size": 512,
|
23 |
"up_block_types": [
|
unet/diffusion_pytorch_model.bin β vae/diffusion_flax_model.msgpack
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e3e81680c6669960f086eca278c8a1f89dd2ed7eadef806e049b56e426c1809
|
3 |
+
size 167316369
|