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

Function dequantize_blocks_BF16

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

Source from the content-addressed store, hash-verified

59
60# Full weights #
61def dequantize_blocks_BF16(blocks, block_size, type_size, dtype=None):
62 return (blocks.view(torch.int16).to(torch.int32) << 16).view(torch.float32)
63
64# Legacy Quants #
65def dequantize_blocks_Q8_0(blocks, block_size, type_size, dtype=None):

Callers

nothing calls this directly

Calls 1

toMethod · 0.80

Tested by

no test coverage detected