PyTorch
cadurosar commited on
Commit
ff4e33d
·
1 Parent(s): d32f7fb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -47,9 +47,11 @@ original_model="t5-3b"
47
  path_checkpoint="trecdl22-crossencoder-rankT53b-repro/pytorch_model.bin"
48
 
49
  print("Loading")
50
- model = T5EncoderRerank(original_model,bf16=True)
51
  model.load_state_dict(torch.load(path_checkpoint,map_location=torch.device("cpu")))
52
  device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
53
  model.to(device)
54
  tokenizer = AutoTokenizer.from_pretrained(original_model)
 
 
55
  ```
 
47
  path_checkpoint="trecdl22-crossencoder-rankT53b-repro/pytorch_model.bin"
48
 
49
  print("Loading")
50
+ model = T5EncoderRerank(original_model)
51
  model.load_state_dict(torch.load(path_checkpoint,map_location=torch.device("cpu")))
52
  device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
53
  model.to(device)
54
  tokenizer = AutoTokenizer.from_pretrained(original_model)
55
+ print("loaded")
56
+
57
  ```