Pooya-Fallah commited on
Commit
a9fea43
1 Parent(s): ec6e7b5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -3
README.md CHANGED
@@ -32,7 +32,6 @@ It achieves the following results on the evaluation set:
32
  ``` python
33
  import torch
34
  import transformers
35
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
36
 
37
  model_name_or_path = "parsi-ai-nlpclass/ParsBERT-nli-FarsTail-FarSick"
38
  config = transformers.AutoConfig.from_pretrained(model_name_or_path)
@@ -42,8 +41,6 @@ model_pb = transformers.AutoModelForSequenceClassification.from_pretrained(model
42
  premise = "سلام خوبی؟"
43
  hypothesis = "آره خوبم"
44
  print(model_pb(**tokenizer_pb(premise, hypothesis, return_tensors='pt')))
45
-
46
- model_pb.to(device)
47
  ```
48
 
49
  ### Training hyperparameters
 
32
  ``` python
33
  import torch
34
  import transformers
 
35
 
36
  model_name_or_path = "parsi-ai-nlpclass/ParsBERT-nli-FarsTail-FarSick"
37
  config = transformers.AutoConfig.from_pretrained(model_name_or_path)
 
41
  premise = "سلام خوبی؟"
42
  hypothesis = "آره خوبم"
43
  print(model_pb(**tokenizer_pb(premise, hypothesis, return_tensors='pt')))
 
 
44
  ```
45
 
46
  ### Training hyperparameters