From 496b83f778e4f31e60ede6c26470acde5a54c8f2 Mon Sep 17 00:00:00 2001 From: NanoCode012 Date: Fri, 2 Jun 2023 12:16:20 +0900 Subject: [PATCH 1/3] Add short instruction for custom prompts --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c355e7279..ccc3a7aa3 100644 --- a/README.md +++ b/README.md @@ -114,8 +114,9 @@ Have dataset(s) in one of the following format (JSONL recommended): ```json {"article": "...", "summary": "..."} ``` - -> Have some new format to propose? Check if it's already defined in [data.py](src/axolotl/utils/data.py) in `dev` branch! +- custom prompts structure: + 1. Add your method to a file in [prompt_strategies](src/axolotl/prompt_strategies). Please see other files as example. + 2. Use your custom file name as the dataset type. From 1c38253692ffafaad030c17701eba84e88263e67 Mon Sep 17 00:00:00 2001 From: NanoCode012 Date: Fri, 2 Jun 2023 12:24:44 +0900 Subject: [PATCH 2/3] Add other prompt_strategies --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index ccc3a7aa3..32a05ff04 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,22 @@ Have dataset(s) in one of the following format (JSONL recommended): ```json {"article": "...", "summary": "..."} ``` +- `alpaca_chat.load_qa`: question and answer for alpaca chat + ```json + {"question": "...", "answer": "..."} + ``` +- `creative_acr.load_answer`: instruction and revision + ```json + {"instruction": "...", "revision": "..."} + ``` +- `creative_acr.load_critique`: critique + ```json + {"scores": "...", "critiques": "...", "instruction": "...", "answer": "..."} + ``` +- `creative_acr.load_revise`: critique and revise + ```json + {"scores": "...", "critiques": "...", "instruction": "...", "answer": "...", "revision": "..."} + ``` - custom prompts structure: 1. Add your method to a file in [prompt_strategies](src/axolotl/prompt_strategies). Please see other files as example. 2. Use your custom file name as the dataset type. From 33e1890086168ebc990a3e791eb01c851edb83fc Mon Sep 17 00:00:00 2001 From: NanoCode012 Date: Fri, 2 Jun 2023 12:27:51 +0900 Subject: [PATCH 3/3] Add pygmalion --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 32a05ff04..7f11e9fe5 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,10 @@ Have dataset(s) in one of the following format (JSONL recommended): ```json {"scores": "...", "critiques": "...", "instruction": "...", "answer": "...", "revision": "..."} ``` +- `pygmalion`: pygmalion + ```json + {"conversations": [{"role": "...", "value": "..."}]} + ``` - custom prompts structure: 1. Add your method to a file in [prompt_strategies](src/axolotl/prompt_strategies). Please see other files as example. 2. Use your custom file name as the dataset type.