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) {
410
-
if (i)
411
-
valid_types += ", ";
412
-
valid_types += name;
413
-
if (type == name) {
414
-
if (ggml_quantize_requires_imatrix((ggml_type)i)) {
415
-
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);
416
-
}
417
-
params.wtype = (enumsd_type_t)i;
418
-
found = true;
419
-
break;
420
-
}
421
-
}
422
-
}
423
-
if (!found) {
424
-
fprintf(stderr, "error: invalid weight format %s, must be one of [%s]\n",
if (name == "f32" || trait->to_float && trait->type_size) {
735
+
if (i)
736
+
valid_types += ", ";
737
+
valid_types += name;
738
+
if (type == name) {
739
+
if (ggml_quantize_requires_imatrix((ggml_type)i) && params.imatrix_in.size() == 0) {
740
+
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);
741
+
}
742
+
params.wtype = (enumsd_type_t)i;
743
+
found = true;
744
+
break;
745
+
}
746
+
}
747
+
}
748
+
if (!found) {
749
+
fprintf(stderr, "error: invalid weight format %s, must be one of [%s]\n",
750
+
type.c_str(),
751
+
valid_types.c_str());
752
+
exit(1);
753
+
}
754
+
}
755
+
752
756
if (invalid_arg) {
753
757
fprintf(stderr, "error: invalid parameter for argument: %s\n", arg.c_str());
0 commit comments