Skip to content

Commit dded2c1

Browse files
committed
docstring update
Signed-off-by: Andrea Fasoli <[email protected]>
1 parent 8c1aca4 commit dded2c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fms_mo/utils/aiu_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def process_zero_shift(
257257
"""Compute and store the zero shift, a correction factor that compensates the
258258
output of (W integer, X integer) matmuls to match the corresponding FP operation.
259259
260-
Only applies if activations are asymmetrically quantized.
260+
Only needed if activations are asymmetrically quantized.
261261
"""
262262

263263
k = layer_name + ".zero_shift"
@@ -438,6 +438,8 @@ def save_for_aiu(
438438
Checkpoint saving is customized for AIU compatibility, with the option to recompute
439439
weights presenting narrow distributions in the integer domain.
440440
The general qconfig_save function is used to save the quantization configuration.
441+
442+
Required arguments: model (quantized), qcfg
441443
"""
442444

443445
save_sd_for_aiu(model, qcfg, output_dir, file_name, verbose)

0 commit comments

Comments
 (0)