mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 03:01:15 +00:00
fix some gguf loras
This commit is contained in:
@@ -4,7 +4,7 @@ import time
|
||||
import torch
|
||||
import contextlib
|
||||
|
||||
from backend import stream, memory_management
|
||||
from backend import stream, memory_management, utils
|
||||
|
||||
|
||||
stash = {}
|
||||
@@ -355,9 +355,9 @@ class ForgeOperationsGGUF(ForgeOperations):
|
||||
|
||||
def _apply(self, fn, recurse=True):
|
||||
if self.weight is not None:
|
||||
self.weight = fn(self.weight)
|
||||
self.weight = utils.tensor2parameter(fn(self.weight))
|
||||
if self.bias is not None:
|
||||
self.bias = fn(self.bias)
|
||||
self.bias = utils.tensor2parameter(fn(self.bias))
|
||||
return self
|
||||
|
||||
def forward(self, x):
|
||||
|
||||
Reference in New Issue
Block a user