Run this model with HF Jobs
Run microsoft/vq-diffusion-ithq on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/microsoft/vq-diffusion-ithq. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/microsoft/vq-diffusion-ithq on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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.
Files changed (8)
- learned_classifier_free_sampling_embeddings/diffusion_pytorch_model.fp16.binAdded+3
- learned_classifier_free_sampling_embeddings/diffusion_pytorch_model.fp16.safetensorsAdded+3
- text_encoder/model.fp16.safetensorsAdded+3
- text_encoder/pytorch_model.fp16.binAdded+3
- transformer/diffusion_pytorch_model.fp16.binAdded+3
- transformer/diffusion_pytorch_model.fp16.safetensorsAdded+3
- vqvae/diffusion_pytorch_model.fp16.binAdded+3
- vqvae/diffusion_pytorch_model.fp16.safetensorsAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:6a83dcb048f57c0eac6b077c3fa703f4cc96ceced5f10ea18c3408d245529640size 79786123version https://git-lfs.github.com/spec/v1oid sha256:dc720c92892ffc66d8f4115028baa2269545b03982fc2a09d8a48f2af379b10bsize 78960123version https://git-lfs.github.com/spec/v1oid sha256:682ae76d1e5c0e76aa2e1f9b95a09f76141ebd7a9856170108f102df7a06c6a5size 126355608123version https://git-lfs.github.com/spec/v1oid sha256:06de44065bf904859192697571a3ed69b4666996274382e09bee00ecab945cc9size 126398020123version https://git-lfs.github.com/spec/v1oid sha256:c505dd6553c1bacd6e8b00cb34f3a1b55b9156b3d641b52077bf81d78c0174ccsize 2718954639123version https://git-lfs.github.com/spec/v1oid sha256:d7bdd16989474aa7ba3e0078c84ffcd0facc514842121567040781fd65f014c5size 2718663712123version https://git-lfs.github.com/spec/v1oid sha256:8327eea8b516341a51403ab79c1c165d178b7a3053aac552a2243730ceb8b9b4size 128139048123version https://git-lfs.github.com/spec/v1oid sha256:a51e9ecabf08ce75c2b25a4d4a43e5c8f056c1c82662247bb3ff4e549b64a20csize 128053190