MCPcopy
hub / github.com/city96/ComfyUI-GGUF / dequantize_blocks_Q8_0

Function dequantize_blocks_Q8_0

dequant.py:65–69  ·  view source on GitHub ↗
(blocks, block_size, type_size, dtype=None)

Source from the content-addressed store, hash-verified

63
64# Legacy Quants #
65def dequantize_blocks_Q8_0(blocks, block_size, type_size, dtype=None):
66 d, x = split_block_dims(blocks, 2)
67 d = d.view(torch.float16).to(dtype)
68 x = x.view(torch.int8)
69 return (d * x)
70
71def dequantize_blocks_Q5_1(blocks, block_size, type_size, dtype=None):
72 n_blocks = blocks.shape[0]

Callers

nothing calls this directly

Calls 2

split_block_dimsFunction · 0.85
toMethod · 0.80

Tested by

no test coverage detected