Skip to content

Commit 6592182

Browse files
committed
up
1 parent 3196007 commit 6592182

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/models/llama/export_llama_lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ def build_args_parser() -> argparse.ArgumentParser:
353353
parser.add_argument(
354354
"--coreml-quantize",
355355
default=None,
356-
choices=["b4w"],
357-
help="This option is only for coreml: Use coreml quantization, e.g. b4w (for blockwise 4 bit weight)",
356+
choices=["b4w", "c4w"],
357+
help="This option is only for coreml: Use coreml quantization, e.g. b4w (for blockwise 4 bit weight), c4w (for channelwise 4 bit weight)",
358358
)
359359
parser.add_argument(
360360
"--coreml-ios",

extension/llm/export/partitioner_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _validate_ios_version() -> None:
152152
compile_specs = CoreMLBackend.generate_compile_specs( # pyre-fixme[16]
153153
minimum_deployment_target=minimum_deployment_target,
154154
compute_precision=ct.precision(ct.precision.FLOAT16.value),
155-
compute_units=coreml_compute_units,
155+
compute_unit=coreml_compute_units,
156156
model_type=CoreMLBackend.MODEL_TYPE.MODEL, # pyre-fixme[16]
157157
op_linear_quantizer_config=op_linear_quantizer_config,
158158
)

0 commit comments

Comments
 (0)