MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / quantizeBlockwise_fp16

Function quantizeBlockwise_fp16

csrc/pythonInterface.cpp:127–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125MAKE_BLOCKWISE8(ademamix, ADEMAMIX, float, fp32)
126
127void quantizeBlockwise_fp16(float* code, half* A, float* absmax, unsigned char* out, int blocksize, const int n) {
128 quantizeBlockwise<half, 0, General8bit>(code, A, absmax, out, nullptr, 0, blocksize, n);
129}
130
131void quantizeBlockwise_fp16_fp4(float* code, half* A, float* absmax, unsigned char* out, int blocksize, const int n) {
132 quantizeBlockwise<half, 0, FP4>(nullptr, A, absmax, out, nullptr, 0, blocksize, n);

Callers 1

cquantize_blockwise_fp16Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected