| 1796 | } |
| 1797 | |
| 1798 | size_t ggml_quantize_q3_K(const float * restrict src, void * restrict dst, int n, int k, int64_t * restrict hist) { |
| 1799 | (void)hist; // TODO: collect histograms |
| 1800 | |
| 1801 | for (int j = 0; j < n; j += k) { |
| 1802 | block_q3_K * restrict y = (block_q3_K *)dst + j/QK_K; |
| 1803 | quantize_row_q3_K_reference(src + j, y, k); |
| 1804 | } |
| 1805 | return (n/QK_K*sizeof(block_q3_K)); |
| 1806 | } |
| 1807 | |
| 1808 | // ====================== 4-bit (de)-quantization |
| 1809 |
no test coverage detected