(blocks, block_size, type_size, dtype=None)
| 63 | |
| 64 | # Legacy Quants # |
| 65 | def 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 | |
| 71 | def dequantize_blocks_Q5_1(blocks, block_size, type_size, dtype=None): |
| 72 | n_blocks = blocks.shape[0] |
nothing calls this directly
no test coverage detected