Update README.md
Browse files
README.md
CHANGED
@@ -32,4 +32,5 @@ class RobertaClassificationHead(nn.Module):
|
|
32 |
x = self.dropout(x)
|
33 |
x = self.out_proj(x)
|
34 |
return x
|
35 |
-
model = RobertaForSequenceClassification(num_labels)
|
|
|
|
32 |
x = self.dropout(x)
|
33 |
x = self.out_proj(x)
|
34 |
return x
|
35 |
+
model = RobertaForSequenceClassification(num_labels)
|
36 |
+
model.load_state_dict(torch.load(args.model_save_path+'Roberta_large_model.pt', map_location=device))
|