Skip to content

Instantly share code, notes, and snippets.

View sanguivore-easyco's full-sized avatar

Sanguivore sanguivore-easyco

View GitHub Profile
@sanguivore-easyco
sanguivore-easyco / peft.py
Last active January 28, 2025 19:12 — forked from edicam/peft.py
Script to convert the conceptmod safetensors slider to an usable .safetensors slider
import os.path
from collections import OrderedDict
from safetensors.torch import save_file, load_file
import torch
state_dict=load_file("path to your slider.safetensors")
alpha_keys = [
'lora_unet-single_transformer_blocks-0-attn-to_q.alpha',