huggingface / huggingface/diffusers
Load DDUF file with Diffusers using mmap
- Lingua principale
- Python
- Stelle
- 34.5k
- Fork
- 7.3k
- Merge medio
- 3g 3h
- PR unite (30g)
- 91
Descrizione
DDUF support for diffusers is there and DDUF support mmap.
But diffusers example doesn't use or support mmap,
How can I load DDUF file to diffusers with mmap?
```
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained(
"DDUF/FLUX.1-dev-DDUF", dduf_file="FLUX.1-dev.dduf", torch_dtype=torch.bfloat16
).to("cuda")
image = pipe(
"photo a cat holding a sign that says Diffusers", num_inference_steps=50, guidance_scale=3.5
).images[0]
image.save("cat.png")
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by tracing DiffusionPipeline.from_pretrained with the dduf_file argument and the existing DDUF mmap support. Determine how the example can load FLUX.1-dev.dduf through mmap, then verify the pipeline example still generates and saves the image as shown.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, pytorch
- Ambito
- ai, machine-learning
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100