Reworked so everything is in classes for easy expansion. Single entry point for all config files now.

This commit is contained in:
Jaret Burkett
2023-07-08 09:51:42 -06:00
parent 27df03a486
commit 37354b006e
16 changed files with 424 additions and 189 deletions

View File

@@ -11,6 +11,7 @@ import torch.nn.functional as F
import torch.linalg as linalg
from tqdm import tqdm
from collections import OrderedDict
def make_sparse(t: torch.Tensor, sparsity=0.95):
@@ -121,7 +122,7 @@ def extract_diff(
sparsity=0.98,
small_conv=True
):
meta = {}
meta = OrderedDict()
UNET_TARGET_REPLACE_MODULE = [
"Transformer2DModel",