We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d02e281 commit 135c2e9Copy full SHA for 135c2e9
optimum/commands/export/openvino.py
@@ -21,7 +21,6 @@
21
from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
22
23
from ...exporters import TasksManager
24
-from ...exporters.openvino.convert import export_tokenizer
25
from ...intel.utils.import_utils import DIFFUSERS_IMPORT_ERROR, is_diffusers_available
26
from ..base import BaseOptimumCLICommand, CommandInfo
27
@@ -262,6 +261,9 @@ def run(self):
262
261
)
263
model.save_pretrained(self.args.output)
264
+ # avoid circular import
265
+ from ...exporters.openvino.convert import export_tokenizer
266
+
267
output = Path(self.args.output)
268
tokenizer = getattr(model, "tokenizer", None)
269
if tokenizer is not None:
0 commit comments