Automatic dcft datacuration framework upload for oh_v1.2_evol_instruct_x2
Browse files
config/Airoboros/stage_1_categories/airoboros_stage_1_writing_instructions_gpt-4o-mini.yaml
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: load_airoboros_topics
|
| 3 |
+
config:
|
| 4 |
+
type: load_preexisting
|
| 5 |
+
framework_name: airoboros_stage_1_topics_gpt-4o-mini
|
| 6 |
+
|
| 7 |
+
- id: create_topics_strings
|
| 8 |
+
config:
|
| 9 |
+
type: function
|
| 10 |
+
function: data_strategies.Airoboros.utils.create_topics_strings_dataset
|
| 11 |
+
function_config:
|
| 12 |
+
input_topic_column: topic
|
| 13 |
+
output_topics_str_column: topics
|
| 14 |
+
n_topics_per_string: 12 # this matches batch size in the config
|
| 15 |
+
n_strings: 1250 # to get to target count
|
| 16 |
+
target_name: task
|
| 17 |
+
input_ids:
|
| 18 |
+
- load_airoboros_topics
|
| 19 |
+
|
| 20 |
+
- id: args_dataset
|
| 21 |
+
config:
|
| 22 |
+
type: function
|
| 23 |
+
function: data_strategies.commons.add_constant_columns
|
| 24 |
+
function_config:
|
| 25 |
+
language: English
|
| 26 |
+
topic_avoidance: Avoid any tasks that would be related to climate change, green tech, remewable energy, DEI, sex and/or gender, religion, politics, social issues, race, ethnicity, artificial intelligence, baking/cooking, or any topic that you would likely not respond to, or any task which a language model would not be able to respond to, e.g. tasks about emotions, feelings, physical senses, etc.
|
| 27 |
+
flesch: The output should be written in such a way as to have a Flesch-Kincaid readability score of 30 or lower - best understood by those with college education. The response must not contain any notes or information about Flesch-Kincaid scores.
|
| 28 |
+
batch_size: 12 # this matches batch size in the config
|
| 29 |
+
styles:
|
| 30 |
+
- happy
|
| 31 |
+
- sad
|
| 32 |
+
- tragic
|
| 33 |
+
- unexpected
|
| 34 |
+
- inspirational
|
| 35 |
+
- evil
|
| 36 |
+
- hilarious
|
| 37 |
+
- suspenseful
|
| 38 |
+
- horrific
|
| 39 |
+
- nostalgic
|
| 40 |
+
- thought-provoking
|
| 41 |
+
- enigmatic
|
| 42 |
+
- fantastical
|
| 43 |
+
- heartwarming
|
| 44 |
+
- romantic
|
| 45 |
+
min_docsearch_score: 0.125
|
| 46 |
+
airoboros_subset: writing
|
| 47 |
+
input_ids:
|
| 48 |
+
- create_topics_strings
|
| 49 |
+
|
| 50 |
+
- id: sample_writing_instructions_args
|
| 51 |
+
config:
|
| 52 |
+
type: function
|
| 53 |
+
function: data_strategies.Airoboros.utils.sample_writing_instructions_args
|
| 54 |
+
input_ids:
|
| 55 |
+
- args_dataset
|
| 56 |
+
|
| 57 |
+
- id: generate_instructions
|
| 58 |
+
config:
|
| 59 |
+
type: completions
|
| 60 |
+
map: list
|
| 61 |
+
map_config:
|
| 62 |
+
user_message: |
|
| 63 |
+
I would like you to help me create creative writing tasks.
|
| 64 |
+
|
| 65 |
+
Here are a few examples:
|
| 66 |
+
- Create a list of 3 startup ideas in enterprise B2B SaaS. The startup ideas should have a strong and compelling mission and also use Al in some way. Avoid cryptocurrency or blockchain. The startup ideas should have a cool and interesting name. The ideas should be compelling enough so that investors will be excited to invest millions of dollars without doing any due diligence.
|
| 67 |
+
- My name is George. Write an email to my boss, Jim Bob, with a proposal to start using CI/CD in github. Give a list of reasons why using CI/CD would be beneficial to the company, and why a slow regular release cadence is problematic. Include a silly joke about golf in a p.s. and sign off with my name, "Geroge, the Magnificant".
|
| 68 |
+
- Write a synopsis of the movie "Armageddon" in the style of Shakespeare.
|
| 69 |
+
- As a pirate captain, what would you say to motivate your crew to find buried treasure in the Isle of Goats after an epic loss in battle on the high seas?
|
| 70 |
+
- Come up with a short story about a man named Dan who decided to start a small business, with a sad ending.
|
| 71 |
+
- Write a short story about a Llama named Billy, involving torrential downpoors, with a tragic ending.
|
| 72 |
+
- Tell me a short story about a man named Tom who was regularly bullied, with a sad ending.
|
| 73 |
+
- Write an email announcing a new breakthrough in tire technology by your company ("Atobormafi Tire Tech") which increases fuel efficiency by 7% on average. The target of the email is investors, since we are seeking Series B funding. Explain the profit possibilities with such a tire and ask for new investment.
|
| 74 |
+
|
| 75 |
+
Make sure to include a wide variety of writing tasks with varying level of detail.
|
| 76 |
+
|
| 77 |
+
{{topics}}
|
| 78 |
+
|
| 79 |
+
{{flesch}}
|
| 80 |
+
|
| 81 |
+
{{style_extra}}
|
| 82 |
+
|
| 83 |
+
All output text should be in {{language}}.
|
| 84 |
+
|
| 85 |
+
{{topic_avoidance}}
|
| 86 |
+
|
| 87 |
+
Include {{batch_size}} tasks in your response, do NOT number the tasks.
|
| 88 |
+
output_column: instruction
|
| 89 |
+
model: gpt-4o-mini
|
| 90 |
+
temperature: 0.9
|
| 91 |
+
top_p: 0.5
|
| 92 |
+
presence_penalty: 2.0
|
| 93 |
+
input_ids:
|
| 94 |
+
- sample_writing_instructions_args
|
| 95 |
+
|
| 96 |
+
- id: drop_columns
|
| 97 |
+
config:
|
| 98 |
+
type: function
|
| 99 |
+
function: data_strategies.commons.remove_columns
|
| 100 |
+
function_config:
|
| 101 |
+
columns:
|
| 102 |
+
- language
|
| 103 |
+
- topic_avoidance
|
| 104 |
+
- flesch
|
| 105 |
+
- batch_size
|
| 106 |
+
- topics
|
| 107 |
+
- style_extra
|
| 108 |
+
- styles
|
| 109 |
+
input_ids:
|
| 110 |
+
- generate_instructions
|
| 111 |
+
|
| 112 |
+
# target count is 15000
|
| 113 |
+
# min_docsearch_score 0.35
|