We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3547f9 commit ec66a75Copy full SHA for ec66a75
convert_checkpoints.py
@@ -586,7 +586,7 @@ def main(argv) -> None:
586
if FLAGS.quantize_weights:
587
quantize_num_bits = 8 if "int8" in FLAGS.quantize_type else 4
588
is_blockwise = "blockwise" in FLAGS.quantize_type
589
- weight_axis = lambda x: 0 if x in quantize_embedding_weight_map else 1
+ weight_axis = lambda x: 0 if x in quantize_embedding_weight_map else -1
590
start = time.perf_counter()
591
state_dict = _quantize_state_dict(
592
state_dict,
0 commit comments