You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (name == "f32" || trait->to_float && trait->type_size) {
377
-
if (i)
378
-
valid_types += ", ";
379
-
valid_types += name;
380
-
if (type == name) {
381
-
if (ggml_quantize_requires_imatrix((ggml_type)i)) {
382
-
printf("\033[35;1m[WARNING]\033[0m: type %s requires imatrix to work properly. A dummy imatrix will be used, expect poor quality.\n", trait->type_name);
383
-
}
384
-
params.wtype = (enumsd_type_t)i;
385
-
found = true;
386
-
break;
387
-
}
388
-
}
389
-
}
390
-
if (!found) {
391
-
fprintf(stderr, "error: invalid weight format %s, must be one of [%s]\n",
if (name == "f32" || trait->to_float && trait->type_size) {
645
+
if (i)
646
+
valid_types += ", ";
647
+
valid_types += name;
648
+
if (type == name) {
649
+
if (ggml_quantize_requires_imatrix((ggml_type)i) && params.imatrix_in.size() == 0) {
650
+
printf("\033[35;1m[WARNING]\033[0m: type %s requires imatrix to work properly. A dummy imatrix will be used, expect poor quality.\n", trait->type_name);
651
+
}
652
+
params.wtype = (enumsd_type_t)i;
653
+
found = true;
654
+
break;
655
+
}
656
+
}
657
+
}
658
+
if (!found) {
659
+
fprintf(stderr, "error: invalid weight format %s, must be one of [%s]\n",
660
+
type.c_str(),
661
+
valid_types.c_str());
662
+
exit(1);
663
+
}
664
+
}
665
+
662
666
if (invalid_arg) {
663
667
fprintf(stderr, "error: invalid parameter for argument: %s\n", arg.c_str());
0 commit comments