|
@@ -53,14 +53,16 @@
|
|
|
"### Input:\n",
|
|
"### Input:\n",
|
|
|
"{data_point[\"input\"]}\n",
|
|
"{data_point[\"input\"]}\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
- "### Response:\"\"\"\n",
|
|
|
|
|
|
|
+ "### Response:\n",
|
|
|
|
|
+ "{data_point[\"output\"]}\"\"\"\n",
|
|
|
" else:\n",
|
|
" else:\n",
|
|
|
" return f\"\"\"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n",
|
|
" return f\"\"\"Below is an instruction that describes a task. Write a response that appropriately completes the request.\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
"### Instruction:\n",
|
|
"### Instruction:\n",
|
|
|
"{data_point[\"instruction\"]}\n",
|
|
"{data_point[\"instruction\"]}\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
- "### Response:\"\"\"\n",
|
|
|
|
|
|
|
+ "### Response:\n",
|
|
|
|
|
+ "{data_point[\"output\"]}\"\"\"\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
"\n",
|
|
"\n",
|
|
|
"data = data.map(lambda data_point: {\"prompt\": tokenizer(generate_prompt(data_point))})"
|
|
"data = data.map(lambda data_point: {\"prompt\": tokenizer(generate_prompt(data_point))})"
|