You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {instruction}\nInput:\n{input} ASSISTANT:"
31
+
),
32
+
"prompt_no_input": (
33
+
"A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {instruction} ASSISTANT:"
34
+
),
35
+
}
20
36
21
37
defparse_args():
22
-
parser=argparse.ArgumentParser(description="Finetune a transformers model on a summarization task")
38
+
parser=argparse.ArgumentParser()
23
39
parser.add_argument(
24
40
"--dataset_name",
25
41
type=str,
26
42
default=None,
27
43
help="The name of the dataset to use (via the datasets library).",
28
44
)
29
45
parser.add_argument(
30
-
"--training_data_source_name",
46
+
"--prompt",
31
47
type=str,
32
48
default='alpaca',
33
-
help="The training_data_source_name.",
49
+
help="alpaca, wiz, vicuna.",
34
50
)
35
51
parser.add_argument(
36
52
"--num_beams",
@@ -47,12 +63,6 @@ def parse_args():
47
63
help="Path to pretrained model or model identifier from huggingface.co/models.",
48
64
required=False,
49
65
)
50
-
parser.add_argument(
51
-
"--per_device_eval_batch_size",
52
-
type=int,
53
-
default=8,
54
-
help="Batch size (per device) for the evaluation dataloader.",
55
-
)
56
66
parser.add_argument("--seed", type=int, default=0, help="A seed for reproducible training.")
0 commit comments