Spaces:
Runtime error
Runtime error
File size: 408 Bytes
642c9af 43ee218 6614b19 43ee218 6614b19 4ccdc1d 6614b19 43ee218 | 1 2 3 4 5 6 7 8 9 10 11 12 | import torch
from diffusers import FluxPipeline
# Usamos la variante en precisión FP8, que reduce la huella de memoria a la mitad
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
torch_dtype=torch.float8_e4m3fn,
device_map="balanced"
).to("cuda")
# Cargar el LoRA
pipe.load_lora_weights("joyfox/Kontext-Cosplay-Lora", weight_name="kontext_cosplay_lora_20000.safetensors") |