Spaces:
Running
on
Zero
Running
on
Zero
transformer move cache
Browse files
app.py
CHANGED
@@ -7,6 +7,10 @@ import spaces
|
|
7 |
from train import main as train_main
|
8 |
from inference import inference as inference_main
|
9 |
|
|
|
|
|
|
|
|
|
10 |
@spaces.GPU()
|
11 |
def inference_app(
|
12 |
embedding_dir,
|
|
|
7 |
from train import main as train_main
|
8 |
from inference import inference as inference_main
|
9 |
|
10 |
+
import transformers
|
11 |
+
transformers.utils.move_cache()
|
12 |
+
|
13 |
+
|
14 |
@spaces.GPU()
|
15 |
def inference_app(
|
16 |
embedding_dir,
|