Update train_script.py
Browse files- train_script.py +3 -4
train_script.py
CHANGED
|
@@ -17,15 +17,14 @@ logging.basicConfig(
|
|
| 17 |
|
| 18 |
# 1. Load a model to finetune with 2. (Optional) model card data
|
| 19 |
model = SentenceTransformer(
|
| 20 |
-
"
|
| 21 |
-
trust_remote_code=True,
|
| 22 |
model_card_data=SentenceTransformerModelCardData(
|
| 23 |
language="en",
|
| 24 |
license="apache-2.0",
|
| 25 |
-
model_name="
|
| 26 |
),
|
| 27 |
)
|
| 28 |
-
model_name = "
|
| 29 |
|
| 30 |
# 3. Load a dataset to finetune on
|
| 31 |
dataset = load_dataset("sentence-transformers/natural-questions", split="train")
|
|
|
|
| 17 |
|
| 18 |
# 1. Load a model to finetune with 2. (Optional) model card data
|
| 19 |
model = SentenceTransformer(
|
| 20 |
+
"microsoft/mpnet-base",
|
|
|
|
| 21 |
model_card_data=SentenceTransformerModelCardData(
|
| 22 |
language="en",
|
| 23 |
license="apache-2.0",
|
| 24 |
+
model_name="MPNet base trained on Natural Questions pairs",
|
| 25 |
),
|
| 26 |
)
|
| 27 |
+
model_name = "mpnet-base-natural-questions-mnrl"
|
| 28 |
|
| 29 |
# 3. Load a dataset to finetune on
|
| 30 |
dataset = load_dataset("sentence-transformers/natural-questions", split="train")
|