Spaces:
Sleeping
Sleeping
ronald
commited on
Commit
•
092069b
1
Parent(s):
0e62420
coh mech
Browse files- ccl_win.py +1 -1
ccl_win.py
CHANGED
@@ -129,7 +129,7 @@ class ccl_win(evaluate.Measurement):
|
|
129 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
130 |
|
131 |
tokenizer = AutoTokenizer.from_pretrained("roberta-large")
|
132 |
-
model =
|
133 |
model.to(device)
|
134 |
|
135 |
pred_list,len_by_sample = self.preprocess_adjacent_window(preds)
|
|
|
129 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
130 |
|
131 |
tokenizer = AutoTokenizer.from_pretrained("roberta-large")
|
132 |
+
model = AutoModelForSequenceClassification.from_pretrained(f"./{dataset}/", num_labels=2,cache_dir=MODEL_CACHE_DIR)
|
133 |
model.to(device)
|
134 |
|
135 |
pred_list,len_by_sample = self.preprocess_adjacent_window(preds)
|