EtashGuha commited on
Commit
d6207f6
·
verified ·
1 Parent(s): 1a4c73c

Automatic dcft datacuration framework upload for oh_v1.2_evol_instruct_x4

Browse files
config/Airoboros/stage_1_categories/airoboros_stage_1_coding_instructions_gpt-4o-mini.yaml ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ operators:
2
+ - id: args_dataset
3
+ config:
4
+ type: function
5
+ function: data_strategies.commons.create_constant_dataset
6
+ function_config:
7
+ language: English
8
+ batch_size: 10
9
+ coding_languages:
10
+ - python
11
+ - javascript
12
+ - java
13
+ - c
14
+ - c++
15
+ - golang
16
+ - C#
17
+ - bash
18
+ - powershell
19
+ - SQL
20
+ related_software:
21
+ - elasticsearch
22
+ - opensearch
23
+ - mongodb
24
+ - cassandra
25
+ - redis
26
+ - memcached
27
+ - postgresql
28
+ - mariadb
29
+ - mysql
30
+ - aws s3
31
+ - gcs cloud storage
32
+ - azure storage
33
+ - aws lambda
34
+ - kubernetes
35
+ - pytorch
36
+ - pandas
37
+ - numpy
38
+ - keras
39
+ - tensorflow
40
+ - scipy
41
+ - matplotlib
42
+ - django
43
+ - cherrypy
44
+ - swagger/openapi
45
+ - pyramid web framework
46
+ min_docsearch_score: 0.04
47
+ airoboros_subset: coding
48
+
49
+ - id: sample_coding_instructions_args
50
+ config:
51
+ type: function
52
+ function: data_strategies.Airoboros.utils.sample_coding_instructions_args
53
+ function_config:
54
+ n_samples: 1200 # Use this to control the output size
55
+ input_ids:
56
+ - args_dataset
57
+
58
+ - id: generate_instructions
59
+ config:
60
+ type: completions
61
+ map: list
62
+ map_config:
63
+ user_message: |
64
+ I would like you to help me create a set of coding and/or scripting tasks.
65
+
66
+ Here are a few example tasks:
67
+ Example:
68
+ Write an async python FastAPI server. The webserver should support command line arguments for port, listening IP, and a static directory to serve files from and save files to. In addition to static files, the webserver should support an upload endpoint, which saves files to the specified directory, using the sha256 hexdigest of the content for the file name. If the file already exists, the upload should be discarded. In addition, there should be an endpoint to list all files and get a file by ID.
69
+
70
+ Example:
71
+ Create a python model for "Person" that would work well in a workplace context, along with validators, and a way to fetch remote information related to the person such as social media profiles/content. Be sure to include a profile image with remote file and crop/resize support.
72
+
73
+ Example:
74
+ Implement the B*tree algorithm in Javascript.
75
+
76
+ Example:
77
+ Write a solution to Djikstra's algorithm in GoLang.
78
+
79
+ Example:
80
+ Create an ascii snake game in Python, without any graphical libraries.
81
+
82
+ Example:
83
+ Create a text-based solitaire implementation using python. Here are some additional requirements:
84
+ - The game state should be saved to mariadb.
85
+ - The game should take a screenshot after each move as a record.
86
+ - The game should accept keyboard input only, not mouse.
87
+
88
+ Example:
89
+ Create a python script with the following:
90
+ a. Accepts a single word as input.
91
+ b. If the user inputs more than one word, or the word is more than 10 characters, print an error message and stop.
92
+ c. Generate a large ascii art version of the input word.
93
+
94
+ The tasks must be something a coding language model can complete without access to additional resources.
95
+
96
+ The tasks must be something that could be completed with 2000 words and symbols or less.
97
+
98
+ {{coding_languages}}
99
+
100
+ The tasks should be in {{language}}.
101
+
102
+ Don't prefix the tasks with the language, simply include the language to be used somewhere in the wording of the task.
103
+
104
+ {{related_software}}
105
+
106
+ None of the tasks should be about reading from or writing to csvs.
107
+
108
+ Give me {{batch_size}} new coding tasks. Do not number the tasks, just provide the tasks.
109
+ output_column: instruction
110
+ model: gpt-4o-mini
111
+ temperature: 0.7
112
+ top_p: 0.5
113
+ presence_penalty: 2.0
114
+ input_ids:
115
+ - sample_coding_instructions_args
116
+
117
+ - id: drop_columns
118
+ config:
119
+ type: function
120
+ function: data_strategies.commons.remove_columns
121
+ function_config:
122
+ columns:
123
+ - language
124
+ - batch_size
125
+ - coding_languages
126
+ - related_software
127
+ input_ids:
128
+ - generate_instructions
129
+
130
+ # target count is 12000