patrickvonplaten commited on
Commit
06e3548
1 Parent(s): b03a1ad

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

Browse files

Hey hakurei 👋,

Your model repository seems to contain a [`fp16` branch](https://huggingface.co/hakurei/waifu-diffusion/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(hakurei/waifu-diffusion, 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.

.gitattributes CHANGED
@@ -37,3 +37,7 @@ text_encoder/model.safetensors filter=lfs diff=lfs merge=lfs -text
37
  unet/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
38
  vae/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
39
  safety_checker/model.safetensors filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
37
  unet/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
38
  vae/diffusion_pytorch_model.safetensors filter=lfs diff=lfs merge=lfs -text
39
  safety_checker/model.safetensors filter=lfs diff=lfs merge=lfs -text
40
+ unet/diffusion_pytorch_model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
41
+ text_encoder/model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
42
+ vae/diffusion_pytorch_model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
43
+ safety_checker/model.fp16.safetensors filter=lfs diff=lfs merge=lfs -text
safety_checker/model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08902f19b1cfebd7c989f152fc0507bef6898c706a91d666509383122324b511
3
+ size 608018440
safety_checker/pytorch_model.fp16.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22ba87205445ad5def13e54919b038dcfb7321ec1c3f4b12487d4fba6036125f
3
+ size 608103564
text_encoder/model.fp16.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22bc8e104d064b678ef7d2d2b217d4a8c9bfb79fb35792417cdf228e70adc7fb
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:ba47a6c751cce5b6c4d5c79c8cd63bab63bfce3539e7805a70b8dca9d1f2f151
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:96edda2701914e1e248197bb205305e6aa9cfc776c3372cff9eaf62d4706a3cf
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:7b5cdd1c15f025166ded673f898e09e621c9ff828d6508a81e83378a6d0ba8dd
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:d207e4928394a2002bcb7fff829e93bbd2a44bc323e597fdb690d3fc2d064de2
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:9d8fb415ab4f9782232e7bb82e618e2c0cef0be3593c77a35f5733d8fdd3530f
3
+ size 167335342