Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- app.py +8 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -11,8 +11,14 @@ import site
|
|
| 11 |
def _preload_cudart13():
|
| 12 |
# zonos2's JIT kernels are compiled by the image's CUDA 13 nvcc and link
|
| 13 |
# libcudart.so.13, but torch 2.9.1 (cu128) only ships cudart 12.
|
| 14 |
-
for sp in site.getsitepackages()
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
ctypes.CDLL(lib, mode=ctypes.RTLD_GLOBAL)
|
| 17 |
return
|
| 18 |
|
|
|
|
| 11 |
def _preload_cudart13():
|
| 12 |
# zonos2's JIT kernels are compiled by the image's CUDA 13 nvcc and link
|
| 13 |
# libcudart.so.13, but torch 2.9.1 (cu128) only ships cudart 12.
|
| 14 |
+
patterns = [f"{sp}/nvidia/**/libcudart.so.13*" for sp in site.getsitepackages()]
|
| 15 |
+
patterns += [
|
| 16 |
+
"/usr/local/cuda*/targets/*/lib/libcudart.so.13*",
|
| 17 |
+
"/usr/local/cuda*/lib64/libcudart.so.13*",
|
| 18 |
+
"/usr/lib/x86_64-linux-gnu/libcudart.so.13*",
|
| 19 |
+
]
|
| 20 |
+
for pattern in patterns:
|
| 21 |
+
for lib in sorted(glob.glob(pattern, recursive=True)):
|
| 22 |
ctypes.CDLL(lib, mode=ctypes.RTLD_GLOBAL)
|
| 23 |
return
|
| 24 |
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
torch==2.9.1
|
| 2 |
torchaudio==2.9.1
|
| 3 |
-
nvidia-cuda-runtime
|
| 4 |
https://github.com/flashinfer-ai/flashinfer/releases/download/v0.5.3/flashinfer_jit_cache-0.5.3+cu128-cp39-abi3-manylinux_2_28_x86_64.whl
|
| 5 |
git+https://github.com/Zyphra/ZONOS2.git
|
|
|
|
| 1 |
torch==2.9.1
|
| 2 |
torchaudio==2.9.1
|
| 3 |
+
nvidia-cuda-runtime>=13,<14
|
| 4 |
https://github.com/flashinfer-ai/flashinfer/releases/download/v0.5.3/flashinfer_jit_cache-0.5.3+cu128-cp39-abi3-manylinux_2_28_x86_64.whl
|
| 5 |
git+https://github.com/Zyphra/ZONOS2.git
|