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
fprintf(stderr, "error: invalid weight format %s, must be one of [f32, f16, q4_0, q4_1, q5_0, q5_1, q8_0, q2_k, q3_k, q4_k]\n",
372
-
type.c_str());
349
+
std::string type = argv[i];
350
+
bool found = false;
351
+
std::string valid_types = "";
352
+
for (size_t i = 0; i < SD_TYPE_COUNT; i++) {
353
+
auto trait = ggml_get_type_traits((ggml_type)i);
354
+
std::string name(trait->type_name);
355
+
if (name == "f32" || trait->to_float && trait->type_size) {
356
+
if (i)
357
+
valid_types += ", ";
358
+
valid_types += name;
359
+
if (type == name) {
360
+
if (ggml_quantize_requires_imatrix((ggml_type)i)) {
361
+
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);
362
+
}
363
+
params.wtype = (enumsd_type_t)i;
364
+
found = true;
365
+
break;
366
+
}
367
+
}
368
+
}
369
+
if (!found) {
370
+
fprintf(stderr, "error: invalid weight format %s, must be one of [%s]\n",
0 commit comments