Skip to content

Commit 03a9148

Browse files
committed
need a default value for list arg
1 parent 925e974 commit 03a9148

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/diffusers/quantization/quantize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ def create_argument_parser() -> argparse.ArgumentParser:
923923
model_group.add_argument(
924924
"--component-dtype",
925925
action="append",
926+
default=[],
926927
help="Precision for loading each component of the model by format of name:dtype. "
927928
"You can specify multiple components. "
928929
"Example: --component-dtype vae:Half --component-dtype transformer:BFloat16",

0 commit comments

Comments
 (0)