Skip to content

Commit

Permalink
fix lint F401 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dpower4 committed Dec 19, 2024
1 parent c5b87ac commit bf780d0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions superbench/benchmarks/model_benchmarks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
from superbench.benchmarks.model_benchmarks.megatron_gpt3 import MegatronGPT
from superbench.benchmarks.model_benchmarks.pytorch_llama import PytorchLlama

__all__ = ['ModelBenchmark', 'PytorchBERT', 'PytorchGPT2', 'PytorchCNN', 'PytorchLSTM', 'MegatronGPT', 'PytorchLlama']

# Check for Python version > 3.7 and conditionally import PytorchMixtral
PytorchMixtral = None
if sys.version_info > (3, 7):
from superbench.benchmarks.model_benchmarks.pytorch_mixtral import PytorchMixtral

__all__ = ['ModelBenchmark', 'PytorchBERT', 'PytorchGPT2', 'PytorchCNN', 'PytorchLSTM', 'MegatronGPT', 'PytorchLlama']

if PytorchMixtral is not None:
__all__.append('PytorchMixtral')

0 comments on commit bf780d0

Please sign in to comment.