patrickvonplaten commited on
Commit
6b654cb
1 Parent(s): 6d149bf

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-2/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-2, 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:e735856ef6303a2dbd257bce026ebded5a5c5de352be01976a67881f8de20b6a
3
+ size 1732107093
unet/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69f9bdb05d0473bcb4ced3bffcef2b9775c9dcd4e2e39e6146bdeaece68a2f74
3
+ size 1731904736
vae/diffusion_pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44915add42092106e70bffac475aae4283b5e8167a8a0c5f55ccc667ee4ebeb5
3
+ size 167405651
vae/diffusion_pytorch_model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e4c08995484ee61270175e9e7a072b66a6e4eeb5f0c266667fe1f45b90daf9a
3
+ size 167335342