| 75 | (normalized == "q3_k" && type == GGML_TYPE_Q3_K) || |
| 76 | (normalized == "q4_k" && type == GGML_TYPE_Q4_K) || |
| 77 | (normalized == "q5_k" && type == GGML_TYPE_Q5_K) || |
| 78 | (normalized == "q6_k" && type == GGML_TYPE_Q6_K) || |
| 79 | (normalized == "q8_0" && type == GGML_TYPE_Q8_0); |
| 80 | } |
| 81 | |
| 82 | ggml_type parse_ggml_type_for_tensor_dtype(std::string_view dtype) { |
| 83 | const std::string normalized = lower_ascii(dtype); |
| 84 | if (normalized == "f32" || normalized == "float32") return GGML_TYPE_F32; |
no test coverage detected