Upload pipeline.yaml with huggingface_hub
Browse files- pipeline.yaml +62 -0
pipeline.yaml
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
distilabel:
|
| 2 |
+
version: 1.0.0.b0
|
| 3 |
+
pipeline:
|
| 4 |
+
name: DEITA
|
| 5 |
+
description: ''
|
| 6 |
+
steps:
|
| 7 |
+
- step:
|
| 8 |
+
name: load_data
|
| 9 |
+
input_mappings: {}
|
| 10 |
+
output_mappings: {}
|
| 11 |
+
batch_size: 100
|
| 12 |
+
repo_id: distilabel-internal-testing/deita-after-embeddings
|
| 13 |
+
split: train
|
| 14 |
+
config: null
|
| 15 |
+
runtime_parameters_info:
|
| 16 |
+
- name: repo_id
|
| 17 |
+
optional: false
|
| 18 |
+
description: The Hugging Face Hub repository ID of the dataset to load.
|
| 19 |
+
- name: split
|
| 20 |
+
optional: true
|
| 21 |
+
description: The split of the dataset to load. Defaults to 'train'.
|
| 22 |
+
- name: config
|
| 23 |
+
optional: true
|
| 24 |
+
description: The configuration of the dataset to load. This is optional and
|
| 25 |
+
only needed if the dataset has multiple configurations.
|
| 26 |
+
type_info:
|
| 27 |
+
module: distilabel.steps.generators.huggingface
|
| 28 |
+
name: LoadHubDataset
|
| 29 |
+
name: load_data
|
| 30 |
+
- step:
|
| 31 |
+
name: deita_filtering
|
| 32 |
+
input_mappings: {}
|
| 33 |
+
output_mappings: {}
|
| 34 |
+
input_batch_size: 50
|
| 35 |
+
data_budget: 500
|
| 36 |
+
diversity_threshold: 0.04
|
| 37 |
+
normalize_embeddings: false
|
| 38 |
+
runtime_parameters_info:
|
| 39 |
+
- name: data_budget
|
| 40 |
+
optional: false
|
| 41 |
+
description: The desired size of the dataset after filtering.
|
| 42 |
+
- name: diversity_threshold
|
| 43 |
+
optional: true
|
| 44 |
+
description: If a row has a cosine distance with respect to it's nearest neighbor
|
| 45 |
+
greater than this value, it will be included in the filtered dataset.
|
| 46 |
+
- name: normalize_embeddings
|
| 47 |
+
optional: true
|
| 48 |
+
description: Whether to normalize the embeddings before computing the cosine
|
| 49 |
+
distance.
|
| 50 |
+
type_info:
|
| 51 |
+
module: distilabel.steps.deita
|
| 52 |
+
name: DeitaFiltering
|
| 53 |
+
name: deita_filtering
|
| 54 |
+
connections:
|
| 55 |
+
- from: load_data
|
| 56 |
+
to:
|
| 57 |
+
- deita_filtering
|
| 58 |
+
- from: deita_filtering
|
| 59 |
+
to: []
|
| 60 |
+
type_info:
|
| 61 |
+
module: distilabel.pipeline.local
|
| 62 |
+
name: Pipeline
|