From ab0cfcecc47715698039aec5ce24a4ad0c900460 Mon Sep 17 00:00:00 2001 From: Sean Shi Date: Tue, 18 Jul 2023 17:46:17 -0700 Subject: [PATCH 1/2] make code changes --- docs/examples/finetuning.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/finetuning.ipynb b/docs/examples/finetuning.ipynb index 5f8a436d..819b85fa 100644 --- a/docs/examples/finetuning.ipynb +++ b/docs/examples/finetuning.ipynb @@ -304,7 +304,7 @@ "outputs": [], "source": [ "create_fine_tune_response = FineTune.create(\n", - " model=\"llama-7b\",\n", + " model=\"llama-2-7b\",\n", " training_file=\"https://scale-demo-datasets.s3.us-west-2.amazonaws.com/sports/sports_training_dataset.csv\",\n", " validation_file=None,\n", " hyperparameters={\"epochs\": \"1\", \"lr\": \"0.0002\"},\n", @@ -355,7 +355,7 @@ "metadata": {}, "outputs": [], "source": [ - "your_fine_tuned_model = \"llama-7b.my-first-finetune.2023-07-18-20-28-50\" # Note: you will have a different model!" + "your_fine_tuned_model = \"llama-2-7b.my-first-finetune.2023-07-18-20-28-50\" # Note: you will have a different model!" ] }, { From fb1290853dc848615b99277075276f8d286da3cd Mon Sep 17 00:00:00 2001 From: Sean Shi Date: Tue, 18 Jul 2023 18:20:26 -0700 Subject: [PATCH 2/2] update cookbook with numbers --- docs/examples/finetuning.ipynb | 48 ++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/docs/examples/finetuning.ipynb b/docs/examples/finetuning.ipynb index 819b85fa..16573392 100644 --- a/docs/examples/finetuning.ipynb +++ b/docs/examples/finetuning.ipynb @@ -299,7 +299,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -316,9 +316,17 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "BatchJobStatus.RUNNING\n" + ] + } + ], "source": [ "# Wait for fine tune to complete\n", "\n", @@ -351,11 +359,11 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ - "your_fine_tuned_model = \"llama-2-7b.my-first-finetune.2023-07-18-20-28-50\" # Note: you will have a different model!" + "your_fine_tuned_model = \"llama-2-7b.my-first-fine-tune.2023-07-19-00-48-07\" # Note: you will have a different model!" ] }, { @@ -374,7 +382,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -412,7 +420,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -492,7 +500,7 @@ "954 hockey " ] }, - "execution_count": 13, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -503,16 +511,16 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "1.0" + "0.98" ] }, - "execution_count": 14, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -524,7 +532,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -554,17 +562,25 @@ " \n", " \n", " \n", + " \n", + " 974\n", + " From: maX <maX@maxim.rinaco.msk.su>\\nSubject: ...\n", + " hockey\n", + " baseball\n", + " \n", " \n", "\n", "" ], "text/plain": [ - "Empty DataFrame\n", - "Columns: [raw_prompt, response, predicted_response]\n", - "Index: []" + " raw_prompt response \\\n", + "974 From: maX \\nSubject: ... hockey \n", + "\n", + " predicted_response \n", + "974 baseball " ] }, - "execution_count": 15, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" }