| 81 | std::string out(value); |
| 82 | for (char & ch : out) { |
| 83 | ch = static_cast<char>(std::tolower(static_cast<unsigned char>(ch))); |
| 84 | } |
| 85 | return out; |
| 86 | } |
| 87 | |
| 88 | bool raw_dtype_matches_ggml_type(std::string_view dtype, ggml_type type) { |
| 89 | const std::string normalized = lower_ascii(dtype); |
| 90 | return (normalized == "f32" && type == GGML_TYPE_F32) || |
| 91 | (normalized == "f16" && type == GGML_TYPE_F16) || |
| 92 | (normalized == "bf16" && type == GGML_TYPE_BF16) || |
no test coverage detected