Upload pipeline.yaml with huggingface_hub
Browse files- pipeline.yaml +115 -9
pipeline.yaml
CHANGED
@@ -71,7 +71,7 @@ pipeline:
|
|
71 |
name: LoadDataFromHub
|
72 |
name: load_data
|
73 |
- step:
|
74 |
-
name:
|
75 |
resources:
|
76 |
replicas: 1
|
77 |
cpus: null
|
@@ -171,7 +171,109 @@ pipeline:
|
|
171 |
type_info:
|
172 |
module: __main__
|
173 |
name: ImageGeneration
|
174 |
-
name:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
- step:
|
176 |
name: sdxl
|
177 |
resources:
|
@@ -275,7 +377,7 @@ pipeline:
|
|
275 |
name: ImageGeneration
|
276 |
name: sdxl
|
277 |
- step:
|
278 |
-
name:
|
279 |
resources:
|
280 |
replicas: 1
|
281 |
cpus: null
|
@@ -292,7 +394,7 @@ pipeline:
|
|
292 |
use_offline_batch_generation: false
|
293 |
offline_batch_generation_block_until_done: null
|
294 |
jobs_ids: null
|
295 |
-
model_id:
|
296 |
endpoint_name: null
|
297 |
endpoint_namespace: null
|
298 |
base_url: null
|
@@ -375,7 +477,7 @@ pipeline:
|
|
375 |
type_info:
|
376 |
module: __main__
|
377 |
name: ImageGeneration
|
378 |
-
name:
|
379 |
- step:
|
380 |
name: group_columns_0
|
381 |
resources:
|
@@ -465,16 +567,20 @@ pipeline:
|
|
465 |
connections:
|
466 |
- from: load_data
|
467 |
to:
|
468 |
-
-
|
|
|
469 |
- sdxl
|
470 |
-
-
|
471 |
-
- from:
|
|
|
|
|
|
|
472 |
to:
|
473 |
- group_columns_0
|
474 |
- from: sdxl
|
475 |
to:
|
476 |
- group_columns_0
|
477 |
-
- from:
|
478 |
to:
|
479 |
- group_columns_0
|
480 |
- from: group_columns_0
|
|
|
71 |
name: LoadDataFromHub
|
72 |
name: load_data
|
73 |
- step:
|
74 |
+
name: flux_schnell
|
75 |
resources:
|
76 |
replicas: 1
|
77 |
cpus: null
|
|
|
171 |
type_info:
|
172 |
module: __main__
|
173 |
name: ImageGeneration
|
174 |
+
name: flux_schnell
|
175 |
+
- step:
|
176 |
+
name: flux_dev
|
177 |
+
resources:
|
178 |
+
replicas: 1
|
179 |
+
cpus: null
|
180 |
+
gpus: null
|
181 |
+
memory: null
|
182 |
+
resources: null
|
183 |
+
input_mappings: {}
|
184 |
+
output_mappings: {}
|
185 |
+
input_batch_size: 50
|
186 |
+
llm:
|
187 |
+
use_magpie_template: false
|
188 |
+
magpie_pre_query_template: null
|
189 |
+
generation_kwargs: {}
|
190 |
+
use_offline_batch_generation: false
|
191 |
+
offline_batch_generation_block_until_done: null
|
192 |
+
jobs_ids: null
|
193 |
+
model_id: black-forest-labs/FLUX.1-dev
|
194 |
+
endpoint_name: null
|
195 |
+
endpoint_namespace: null
|
196 |
+
base_url: null
|
197 |
+
tokenizer_id: null
|
198 |
+
model_display_name: null
|
199 |
+
structured_output: null
|
200 |
+
type_info:
|
201 |
+
module: __main__
|
202 |
+
name: InferenceEndpointsImageLLM
|
203 |
+
group_generations: false
|
204 |
+
add_raw_output: true
|
205 |
+
add_raw_input: true
|
206 |
+
num_generations: 1
|
207 |
+
use_default_structured_output: false
|
208 |
+
runtime_parameters_info:
|
209 |
+
- name: resources
|
210 |
+
runtime_parameters_info:
|
211 |
+
- name: replicas
|
212 |
+
optional: true
|
213 |
+
description: The number of replicas for the step.
|
214 |
+
- name: cpus
|
215 |
+
optional: true
|
216 |
+
description: The number of CPUs assigned to each step replica.
|
217 |
+
- name: gpus
|
218 |
+
optional: true
|
219 |
+
description: The number of GPUs assigned to each step replica.
|
220 |
+
- name: memory
|
221 |
+
optional: true
|
222 |
+
description: The memory in bytes required for each step replica.
|
223 |
+
- name: resources
|
224 |
+
optional: true
|
225 |
+
description: A dictionary containing names of custom resources and the number
|
226 |
+
of those resources required for each step replica.
|
227 |
+
- name: input_batch_size
|
228 |
+
optional: true
|
229 |
+
description: The number of rows that will contain the batches processed by
|
230 |
+
the step.
|
231 |
+
- name: llm
|
232 |
+
runtime_parameters_info:
|
233 |
+
- name: generation_kwargs
|
234 |
+
description: The kwargs to be propagated to either `generate` or `agenerate`
|
235 |
+
methods within each `LLM`.
|
236 |
+
keys: []
|
237 |
+
- name: use_offline_batch_generation
|
238 |
+
optional: true
|
239 |
+
description: Whether to use the `offline_batch_generate` method to generate
|
240 |
+
the responses.
|
241 |
+
- name: offline_batch_generation_block_until_done
|
242 |
+
optional: true
|
243 |
+
description: If provided, then polling will be done until the `ofline_batch_generate`
|
244 |
+
method is able to retrieve the results. The value indicate the time to
|
245 |
+
wait between each polling.
|
246 |
+
- name: endpoint_name
|
247 |
+
optional: true
|
248 |
+
description: The name of the Inference Endpoint to use for the LLM.
|
249 |
+
- name: endpoint_namespace
|
250 |
+
optional: true
|
251 |
+
description: The namespace of the Inference Endpoint to use for the LLM.
|
252 |
+
- name: base_url
|
253 |
+
optional: true
|
254 |
+
description: The base URL to use for the Inference Endpoints API requests.
|
255 |
+
- name: api_key
|
256 |
+
optional: true
|
257 |
+
description: The API key to authenticate the requests to the Inference Endpoints
|
258 |
+
API.
|
259 |
+
- name: structured_output
|
260 |
+
optional: true
|
261 |
+
description: The structured output format to use across all the generations.
|
262 |
+
- name: add_raw_output
|
263 |
+
optional: true
|
264 |
+
description: Whether to include the raw output of the LLM in the key `raw_output_<TASK_NAME>`
|
265 |
+
of the `distilabel_metadata` dictionary output column
|
266 |
+
- name: add_raw_input
|
267 |
+
optional: true
|
268 |
+
description: Whether to include the raw input of the LLM in the key `raw_input_<TASK_NAME>`
|
269 |
+
of the `distilabel_metadata` dictionary column
|
270 |
+
- name: num_generations
|
271 |
+
optional: true
|
272 |
+
description: The number of generations to be produced per input.
|
273 |
+
type_info:
|
274 |
+
module: __main__
|
275 |
+
name: ImageGeneration
|
276 |
+
name: flux_dev
|
277 |
- step:
|
278 |
name: sdxl
|
279 |
resources:
|
|
|
377 |
name: ImageGeneration
|
378 |
name: sdxl
|
379 |
- step:
|
380 |
+
name: opendalle
|
381 |
resources:
|
382 |
replicas: 1
|
383 |
cpus: null
|
|
|
394 |
use_offline_batch_generation: false
|
395 |
offline_batch_generation_block_until_done: null
|
396 |
jobs_ids: null
|
397 |
+
model_id: dataautogpt3/OpenDalleV1.1
|
398 |
endpoint_name: null
|
399 |
endpoint_namespace: null
|
400 |
base_url: null
|
|
|
477 |
type_info:
|
478 |
module: __main__
|
479 |
name: ImageGeneration
|
480 |
+
name: opendalle
|
481 |
- step:
|
482 |
name: group_columns_0
|
483 |
resources:
|
|
|
567 |
connections:
|
568 |
- from: load_data
|
569 |
to:
|
570 |
+
- flux_schnell
|
571 |
+
- flux_dev
|
572 |
- sdxl
|
573 |
+
- opendalle
|
574 |
+
- from: flux_schnell
|
575 |
+
to:
|
576 |
+
- group_columns_0
|
577 |
+
- from: flux_dev
|
578 |
to:
|
579 |
- group_columns_0
|
580 |
- from: sdxl
|
581 |
to:
|
582 |
- group_columns_0
|
583 |
+
- from: opendalle
|
584 |
to:
|
585 |
- group_columns_0
|
586 |
- from: group_columns_0
|