From 09de0dc1a4ceea419673b9ac2e0af13e2c253d1c Mon Sep 17 00:00:00 2001 From: Amol Dumrewal Date: Thu, 8 Feb 2024 04:26:49 -0800 Subject: [PATCH 1/2] Update codellama.md Fix the sample code for on-going conversation with codellama instruct model. Line 260 should not have suffix append instruction instead it should be a simple value assignment. --- codellama.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codellama.md b/codellama.md index 6732e2a5ad..68bd14f6b0 100644 --- a/codellama.md +++ b/codellama.md @@ -257,7 +257,7 @@ answer_2 = "answer_2" user_3 = "user_prompt_3" prompt = f"<>\\n{system}\\n<>\\n\\n{user_1}" -prompt += f"[INST] {prompt.strip()} [/INST] {answer_1.strip()} " +prompt = f"[INST] {prompt.strip()} [/INST] {answer_1.strip()} " prompt += f"[INST] {user_2.strip()} [/INST] {answer_2.strip()} " prompt += f"[INST] {user_3.strip()} [/INST]" From e1a04afa9bae3e7a15894b7187c23bc15fa0ec84 Mon Sep 17 00:00:00 2001 From: Amol Dumrewal Date: Thu, 8 Feb 2024 06:01:11 -0800 Subject: [PATCH 2/2] Update codellama.md Co-authored-by: Pedro Cuenca --- codellama.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codellama.md b/codellama.md index 68bd14f6b0..b049315f80 100644 --- a/codellama.md +++ b/codellama.md @@ -256,7 +256,7 @@ user_2 = "user_prompt_2" answer_2 = "answer_2" user_3 = "user_prompt_3" -prompt = f"<>\\n{system}\\n<>\\n\\n{user_1}" +prompt = f"<>\n{system}\n<>\n\n{user_1}" prompt = f"[INST] {prompt.strip()} [/INST] {answer_1.strip()} " prompt += f"[INST] {user_2.strip()} [/INST] {answer_2.strip()} " prompt += f"[INST] {user_3.strip()} [/INST]"