BAAI
/

valhalla commited on
Commit
709b709
1 Parent(s): 9488afa

fp16 weights

Browse files
safety_checker/config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
- "_commit_hash": "4bb648a606ef040e7685bde262611766a5fdd67b",
3
- "_name_or_path": "CompVis/stable-diffusion-safety-checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
6
  ],
@@ -79,7 +79,7 @@
79
  "top_p": 1.0,
80
  "torch_dtype": null,
81
  "torchscript": false,
82
- "transformers_version": "4.24.0.dev0",
83
  "typical_p": 1.0,
84
  "use_bfloat16": false,
85
  "vocab_size": 49408
@@ -90,7 +90,7 @@
90
  "num_attention_heads": 12,
91
  "num_hidden_layers": 12
92
  },
93
- "torch_dtype": "float32",
94
  "transformers_version": null,
95
  "vision_config": {
96
  "_name_or_path": "",
@@ -165,7 +165,7 @@
165
  "top_p": 1.0,
166
  "torch_dtype": null,
167
  "torchscript": false,
168
- "transformers_version": "4.24.0.dev0",
169
  "typical_p": 1.0,
170
  "use_bfloat16": false
171
  },
 
1
  {
2
+ "_commit_hash": null,
3
+ "_name_or_path": "./AltDiffusion/safety_checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
6
  ],
 
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
 
90
  "num_attention_heads": 12,
91
  "num_hidden_layers": 12
92
  },
93
+ "torch_dtype": "float16",
94
  "transformers_version": null,
95
  "vision_config": {
96
  "_name_or_path": "",
 
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
  },
safety_checker/pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7cebe6408f67beaf5e2272c4a90244472c7c54bba28dd27a21ec8b4b98f5bcd9
3
- size 1216071332
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70b4ace4d3096de0a0c6d3574377bbaa17c6338daa9c728ea32f9cfd80a8907c
3
+ size 608101569
scheduler/scheduler_config.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "_class_name": "PNDMScheduler",
3
- "_diffusers_version": "0.6.0",
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
 
7
  "num_train_timesteps": 1000,
8
  "set_alpha_to_one": false,
9
  "skip_prk_steps": true,
10
  "steps_offset": 1,
11
- "trained_betas": null,
12
- "clip_sample": false
13
  }
 
1
  {
2
  "_class_name": "PNDMScheduler",
3
+ "_diffusers_version": "0.8.0.dev0",
4
  "beta_end": 0.012,
5
  "beta_schedule": "scaled_linear",
6
  "beta_start": 0.00085,
7
+ "clip_sample": false,
8
  "num_train_timesteps": 1000,
9
  "set_alpha_to_one": false,
10
  "skip_prk_steps": true,
11
  "steps_offset": 1,
12
+ "trained_betas": null
 
13
  }
text_encoder/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "../test/text_encoder",
3
  "architectures": [
4
  "RobertaSeriesModelWithTransformation"
5
  ],
@@ -23,8 +23,8 @@
23
  "pooler_fn": "cls",
24
  "position_embedding_type": "absolute",
25
  "project_dim": 768,
26
- "torch_dtype": "float32",
27
- "transformers_version": "4.24.0.dev0",
28
  "type_vocab_size": 1,
29
  "use_attention_mask": true,
30
  "use_cache": true,
 
1
  {
2
+ "_name_or_path": "./AltDiffusion/text_encoder",
3
  "architectures": [
4
  "RobertaSeriesModelWithTransformation"
5
  ],
 
23
  "pooler_fn": "cls",
24
  "position_embedding_type": "absolute",
25
  "project_dim": 768,
26
+ "torch_dtype": "float16",
27
+ "transformers_version": "4.23.1",
28
  "type_vocab_size": 1,
29
  "use_attention_mask": true,
30
  "use_cache": true,
text_encoder/pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6f7e5b6bef6737f75d01705be1d59295f5c9d84c10b9715a1610160fb646245d
3
- size 2242851593
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca6def2aab8425a75e78318298e715bcd6ba8366646b0778bd1a1ddc9661ca4a
3
+ size 1121489845
tokenizer/tokenizer_config.json CHANGED
@@ -11,7 +11,7 @@
11
  "single_word": false
12
  },
13
  "model_max_length": 77,
14
- "name_or_path": "../test/tokenizer",
15
  "pad_token": "<pad>",
16
  "sep_token": "</s>",
17
  "sp_model_kwargs": {},
 
11
  "single_word": false
12
  },
13
  "model_max_length": 77,
14
+ "name_or_path": "./AltDiffusion/tokenizer",
15
  "pad_token": "<pad>",
16
  "sep_token": "</s>",
17
  "sp_model_kwargs": {},
unet/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.8.0.dev0",
4
- "_name_or_path": "../test/unet",
5
  "act_fn": "silu",
6
  "attention_head_dim": 8,
7
  "block_out_channels": [
 
1
  {
2
  "_class_name": "UNet2DConditionModel",
3
  "_diffusers_version": "0.8.0.dev0",
4
+ "_name_or_path": "./AltDiffusion/unet",
5
  "act_fn": "silu",
6
  "attention_head_dim": 8,
7
  "block_out_channels": [
unet/diffusion_pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ff603f7757f3efde7e92bac8d667e40c4c742634bee84bf906f3a2ff2a99b46
3
- size 3438370637
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bac854229d5b1b459eb5dfd0ca88827d943abfa82c095aec4ba232f94d378db4
3
+ size 1719324453
vae/config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.8.0.dev0",
4
- "_name_or_path": "../test/vae",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
 
1
  {
2
  "_class_name": "AutoencoderKL",
3
  "_diffusers_version": "0.8.0.dev0",
4
+ "_name_or_path": "./AltDiffusion/vae",
5
  "act_fn": "silu",
6
  "block_out_channels": [
7
  128,
vae/diffusion_pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c8b4d738e8f8ecefacb7ace7e5bc25a4a7fec79606197183892e46cbb304a227
3
- size 334713511
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6e817ec7c5c6641c0000a1a7fc7893f6625251131f33f7bb034c55e5d949455
3
+ size 167404145