Spaces:
Runtime error
Runtime error
J.B-Lin commited on
Commit ·
2d207a7
1
Parent(s): cb94025
modal: 降级 GPU A100 -> T4 节省成本
Browse files- modal_deploy/deploy.py +2 -2
modal_deploy/deploy.py
CHANGED
|
@@ -73,7 +73,7 @@ def get_model_paths(base_dir: str) -> dict:
|
|
| 73 |
@app.function(
|
| 74 |
image=_image,
|
| 75 |
volumes={MODEL_DIR: model_volume},
|
| 76 |
-
gpu="
|
| 77 |
timeout=1200,
|
| 78 |
scaledown_window=300,
|
| 79 |
)
|
|
@@ -303,7 +303,7 @@ def upload_models():
|
|
| 303 |
@app.function(
|
| 304 |
image=_image,
|
| 305 |
volumes={MODEL_DIR: model_volume},
|
| 306 |
-
gpu="
|
| 307 |
timeout=600,
|
| 308 |
)
|
| 309 |
def test_inference():
|
|
|
|
| 73 |
@app.function(
|
| 74 |
image=_image,
|
| 75 |
volumes={MODEL_DIR: model_volume},
|
| 76 |
+
gpu="T4",
|
| 77 |
timeout=1200,
|
| 78 |
scaledown_window=300,
|
| 79 |
)
|
|
|
|
| 303 |
@app.function(
|
| 304 |
image=_image,
|
| 305 |
volumes={MODEL_DIR: model_volume},
|
| 306 |
+
gpu="T4",
|
| 307 |
timeout=600,
|
| 308 |
)
|
| 309 |
def test_inference():
|