| 2166 | } |
| 2167 | |
| 2168 | size_t ggml_quantize_q5_K(const float * restrict src, void * restrict dst, int n, int k, int64_t * restrict hist) { |
| 2169 | assert(k % QK_K == 0); |
| 2170 | (void)hist; // TODO: collect histograms |
| 2171 | |
| 2172 | for (int j = 0; j < n; j += k) { |
| 2173 | block_q5_K * restrict y = (block_q5_K *)dst + j/QK_K; |
| 2174 | quantize_row_q5_K_reference(src + j, y, k); |
| 2175 | } |
| 2176 | return (n/QK_K*sizeof(block_q5_K)); |
| 2177 | } |
| 2178 | |
| 2179 | // ====================== 6-bit (de)-quantization |
| 2180 |
no test coverage detected