mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-04 05:06:58 +08:00
divide when dividing
This commit is contained in:
parent
701e4999dc
commit
a4c2b6f5b2
@ -531,7 +531,7 @@ def scaled_fp8_ops(fp8_matrix_mult=False, scale_input=False, override_dtype=None
|
|||||||
|
|
||||||
def set_weight(self, weight, inplace_update=False, seed=None, return_weight=False, **kwargs):
|
def set_weight(self, weight, inplace_update=False, seed=None, return_weight=False, **kwargs):
|
||||||
weight = comfy.float.stochastic_rounding(scale_hadamard(weight / self.scale_weight.to(device=weight.device, dtype=weight.dtype),
|
weight = comfy.float.stochastic_rounding(scale_hadamard(weight / self.scale_weight.to(device=weight.device, dtype=weight.dtype),
|
||||||
self.weight_scale_inv.to(device=weight.device, dtype=weight.dtype), k_value=None), self.weight.dtype, seed=seed)
|
self.weight_scale_inv.to(device=weight.device, dtype=weight.dtype), k_value=None, divide=True), self.weight.dtype, seed=seed)
|
||||||
if return_weight:
|
if return_weight:
|
||||||
return weight
|
return weight
|
||||||
if inplace_update:
|
if inplace_update:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user