Skip to content

Commit

Permalink
Fix error with optimum-cli export openvino --help
Browse files Browse the repository at this point in the history
  • Loading branch information
helena-intel committed Jan 13, 2024
1 parent 3f7551e commit 545ad5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/commands/export/openvino.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def parse_args_openvino(parser: "ArgumentParser"):
default=0.8,
help=(
"Compression ratio between primary and backup precision. In the case of INT4, NNCF evaluates layer sensitivity and keeps the most impactful layers in INT8"
"precision (by default 20% in INT8). This helps to achieve better accuracy after weight quantization."
"precision (by default 20%% in INT8). This helps to achieve better accuracy after weight compression."
),
)

Expand Down
7 changes: 7 additions & 0 deletions tests/openvino/test_exporters_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,10 @@ def test_exporters_cli_int4(self, task: str, model_type: str, option: str):
_, num_int8, num_int4 = get_num_quantized_nodes(model)
self.assertEqual(expected_int8, num_int8)
self.assertEqual(expected_int4, num_int4)

def test_exporters_cli_help(self):
subprocess.run(
"optimum-cli export openvino --help",
shell=True,
check=True,
)

0 comments on commit 545ad5a

Please sign in to comment.