Parcourir la source

lengths cleanup

Eric Wang il y a 3 ans
Parent
commit
15fb2b178b
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      lengths.ipynb

+ 4 - 2
lengths.ipynb

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