We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b88fef4 commit b29164aCopy full SHA for b29164a
src/diffusers/quantizers/__init__.py
@@ -12,5 +12,9 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-from .auto import DiffusersAutoQuantizer
+from ..utils import is_accelerate_available, is_torch_available
16
from .base import DiffusersQuantizer
17
+
18
19
+if is_torch_available() and is_accelerate_available():
20
+ from .auto import DiffusersAutoQuantizer
0 commit comments