PyTorch
cadurosar commited on
Commit
7504cba
·
1 Parent(s): 70f429b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -5
README.md CHANGED
@@ -13,20 +13,18 @@ This leads to what seems to be a slightly worse performance (42.8 vs 43.? on the
13
  To use this model, first clone the huggingface repo
14
 
15
  ```
 
16
 
17
  ```
18
 
 
19
 
20
  ```
21
  import torch
22
  from transformers import T5EncoderModel
23
 
24
  class T5EncoderRerank(torch.nn.Module):
25
- def __init__(self, model_type_or_dir,fp16=False, bf16=False):
26
- """
27
- model_type_or_dir is either the name of a pre-trained model (e.g. bert-base-uncased), or the path to
28
- directory containing model weights, vocab etc.
29
- """
30
  super().__init__()
31
  self.model = T5EncoderModel.from_pretrained(model_type_or_dir)
32
  self.config = self.model.config
 
13
  To use this model, first clone the huggingface repo
14
 
15
  ```
16
+ git clone https://huggingface.co/naver/trecdl22-crossencoder-rankT53b-repro
17
 
18
  ```
19
 
20
+ And then we suggest loading it like follows:
21
 
22
  ```
23
  import torch
24
  from transformers import T5EncoderModel
25
 
26
  class T5EncoderRerank(torch.nn.Module):
27
+ def __init__(self, model_type_or_dir):
 
 
 
 
28
  super().__init__()
29
  self.model = T5EncoderModel.from_pretrained(model_type_or_dir)
30
  self.config = self.model.config