Fix deprecated float16/fp16 variant loading through new `version` API.
Browse filesHey stabilityai 👋,
Your model repository seems to contain a [`fp16` branch](https://huggingface.co/stabilityai/stable-diffusion-2-depth/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-depth, 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.
- depth_estimator/model.fp16.safetensors +3 -0
- depth_estimator/pytorch_model.fp16.bin +3 -0
- text_encoder/model.fp16.safetensors +3 -0
- text_encoder/pytorch_model.fp16.bin +3 -0
- unet/diffusion_pytorch_model.fp16.bin +3 -0
- unet/diffusion_pytorch_model.fp16.safetensors +3 -0
- vae/diffusion_pytorch_model.fp16.bin +3 -0
- vae/diffusion_pytorch_model.fp16.safetensors +3 -0
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b81005e6fc3b3e7a35468a4a67751df8fe3b5102d20e68dced032f1d9ec6579
|
3 |
+
size 244807338
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:87bb6b046c8df3e469e95dfdfe8a712135d3d2a580c80197c2ae65654370292d
|
3 |
+
size 244897573
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:681c555376658c81dc273f2d737a2aeb23ddb6d1d8e5b3a7064636d359a22668
|
3 |
+
size 680821096
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7bb11b1da63986aaaaefb5ef2100d34109c024ac640cacd9ed697150c1c57f01
|
3 |
+
size 680900852
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b288e4bd2500aad0686b30597d414aadf3b24969ba9ad3b3c47cb7cd559cebf7
|
3 |
+
size 1732112853
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a6e9bf637022853354a7b40aeffa5e6d973282f8d7336e0235471c574ac851cd
|
3 |
+
size 1731910496
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:44915add42092106e70bffac475aae4283b5e8167a8a0c5f55ccc667ee4ebeb5
|
3 |
+
size 167405651
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3e4c08995484ee61270175e9e7a072b66a6e4eeb5f0c266667fe1f45b90daf9a
|
3 |
+
size 167335342
|