mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
revert .t_().contiguous().t_()
This commit is contained in:
@@ -164,7 +164,7 @@ def sdnq_quantize_layer(layer, weights_dtype="int8", torch_dtype=None, group_siz
|
||||
if not dtype_dict[weights_dtype]["is_integer"]:
|
||||
stride = layer.weight.stride()
|
||||
if stride[0] > stride[1] and stride[1] == 1:
|
||||
layer.weight.data = layer.weight.t_().contiguous().t_()
|
||||
layer.weight.data = layer.weight.t().contiguous().t()
|
||||
if not use_tensorwise_fp8_matmul:
|
||||
scale = scale.to(torch.float32)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user