File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 2323from ..neuron .version import __sdk_version__ as neuron_sdk_version
2424from ..neuron .version import __version__ as optimum_neuron_version
2525from ..version import __version__ as optimum_version
26- from . import BaseOptimumCLICommand , CommandInfo
26+ from .base import BaseOptimumCLICommand , CommandInfo
2727
2828
2929class EnvironmentCommand (BaseOptimumCLICommand ):
Original file line number Diff line number Diff line change 1515"""Registers the export command for Neuron to the Optimum CLI."""
1616
1717from ...neuron .utils import is_neuron_available , is_neuronx_available
18- from ..export import ExportCommand
18+ from ..export . base import ExportCommand
1919
2020
2121_neuron_export_command_was_imported = False
Original file line number Diff line number Diff line change 3838 neuron_scaled_dot_product_attention ,
3939)
4040from ...utils import (
41- DIFFUSERS_MINIMUM_VERSION ,
42- check_if_diffusers_greater ,
4341 is_diffusers_available ,
4442 logging ,
4543)
46- from ...utils .import_utils import _diffusers_version
4744from ..tasks import TasksManager
4845
4946
5047logger = logging .get_logger ()
5148
5249
5350if is_diffusers_available ():
54- if not check_if_diffusers_greater (DIFFUSERS_MINIMUM_VERSION .base_version ):
55- raise ImportError (
56- f"We found an older version of diffusers { _diffusers_version } but we require diffusers to be >= { DIFFUSERS_MINIMUM_VERSION } . "
57- "Please update diffusers by running `pip install --upgrade diffusers`"
58- )
5951 from diffusers import (
6052 ControlNetModel ,
6153 DiffusionPipeline ,
You can’t perform that action at this time.
0 commit comments