Update FLAN-5m.ipynb

This commit is contained in:
Eric Hartford 2023-06-17 12:50:34 +00:00 committed by huggingface-web
parent b467f6ca3c
commit 27398f9364

@ -82,7 +82,7 @@
" f = open(\"data/cot.jsonl\", \"w\", encoding='utf8')\n", " f = open(\"data/cot.jsonl\", \"w\", encoding='utf8')\n",
" stream = tqdm.tqdm(cot, total=cot_total) \n", " stream = tqdm.tqdm(cot, total=cot_total) \n",
" for i, data in enumerate(stream):\n", " for i, data in enumerate(stream):\n",
" if data['template_type'] != 'zs_opt':\n", " if not 'zs' in data['template_type']:\n",
" continue\n", " continue\n",
" question = data['inputs']\n", " question = data['inputs']\n",
" system_prompt = sm_cot()\n", " system_prompt = sm_cot()\n",