Skip to content

Commit ea79e54

Browse files
committed
fixed refusing to quantize some models
1 parent 69add28 commit ea79e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2404,9 +2404,9 @@ static void llama_model_quantize_internal(const std::string & fname_inp, const s
24042404
int ny = tensor.ne.at(1);
24052405
if (nx % QK_K != 0 || ny % QK_K != 0) {
24062406
fprintf(stderr, "\n\n========================= Tensor sizes %d x %d are not divisible by %d\n",nx,ny,QK_K);
2407-
fprintf(stderr, "This is required to be able to use k-quants for now!\n");
2407+
fprintf(stderr, "Verify before using\n");
24082408
fprintf(stderr, "========================================================================================\n\n");
2409-
throw std::runtime_error("Unsupported tensor size encountered\n");
2409+
// throw std::runtime_error("Unsupported tensor size encountered\n");
24102410
}
24112411
}
24122412
if (tensor.name == "output.weight") {

0 commit comments

Comments
 (0)