MonteXiaofeng
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -89,6 +89,8 @@ model = AutoModelForSequenceClassification.from_pretrained(
|
|
89 |
trust_remote_code=False,
|
90 |
ignore_mismatched_sizes=False,
|
91 |
)
|
|
|
|
|
92 |
tokenizer = AutoTokenizer.from_pretrained(
|
93 |
model_dir,
|
94 |
use_fast=True,
|
|
|
89 |
trust_remote_code=False,
|
90 |
ignore_mismatched_sizes=False,
|
91 |
)
|
92 |
+
model.cuda()
|
93 |
+
model.eval()
|
94 |
tokenizer = AutoTokenizer.from_pretrained(
|
95 |
model_dir,
|
96 |
use_fast=True,
|