Instructions to use DeepFloyd/IF-I-XL-v1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use DeepFloyd/IF-I-XL-v1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-XL-v1.0", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
You are loading your model in 8bit or 4bit but no linear modules were found in your model.
#26
by deleted - opened
I get this error when running the Google
colab :
You are loading your model in 8bit or 4bit but no linear modules were found in your model. Please double check your model architecture, or submit an issue on github if you think this is a bug.
RuntimeError Traceback (most recent call last)
in <cell line: 3>()
1 from transformers import T5EncoderModel
2
----> 3 text_encoder = T5EncoderModel.from_pretrained(
4 "DeepFloyd/IF-I-XL-v1.0",
5 subfolder="text_encoder",
How can I fix this?
I got the same issue.
havent got a clue