Skip to content

Commit

Permalink
fix INC CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Sep 8, 2023
1 parent de5f4e9 commit 5a67613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/commands/neural_compressor/quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def parse_args_inc_quantize(parser: "ArgumentParser"):
required_group = parser.add_argument_group("Required arguments")
required_group.add_argument(
"--model",
type=Path,
type=str,
required=True,
help="Path to the repository where the model to quantize is located.",
)
Expand Down Expand Up @@ -83,7 +83,7 @@ def run(self):

if task == "auto":
try:
task = TasksManager.infer_task_from_model(str(model_id))
task = TasksManager.infer_task_from_model(model_id)
except Exception as e:
return (
f"### Error: {e}. Please pass explicitely the task as it could not be infered.",
Expand Down

0 comments on commit 5a67613

Please sign in to comment.