BAAI
/

Safetensors
xlm-roberta
MonteXiaofeng commited on
Commit
16890fd
·
verified ·
1 Parent(s): d4f3266

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
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,