add low vram examples

This commit is contained in:
Artiprocher
2025-08-15 11:31:57 +08:00
parent 0b574cc0c2
commit e1c2eda5f5
12 changed files with 269 additions and 36 deletions

View File

@@ -2,7 +2,7 @@ from diffsynth.pipelines.qwen_image import QwenImagePipeline, ModelConfig
from modelscope import snapshot_download
import torch
snapshot_download("DiffSynth-Studio/Qwen-Image-Distill-LoRA", local_dir="DiffSynth-Studio/Qwen-Image-Distill-LoRA")
snapshot_download("DiffSynth-Studio/Qwen-Image-Distill-LoRA", local_dir="models/DiffSynth-Studio/Qwen-Image-Distill-LoRA")
pipe = QwenImagePipeline.from_pretrained(
torch_dtype=torch.bfloat16,
device="cuda",