Skip to content

Commit

Permalink
Add Warning to Deprecated Option
Browse files Browse the repository at this point in the history
  • Loading branch information
apaniukov committed Feb 29, 2024
1 parent 6d72fe0 commit ffcae81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions optimum/commands/export/openvino.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ def parse_args_openvino(parser: "ArgumentParser"):
action="store_true",
help="Do not add converted tokenizer and detokenizer OpenVINO models.",
)
optional_group.add_argument(
"--convert-tokenizer",
action="store_true",
help="[Deprecated] Add converted tokenizer and detokenizer with OpenVINO Tokenizers.",
)


class OVExportCommand(BaseOptimumCLICommand):
Expand Down Expand Up @@ -190,6 +195,9 @@ def run(self):
quantization_config["group_size"] = 128 if "128" in weight_format else 64
ov_config = OVConfig(quantization_config=quantization_config)

if self.args.convert_tokenizer:
logger.warning("`--convert-tokenizer` option is deprecated. Tokenizer will be converted by default.")

# TODO : add input shapes
main_export(
model_name_or_path=self.args.model,
Expand Down

0 comments on commit ffcae81

Please sign in to comment.