Skip to content

Commit e7b6f14

Browse files
authored
Update gguf_loader.py
1 parent f60594f commit e7b6f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchchat/utils/gguf_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _prepare_weight_and_scales_and_zeros(
237237
weight_int32, scales_and_zeros = group_quantize_tensor(
238238
weight_bf16, n_bit=4, groupsize=groupsize
239239
)
240-
if is_device(weight_int32.device.type, "cpu") and TORCH_VERSION_AT_LEAST_2_6:
240+
if is_device(weight_int32.device.type, "cpu"):
241241
weight_int4pack = torch.ops.aten._convert_weight_to_int4pack_for_cpu(
242242
weight_int32, inner_k_tiles
243243
)

0 commit comments

Comments
 (0)