llama-quant : fix --tensor-type when default qtype is overriden (#22572)
fix #22544 (my fault!) Credit to @Anai-Guo, ref #22559 - since that one was closed due to the new contributor policy I am taking the liberty of re-submitting that PR here.
This commit is contained in:
+1
-1
@@ -683,12 +683,12 @@ static ggml_type llama_tensor_get_type(quantize_state_impl & qs, const llama_mod
|
|||||||
LLAMA_LOG_WARN("%s: %-36s - applying manual override: %s -> %s\n",
|
LLAMA_LOG_WARN("%s: %-36s - applying manual override: %s -> %s\n",
|
||||||
__func__, tensor_name.c_str(), ggml_type_name(new_type), ggml_type_name(qtype));
|
__func__, tensor_name.c_str(), ggml_type_name(new_type), ggml_type_name(qtype));
|
||||||
new_type = qtype;
|
new_type = qtype;
|
||||||
|
}
|
||||||
manual = true;
|
manual = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// if not manual - use the standard logic for choosing the quantization type based on the selected mixture
|
// if not manual - use the standard logic for choosing the quantization type based on the selected mixture
|
||||||
if (!manual) {
|
if (!manual) {
|
||||||
|
|||||||
Reference in New Issue
Block a user