dlxj commited on
Commit ·
5ca98b4
1
Parent(s): 956c2be
修复 Windows 下 PyTorch + Numba 的 CUDA 错误
Browse files- nemo/__init__.py +6 -0
- requirements.txt +2 -1
nemo/__init__.py
CHANGED
|
@@ -13,6 +13,12 @@
|
|
| 13 |
# limitations under the License.
|
| 14 |
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
from nemo.package_info import (
|
| 17 |
__contact_emails__,
|
| 18 |
__contact_names__,
|
|
|
|
| 13 |
# limitations under the License.
|
| 14 |
|
| 15 |
|
| 16 |
+
import os
|
| 17 |
+
|
| 18 |
+
# Fix Numba CUDA access violation on Windows
|
| 19 |
+
if os.name == 'nt':
|
| 20 |
+
os.environ.setdefault('NUMBA_CUDA_USE_NVIDIA_BINDING', '1')
|
| 21 |
+
|
| 22 |
from nemo.package_info import (
|
| 23 |
__contact_emails__,
|
| 24 |
__contact_names__,
|
requirements.txt
CHANGED
|
@@ -16,4 +16,5 @@ nv_one_logger_core>=2.3.1
|
|
| 16 |
nv_one_logger_training_telemetry>=2.3.1
|
| 17 |
nv_one_logger_pytorch_lightning_integration>=2.3.1
|
| 18 |
kaldi-python-io
|
| 19 |
-
kaldialign
|
|
|
|
|
|
| 16 |
nv_one_logger_training_telemetry>=2.3.1
|
| 17 |
nv_one_logger_pytorch_lightning_integration>=2.3.1
|
| 18 |
kaldi-python-io
|
| 19 |
+
kaldialign
|
| 20 |
+
cuda-python<12
|