QYWH commited on
Commit
690dffa
·
verified ·
1 Parent(s): 1d58e1f

Upload pipeline.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. pipeline.yaml +269 -0
pipeline.yaml ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ distilabel:
2
+ version: 1.5.3
3
+ pipeline:
4
+ name: /home/jgw/yhx/jiangu-ri/open-r1/data/DeepSeek-R1-Distill-Qwen-1.5B-GRPO_jijin
5
+ description: A pipeline to generate data from a distilled r1 model
6
+ steps:
7
+ - step:
8
+ name: text_generation_0
9
+ resources:
10
+ replicas: 1
11
+ cpus: null
12
+ gpus: null
13
+ memory: null
14
+ resources: null
15
+ input_mappings:
16
+ instruction: problem
17
+ output_mappings: {}
18
+ use_cache: true
19
+ input_batch_size: 50
20
+ llm:
21
+ cuda_devices: auto
22
+ disable_cuda_device_placement: false
23
+ use_magpie_template: false
24
+ magpie_pre_query_template: null
25
+ generation_kwargs:
26
+ temperature: 0.6
27
+ max_new_tokens: 8192
28
+ use_offline_batch_generation: false
29
+ offline_batch_generation_block_until_done: null
30
+ jobs_ids: null
31
+ model: /home/jgw/yhx/jiangu-ri/open-r1/data/DeepSeek-R1-Distill-Qwen-1.5B-GRPO
32
+ dtype: auto
33
+ trust_remote_code: false
34
+ quantization: null
35
+ revision: null
36
+ tokenizer: /home/jgw/yhx/jiangu-ri/open-r1/data/DeepSeek-R1-Distill-Qwen-1.5B-GRPO
37
+ tokenizer_mode: auto
38
+ tokenizer_revision: null
39
+ skip_tokenizer_init: false
40
+ chat_template: null
41
+ seed: 0
42
+ extra_kwargs:
43
+ tensor_parallel_size: 1
44
+ max_model_len: 8192
45
+ structured_output: null
46
+ type_info:
47
+ module: distilabel.models.llms.vllm
48
+ name: vLLM
49
+ group_generations: false
50
+ add_raw_output: true
51
+ add_raw_input: true
52
+ num_generations: 4
53
+ use_default_structured_output: false
54
+ system_prompt: "\u52A9\u624B\u9996\u5148\u5728\u5934\u8111\u4E2D\u601D\u8003\
55
+ \u63A8\u7406\u8FC7\u7A0B\uFF0C\u7136\u540E\u76F4\u63A5\u5411\u7528\u6237\u63D0\
56
+ \u4F9B\u7B54\u6848\uFF0C\u7B54\u6848\u5C3D\u91CF\u7B80\u6D01\u3002\u63A8\u7406\
57
+ \u8FC7\u7A0B\u5305\u542B\u5728 <think></think> \u6807\u7B7E\u4E2D\u3002\u6BD4\
58
+ \u5982<think>\u63A8\u7406\u8FC7\u7A0B\u5728\u8FD9\u91CC</think>\u56DE\u7B54\
59
+ \u5728\u8FD9\u91CC"
60
+ use_system_prompt: true
61
+ template: '{{instruction}}'
62
+ columns:
63
+ - instruction
64
+ runtime_parameters_info:
65
+ - name: resources
66
+ runtime_parameters_info:
67
+ - name: replicas
68
+ optional: true
69
+ description: The number of replicas for the step.
70
+ - name: cpus
71
+ optional: true
72
+ description: The number of CPUs assigned to each step replica.
73
+ - name: gpus
74
+ optional: true
75
+ description: The number of GPUs assigned to each step replica.
76
+ - name: memory
77
+ optional: true
78
+ description: The memory in bytes required for each step replica.
79
+ - name: resources
80
+ optional: true
81
+ description: A dictionary containing names of custom resources and the number
82
+ of those resources required for each step replica.
83
+ - name: input_batch_size
84
+ optional: true
85
+ description: The number of rows that will contain the batches processed by
86
+ the step.
87
+ - name: llm
88
+ runtime_parameters_info:
89
+ - name: cuda_devices
90
+ optional: true
91
+ description: A list with the ID of the CUDA devices to be used.
92
+ - name: disable_cuda_device_placement
93
+ optional: true
94
+ description: Whether to disable the CUDA device placement logic or not.
95
+ - name: generation_kwargs
96
+ description: The kwargs to be propagated to either `generate` or `agenerate`
97
+ methods within each `LLM`.
98
+ keys:
99
+ - name: max_new_tokens
100
+ optional: true
101
+ description: the maximum number of new tokens that the model will generate. Defaults
102
+ to `128`.
103
+ - name: presence_penalty
104
+ optional: true
105
+ description: the presence penalty to use for the generation. Defaults
106
+ to `0.0`.
107
+ - name: frequency_penalty
108
+ optional: true
109
+ description: the repetition penalty to use for the generation. Defaults to
110
+ `0.0`.
111
+ - name: repetition_penalty
112
+ optional: true
113
+ description: the repetition penalty to use for the generation Defaults
114
+ to `1.0`.
115
+ - name: temperature
116
+ optional: true
117
+ description: the temperature to use for the generation. Defaults to `0.1`.
118
+ - name: top_p
119
+ optional: true
120
+ description: the top-p value to use for the generation. Defaults to `1.0`.
121
+ - name: top_k
122
+ optional: true
123
+ description: the top-k value to use for the generation. Defaults to `0`.
124
+ - name: min_p
125
+ optional: true
126
+ description: the minimum probability to use for the generation. Defaults
127
+ to `0.0`.
128
+ - name: logprobs
129
+ optional: true
130
+ description: number of log probabilities to return per output token. If
131
+ `None`, then no log probability won't be returned. Defaults to `None`.
132
+ - name: stop
133
+ optional: true
134
+ description: a list of strings that will be used to stop the generation
135
+ when found. Defaults to `None`.
136
+ - name: stop_token_ids
137
+ optional: true
138
+ description: a list of token ids that will be used to stop the generation when
139
+ found. Defaults to `None`.
140
+ - name: include_stop_str_in_output
141
+ optional: true
142
+ description: whether to include the stop string in the output. Defaults
143
+ to `False`.
144
+ - name: skip_special_tokens
145
+ optional: true
146
+ description: whether to exclude special tokens from the output. Defaults to
147
+ `False`.
148
+ - name: logits_processors
149
+ optional: true
150
+ description: a list of functions to process the logits before sampling. Defaults
151
+ to `None`.
152
+ - name: extra_sampling_params
153
+ optional: true
154
+ description: dictionary with additional arguments to be passed to the
155
+ `SamplingParams` class from `vllm`.
156
+ - name: echo
157
+ optional: true
158
+ description: whether to echo the include the prompt in the response or
159
+ not. Defaults to `False`.
160
+ - name: use_offline_batch_generation
161
+ optional: true
162
+ description: Whether to use the `offline_batch_generate` method to generate
163
+ the responses.
164
+ - name: offline_batch_generation_block_until_done
165
+ optional: true
166
+ description: If provided, then polling will be done until the `ofline_batch_generate`
167
+ method is able to retrieve the results. The value indicate the time to
168
+ wait between each polling.
169
+ - name: extra_kwargs
170
+ optional: true
171
+ description: 'Additional dictionary of keyword arguments that will be passed
172
+ to the `vLLM` class of `vllm` library. See all the supported arguments
173
+ at: https://github.com/vllm-project/vllm/blob/main/vllm/entrypoints/llm.py'
174
+ - name: structured_output
175
+ optional: true
176
+ description: The structured output format to use across all the generations.
177
+ - name: add_raw_output
178
+ optional: true
179
+ description: Whether to include the raw output of the LLM in the key `raw_output_<TASK_NAME>`
180
+ of the `distilabel_metadata` dictionary output column
181
+ - name: add_raw_input
182
+ optional: true
183
+ description: Whether to include the raw input of the LLM in the key `raw_input_<TASK_NAME>`
184
+ of the `distilabel_metadata` dictionary column
185
+ - name: num_generations
186
+ optional: true
187
+ description: The number of generations to be produced per input.
188
+ type_info:
189
+ module: distilabel.steps.tasks.text_generation
190
+ name: TextGeneration
191
+ name: text_generation_0
192
+ - step:
193
+ name: load_data_from_hub_0
194
+ resources:
195
+ replicas: 1
196
+ cpus: null
197
+ gpus: null
198
+ memory: null
199
+ resources: null
200
+ input_mappings: {}
201
+ output_mappings: {}
202
+ use_cache: true
203
+ batch_size: 50
204
+ repo_id: default_name
205
+ split: train
206
+ config: null
207
+ revision: null
208
+ streaming: false
209
+ num_examples: 20
210
+ storage_options: null
211
+ runtime_parameters_info:
212
+ - name: resources
213
+ runtime_parameters_info:
214
+ - name: replicas
215
+ optional: true
216
+ description: The number of replicas for the step.
217
+ - name: cpus
218
+ optional: true
219
+ description: The number of CPUs assigned to each step replica.
220
+ - name: gpus
221
+ optional: true
222
+ description: The number of GPUs assigned to each step replica.
223
+ - name: memory
224
+ optional: true
225
+ description: The memory in bytes required for each step replica.
226
+ - name: resources
227
+ optional: true
228
+ description: A dictionary containing names of custom resources and the number
229
+ of those resources required for each step replica.
230
+ - name: batch_size
231
+ optional: true
232
+ description: The number of rows that will contain the batches generated by
233
+ the step.
234
+ - name: repo_id
235
+ optional: false
236
+ description: The Hugging Face Hub repository ID of the dataset to load.
237
+ - name: split
238
+ optional: true
239
+ description: The split of the dataset to load. Defaults to 'train'.
240
+ - name: config
241
+ optional: true
242
+ description: The configuration of the dataset to load. This is optional and
243
+ only needed if the dataset has multiple configurations.
244
+ - name: revision
245
+ optional: true
246
+ description: The revision of the dataset to load. Defaults to the latest revision.
247
+ - name: streaming
248
+ optional: true
249
+ description: Whether to load the dataset in streaming mode or not. Defaults
250
+ to False.
251
+ - name: num_examples
252
+ optional: true
253
+ description: The number of examples to load from the dataset. By default will
254
+ load all examples.
255
+ type_info:
256
+ module: distilabel.steps.generators.huggingface
257
+ name: LoadDataFromHub
258
+ name: load_data_from_hub_0
259
+ connections:
260
+ - from: text_generation_0
261
+ to: []
262
+ - from: load_data_from_hub_0
263
+ to:
264
+ - text_generation_0
265
+ routing_batch_functions: []
266
+ type_info:
267
+ module: distilabel.pipeline.local
268
+ name: Pipeline
269
+ requirements: []