Spaces:
Running
on
Zero
Running
on
Zero
Omartificial-Intelligence-Space
commited on
Commit
•
6f8d49a
1
Parent(s):
8c71347
update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
13 |
zero = torch.Tensor([0]).to(device)
|
14 |
print(f"Device being used: {zero.device}")
|
15 |
|
16 |
-
@spaces.GPU
|
17 |
def evaluate_model(model_id):
|
18 |
model = SentenceTransformer(model_id, device=device)
|
19 |
matryoshka_dimensions = [768, 512, 256, 128, 64]
|
|
|
13 |
zero = torch.Tensor([0]).to(device)
|
14 |
print(f"Device being used: {zero.device}")
|
15 |
|
16 |
+
@spaces.GPU(duration=120)
|
17 |
def evaluate_model(model_id):
|
18 |
model = SentenceTransformer(model_id, device=device)
|
19 |
matryoshka_dimensions = [768, 512, 256, 128, 64]
|