tomaarsen HF staff commited on
Commit
aa6bf61
1 Parent(s): 6f5e3ad

Update train_script.py

Browse files
Files changed (1) hide show
  1. 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
- "jinaai/jina-embeddings-v2-base-en",
21
- trust_remote_code=True,
22
  model_card_data=SentenceTransformerModelCardData(
23
  language="en",
24
  license="apache-2.0",
25
- model_name="jina-embeddings-v2-base-en trained on Natural Questions pairs",
26
  ),
27
  )
28
- model_name = "jina-v2-base-natural-questions"
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")