Skip to content

Instantly share code, notes, and snippets.

View De-Zoomer's full-sized avatar

DeZoomer De-Zoomer

View GitHub Profile
@jaretburkett
jaretburkett / merge_loras.py
Created October 9, 2024 15:15
Merge loras together that have the same weight naming convention.
import gc
from collections import OrderedDict
# leave in this if for autoformatting purposes
if True:
import torch
from safetensors.torch import load_file, save_file
def flush():