Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import os
|
|
11 |
|
12 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
13 |
|
14 |
-
|
15 |
def install_apex_without_cuda():
|
16 |
cmd = [
|
17 |
'pip', 'install', '-v', '--disable-pip-version-check', '--no-cache-dir',
|
@@ -26,7 +26,7 @@ except ModuleNotFoundError:
|
|
26 |
install_apex_without_cuda()
|
27 |
# After installation, try to import apex again
|
28 |
import apex
|
29 |
-
|
30 |
|
31 |
def download_t5_model(model_id, save_directory):
|
32 |
# Modelin tokenizer'ını ve modeli indir
|
|
|
11 |
|
12 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
13 |
|
14 |
+
"""
|
15 |
def install_apex_without_cuda():
|
16 |
cmd = [
|
17 |
'pip', 'install', '-v', '--disable-pip-version-check', '--no-cache-dir',
|
|
|
26 |
install_apex_without_cuda()
|
27 |
# After installation, try to import apex again
|
28 |
import apex
|
29 |
+
"""
|
30 |
|
31 |
def download_t5_model(model_id, save_directory):
|
32 |
# Modelin tokenizer'ını ve modeli indir
|