瀏覽代碼

lengths cleanup

Eric Wang 3 年之前
父節點
當前提交
15fb2b178b
共有 1 個文件被更改,包括 4 次插入2 次删除
  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))})"