Instructions to use microsoft/vq-diffusion-ithq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use microsoft/vq-diffusion-ithq with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("microsoft/vq-diffusion-ithq", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Fix deprecated float16/fp16 variant loading through new `version` API.
Browse filesHey microsoft 👋,
Your model repository seems to contain a [`fp16` branch](https://huggingface.co/microsoft/vq-diffusion-ithq/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(microsoft/vq-diffusion-ithq, 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.
- learned_classifier_free_sampling_embeddings/diffusion_pytorch_model.fp16.bin +3 -0
- learned_classifier_free_sampling_embeddings/diffusion_pytorch_model.fp16.safetensors +3 -0
- text_encoder/model.fp16.safetensors +3 -0
- text_encoder/pytorch_model.fp16.bin +3 -0
- transformer/diffusion_pytorch_model.fp16.bin +3 -0
- transformer/diffusion_pytorch_model.fp16.safetensors +3 -0
- vqvae/diffusion_pytorch_model.fp16.bin +3 -0
- vqvae/diffusion_pytorch_model.fp16.safetensors +3 -0
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a83dcb048f57c0eac6b077c3fa703f4cc96ceced5f10ea18c3408d245529640
|
| 3 |
+
size 79786
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc720c92892ffc66d8f4115028baa2269545b03982fc2a09d8a48f2af379b10b
|
| 3 |
+
size 78960
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:682ae76d1e5c0e76aa2e1f9b95a09f76141ebd7a9856170108f102df7a06c6a5
|
| 3 |
+
size 126355608
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06de44065bf904859192697571a3ed69b4666996274382e09bee00ecab945cc9
|
| 3 |
+
size 126398020
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c505dd6553c1bacd6e8b00cb34f3a1b55b9156b3d641b52077bf81d78c0174cc
|
| 3 |
+
size 2718954639
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7bdd16989474aa7ba3e0078c84ffcd0facc514842121567040781fd65f014c5
|
| 3 |
+
size 2718663712
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8327eea8b516341a51403ab79c1c165d178b7a3053aac552a2243730ceb8b9b4
|
| 3 |
+
size 128139048
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a51e9ecabf08ce75c2b25a4d4a43e5c8f056c1c82662247bb3ff4e549b64a20c
|
| 3 |
+
size 128053190
|