Skip to content

Commit b29164a

Browse files
committed
update
1 parent b88fef4 commit b29164a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/diffusers/quantizers/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from .auto import DiffusersAutoQuantizer
15+
from ..utils import is_accelerate_available, is_torch_available
1616
from .base import DiffusersQuantizer
17+
18+
19+
if is_torch_available() and is_accelerate_available():
20+
from .auto import DiffusersAutoQuantizer

0 commit comments

Comments
 (0)