We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddb28b3 commit 7fbc5cdCopy full SHA for 7fbc5cd
modules/initialize.py
@@ -8,7 +8,21 @@
8
from modules.timer import startup_timer
9
10
11
+def patch__pkg_resources__packaging():
12
+ """temp patch for setuptools >= 70.0.0"""
13
+ try:
14
+ import pkg_resources
15
16
+ import pkg_resources.packaging
17
+ except ImportError:
18
+ pkg_resources.packaging = importlib.import_module("pkg_resources.extern.packaging")
19
20
+ pass
21
+
22
23
def imports():
24
+ patch__pkg_resources__packaging()
25
26
logging.getLogger("torch.distributed.nn").setLevel(logging.ERROR) # sshh...
27
logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())
28
0 commit comments