Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions optimum/exporters/executorch/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
from pathlib import Path

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE
from transformers import PretrainedConfig
from transformers.utils import is_torch_available

from optimum.utils.import_utils import is_transformers_version
from transformers import PretrainedConfig
from transformers.utils import is_torch_available

from ...commands.export.executorch import parse_args_executorch
from .convert import export_to_executorch
Expand All @@ -34,7 +34,8 @@
if is_torch_available():
pass

from typing import Optional, Union
import math
from typing import Any, Optional, Union


def main_export(
Expand Down Expand Up @@ -112,7 +113,9 @@ def main_export(
FutureWarning,
)
if token is not None:
raise ValueError("You cannot use both `use_auth_token` and `token` arguments at the same time.")
raise ValueError(
"You cannot use both `use_auth_token` and `token` arguments at the same time."
)
token = use_auth_token

# Dynamically discover and import registered tasks
Expand Down
Loading