Spaces:
Running
on
T4
Running
on
T4
ffreemt
commited on
Commit
·
b55d7c2
1
Parent(s):
212682a
Update bitsandbytes device_map={'': 0} rich, check nvidia-smi with subproces.run
Browse files- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -53,7 +53,7 @@ from transformers.generation import GenerationConfig
|
|
53 |
from example_list import css, example_list
|
54 |
|
55 |
if not torch.cuda.is_available():
|
56 |
-
raise gr.Error("
|
57 |
|
58 |
os.environ["TZ"] = "Asia/Shanghai"
|
59 |
try:
|
|
|
53 |
from example_list import css, example_list
|
54 |
|
55 |
if not torch.cuda.is_available():
|
56 |
+
raise gr.Error("torch.cuda.is_available() is False, cant continue...")
|
57 |
|
58 |
os.environ["TZ"] = "Asia/Shanghai"
|
59 |
try:
|
requirements.txt
CHANGED
@@ -19,7 +19,8 @@ safetensors
|
|
19 |
# bitsandbytes
|
20 |
# git+https://github.com/TimDettmers/bitsandbytes.git
|
21 |
# bitsandbytes==0.39.0
|
22 |
-
bitsandbytes-cuda113
|
|
|
23 |
|
24 |
transformers_stream_generator
|
25 |
scipy
|
|
|
19 |
# bitsandbytes
|
20 |
# git+https://github.com/TimDettmers/bitsandbytes.git
|
21 |
# bitsandbytes==0.39.0
|
22 |
+
# bitsandbytes-cuda113 # This version of bitsandbytes is deprecated. Please switch to `pip install bitsandbytes`
|
23 |
+
bitsandbytes
|
24 |
|
25 |
transformers_stream_generator
|
26 |
scipy
|