Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix INC CLI #426

Merged
merged 13 commits into from
Sep 8, 2023
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
Loading