[Quantization] add humming quantization kernel (#34556)

This commit is contained in:
Jinzhen Lin
2026-04-24 09:29:44 -04:00
committed by GitHub
parent c9d3c6e6af
commit 9f771b3ab9
10 changed files with 1948 additions and 9 deletions
+2 -2
View File
@@ -605,8 +605,8 @@ def _adjust_shard_indexes_for_marlin(shard_size, shard_offset, marlin_tile_size)
def _adjust_shard_indexes_for_packing(
shard_size, shard_offset, packed_factor, marlin_tile_size
):
shard_size = shard_size // packed_factor
shard_offset = shard_offset // packed_factor
shard_size = round(shard_size // packed_factor)
shard_offset = round(shard_offset // packed_factor)
if marlin_tile_size is not None:
return _adjust_shard_indexes_for_marlin(
shard_size=shard_size,