Skip to content

Commit 135c2e9

Browse files
committed
Fix Circular Import
1 parent d02e281 commit 135c2e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

optimum/commands/export/openvino.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
2222

2323
from ...exporters import TasksManager
24-
from ...exporters.openvino.convert import export_tokenizer
2524
from ...intel.utils.import_utils import DIFFUSERS_IMPORT_ERROR, is_diffusers_available
2625
from ..base import BaseOptimumCLICommand, CommandInfo
2726

@@ -262,6 +261,9 @@ def run(self):
262261
)
263262
model.save_pretrained(self.args.output)
264263

264+
# avoid circular import
265+
from ...exporters.openvino.convert import export_tokenizer
266+
265267
output = Path(self.args.output)
266268
tokenizer = getattr(model, "tokenizer", None)
267269
if tokenizer is not None:

0 commit comments

Comments
 (0)