Update README.md
Browse files
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
|
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 |
```
|