Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ import json
|
|
18 |
|
19 |
cache_dir = '/data/KB'
|
20 |
os.makedirs(cache_dir, exist_ok=True)
|
21 |
-
os.system(f"rm -rf /data-nvme/*")
|
22 |
|
23 |
def weighted_mean_pooling(hidden, attention_mask):
|
24 |
attention_mask_ = attention_mask * attention_mask.cumsum(dim=1)
|
|
|
18 |
|
19 |
cache_dir = '/data/KB'
|
20 |
os.makedirs(cache_dir, exist_ok=True)
|
21 |
+
os.system(f"rm -rf /data-nvme/zerogpu-offload/*")
|
22 |
|
23 |
def weighted_mean_pooling(hidden, attention_mask):
|
24 |
attention_mask_ = attention_mask * attention_mask.cumsum(dim=1)
|