mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-30 16:13:57 +00:00
common : handle new quant types (ggml/0)
This commit is contained in:
parent
525f190917
commit
c7ea4fd235
@ -72,6 +72,9 @@ bool ggml_common_quantize_0(
|
|||||||
case GGML_FTYPE_MOSTLY_IQ4_XS:
|
case GGML_FTYPE_MOSTLY_IQ4_XS:
|
||||||
case GGML_FTYPE_MOSTLY_IQ1_M:
|
case GGML_FTYPE_MOSTLY_IQ1_M:
|
||||||
case GGML_FTYPE_MOSTLY_BF16:
|
case GGML_FTYPE_MOSTLY_BF16:
|
||||||
|
case GGML_FTYPE_MOSTLY_Q4_0_4_4:
|
||||||
|
case GGML_FTYPE_MOSTLY_Q4_0_4_8:
|
||||||
|
case GGML_FTYPE_MOSTLY_Q4_0_8_8:
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: invalid model type %d\n", __func__, ftype);
|
fprintf(stderr, "%s: invalid model type %d\n", __func__, ftype);
|
||||||
return false;
|
return false;
|
||||||
@ -209,6 +212,9 @@ bool ggml_common_quantize_0(
|
|||||||
case GGML_TYPE_IQ4_XS:
|
case GGML_TYPE_IQ4_XS:
|
||||||
case GGML_TYPE_IQ1_M:
|
case GGML_TYPE_IQ1_M:
|
||||||
case GGML_TYPE_BF16:
|
case GGML_TYPE_BF16:
|
||||||
|
case GGML_TYPE_Q4_0_4_4:
|
||||||
|
case GGML_TYPE_Q4_0_4_8:
|
||||||
|
case GGML_TYPE_Q4_0_8_8:
|
||||||
case GGML_TYPE_COUNT:
|
case GGML_TYPE_COUNT:
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s: unsupported quantization type %d (%s)\n", __func__, ttype, ggml_type_name((ggml_type) ttype));
|
fprintf(stderr, "%s: unsupported quantization type %d (%s)\n", __func__, ttype, ggml_type_name((ggml_type) ttype));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user