Update README.md
Browse files
README.md
CHANGED
@@ -1,17 +1,10 @@
|
|
1 |
```
|
|
|
|
|
2 |
import transformers
|
3 |
from transformers import (
|
4 |
-
AutoConfig,
|
5 |
AutoModelForSequenceClassification,
|
6 |
AutoTokenizer,
|
7 |
-
DataCollatorWithPadding,
|
8 |
-
EvalPrediction,
|
9 |
-
HfArgumentParser,
|
10 |
-
PretrainedConfig,
|
11 |
-
Trainer,
|
12 |
-
TrainingArguments,
|
13 |
-
default_data_collator,
|
14 |
-
set_seed,
|
15 |
)
|
16 |
import torch
|
17 |
device = 'cuda:0'
|
|
|
1 |
```
|
2 |
+
import torch
|
3 |
+
import os
|
4 |
import transformers
|
5 |
from transformers import (
|
|
|
6 |
AutoModelForSequenceClassification,
|
7 |
AutoTokenizer,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
)
|
9 |
import torch
|
10 |
device = 'cuda:0'
|