Update README.md
Browse files
README.md
CHANGED
@@ -171,18 +171,18 @@ class FlagRerankerCustom:
|
|
171 |
return all_scores
|
172 |
|
173 |
tokenizer = transformers.AutoTokenizer.from_pretrained(
|
174 |
-
"neofung/LdIR-Qwen2-reranker-1.5B
|
175 |
padding_side="right",
|
176 |
)
|
177 |
|
178 |
config = Qwen2Config.from_pretrained(
|
179 |
-
"neofung/LdIR-Qwen2-reranker-1.5B
|
180 |
trust_remote_code=True,
|
181 |
bf16=True,
|
182 |
)
|
183 |
|
184 |
model = Qwen2ForSequenceClassification.from_pretrained(
|
185 |
-
"neofung/LdIR-Qwen2-reranker-1.5B
|
186 |
config = config,
|
187 |
trust_remote_code = True,
|
188 |
)
|
|
|
171 |
return all_scores
|
172 |
|
173 |
tokenizer = transformers.AutoTokenizer.from_pretrained(
|
174 |
+
"neofung/LdIR-Qwen2-reranker-1.5B",
|
175 |
padding_side="right",
|
176 |
)
|
177 |
|
178 |
config = Qwen2Config.from_pretrained(
|
179 |
+
"neofung/LdIR-Qwen2-reranker-1.5B",
|
180 |
trust_remote_code=True,
|
181 |
bf16=True,
|
182 |
)
|
183 |
|
184 |
model = Qwen2ForSequenceClassification.from_pretrained(
|
185 |
+
"neofung/LdIR-Qwen2-reranker-1.5B",
|
186 |
config = config,
|
187 |
trust_remote_code = True,
|
188 |
)
|