MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_quantize_q5_K

Function ggml_quantize_q5_K

ggml-quants.c:2168–2177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2166}
2167
2168size_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

Callers 1

ggml_quantize_chunkFunction · 0.85

Calls 1

Tested by

no test coverage detected