nb refinements
Browse files- notebooks/training.ipynb +2 -2
notebooks/training.ipynb
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
"\n",
|
12 |
"**👣 For a complete walk-through of the fine-tuning process, check out the [accompanying article](https://huggingface.co/blog/anakin87/spectrum).**\n",
|
13 |
"\n",
|
14 |
-
"
|
15 |
"- [🪪 fine-tuned model: Phi-3.5-mini-ITA](https://huggingface.co/anakin87/Phi-3.5-mini-ITA)\n",
|
16 |
"- [💬🇮🇹 Chat with the model](https://huggingface.co/spaces/anakin87/Phi-3.5-mini-ITA)"
|
17 |
]
|
@@ -257,7 +257,7 @@
|
|
257 |
"\n",
|
258 |
"finetome_ds = Dataset.from_list([process_conversation(row) for row in finetome_ds])\n",
|
259 |
"\n",
|
260 |
-
"tokenizer = AutoTokenizer.from_pretrained(\"microsoft/Phi-3.5-mini-instruct\")\n",
|
261 |
"\n",
|
262 |
"def apply_template(examples):\n",
|
263 |
" text = [tokenizer.apply_chat_template(msg, tokenize=False, add_generation_prompt=False) for msg in examples[\"conversations\"]]\n",
|
|
|
11 |
"\n",
|
12 |
"**👣 For a complete walk-through of the fine-tuning process, check out the [accompanying article](https://huggingface.co/blog/anakin87/spectrum).**\n",
|
13 |
"\n",
|
14 |
+
"\n",
|
15 |
"- [🪪 fine-tuned model: Phi-3.5-mini-ITA](https://huggingface.co/anakin87/Phi-3.5-mini-ITA)\n",
|
16 |
"- [💬🇮🇹 Chat with the model](https://huggingface.co/spaces/anakin87/Phi-3.5-mini-ITA)"
|
17 |
]
|
|
|
257 |
"\n",
|
258 |
"finetome_ds = Dataset.from_list([process_conversation(row) for row in finetome_ds])\n",
|
259 |
"\n",
|
260 |
+
"tokenizer = AutoTokenizer.from_pretrained(\"microsoft/Phi-3.5-mini-instruct\", trust_remote_code=True)\n",
|
261 |
"\n",
|
262 |
"def apply_template(examples):\n",
|
263 |
" text = [tokenizer.apply_chat_template(msg, tokenize=False, add_generation_prompt=False) for msg in examples[\"conversations\"]]\n",
|