Spaces:
Runtime error
Runtime error
fix: device sync issue
Browse files124 unmodified lines1251261271281291281301291301311 unmodified line133134135136137138139140141124 unmodified lines subfolder="unet", torch_dtype=torch.float16, ) if torch.cuda.is_available(): unet.to("cuda") unet.to("cuda")
unet_cache[name] = unet lora_cache[name] = LoRANetwork(lora_cache[base_name].text_encoder_loras, unet)
1 unmodified line g_lora = lora_cache[name] g_unet.set_attn_processor(CrossAttnProcessor()) g_lora.reset() if torch.cuda.is_available(): g_unet.to("cuda") g_lora.to("cuda") return g_unet, g_lora, models[keys.index(name)][2]
# precache on huggingfaceapp.py+4-3