Spaces:
Sleeping
Sleeping
Update tasks/text.py
Browse files- tasks/text.py +2 -7
tasks/text.py
CHANGED
|
@@ -28,15 +28,10 @@ if torch.cuda.is_available():
|
|
| 28 |
device = torch.device("cuda")
|
| 29 |
else:
|
| 30 |
device = torch.device("cpu")
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
-
|
| 34 |
-
device = torch.device("cuda")
|
| 35 |
-
else:
|
| 36 |
-
device = torch.device("cpu")
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
MODEL = "modern-large" #mlp, ct, modern-base, modern-large, gte-base, gte-large
|
| 40 |
|
| 41 |
class ConspiracyClassification(
|
| 42 |
nn.Module,
|
|
|
|
| 28 |
device = torch.device("cuda")
|
| 29 |
else:
|
| 30 |
device = torch.device("cpu")
|
| 31 |
+
print(device)
|
| 32 |
|
| 33 |
|
| 34 |
+
MODEL = "modern-base" #mlp, ct, modern-base, modern-large, gte-base, gte-large
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
class ConspiracyClassification(
|
| 37 |
nn.Module,
|