[Bugfix][XPU] Remove stale W4A8 weight after repacking (#57511)
Signed-off-by: Guancheng Fu <guancheng.fu@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
co-authored by
Kunshang Ji
parent
d5f356dae0
commit
acec1b1d84
@@ -186,7 +186,7 @@ class XPUW4A8IntLinearKernel(MPLinearKernel):
|
|||||||
|
|
||||||
# Free the original unpacked int8 weight (still registered as "weight")
|
# Free the original unpacked int8 weight (still registered as "weight")
|
||||||
# to avoid double-storing both int8 [N, K] and int32 [N, K/8] in memory.
|
# to avoid double-storing both int8 [N, K] and int32 [N, K/8] in memory.
|
||||||
layer.register_parameter("weight", None)
|
delattr(layer, "weight")
|
||||||
|
|
||||||
def apply_weights(
|
def apply_weights(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user