Diffusers
Safetensors
StableDiffusionUpscalePipeline
stable-diffusion
patrickvonplaten commited on
Commit
a7b1e85
1 Parent(s): 91ecd52

Fix deprecated float16/fp16 variant loading through new `version` API.

Browse files

Hey stabilityai 👋,

Your model repository seems to contain a [`fp16` branch](https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler/tree/fp16) to load the model in float16 precision. Loading `fp16` versions from a branch instead of the main branch is deprecated and will eventually be forbidden. Instead, we strongly recommend to save `fp16` versions of the model under `.fp16.` version files directly on the 'main' branch as enabled through this PR.This PR makes sure that your model repository allows the user to correctly download float16 precision model weights by adding `fp16` model weights in both safetensors and PyTorch bin format:

```py
pipe = DiffusionPipeline.from_pretrained(stabilityai/stable-diffusion-x4-upscaler, torch_dtype=torch.float16, variant='fp16')
```

For more information please have a look at: https://huggingface.co/docs/diffusers/using-diffusers/loading#checkpoint-variants.
We made sure you that you can safely merge this pull request.

Best, the 🧨 Diffusers team.

text_encoder/model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668
3
+ size 680821096
text_encoder/pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bb11b1da63986aaaaefb5ef2100d34109c024ac640cacd9ed697150c1c57f01
3
+ size 680900852
unet/diffusion_pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36f27094ab4f113a2021540b85ce05f9ccf3f54f21a04f8be9a2497804a577f7
3
+ size 947082088
unet/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:473c61882010d657c0c3aa27f62ee85d4b8cd3b40a4877b19a05d05bb4df20bb
3
+ size 946878752
vae/diffusion_pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fac10c7b4287c0bffe5707905b28641f2093ce07f4a7a2cf7c037b485bf46ea3
3
+ size 110732111
vae/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68e6ec66e1d85ad6f5d017b1489626b36677522cdb568191ef9d5a2ee1df308d
3
+ size 110674374