Include pipeline script.
Browse files- pipe_nothing.py +13 -10
pipe_nothing.py
CHANGED
|
@@ -26,17 +26,20 @@ def InfiniteStep(*inputs: StepInput) -> StepOutput:
|
|
| 26 |
yield [{"instruction": ["nothing"]}]
|
| 27 |
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
|
| 41 |
distiset = pipeline.run(use_cache=False)
|
| 42 |
distiset.push_to_hub("plaguss/pipe_nothing_test", include_script=True)
|
|
|
|
|
|
| 26 |
yield [{"instruction": ["nothing"]}]
|
| 27 |
|
| 28 |
|
| 29 |
+
with Pipeline(name="pipe-nothing") as pipeline:
|
| 30 |
+
load_dataset = LoadDataFromDicts(
|
| 31 |
+
data=[
|
| 32 |
+
{"instruction": "Tell me a joke."},
|
| 33 |
+
] * 2,
|
| 34 |
+
batch_size=2
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
dummy = DummyStep(name="DUMMY_STEP")
|
| 38 |
+
load_dataset >> dummy
|
| 39 |
|
| 40 |
+
|
| 41 |
+
if __name__ == "__main__":
|
| 42 |
|
| 43 |
distiset = pipeline.run(use_cache=False)
|
| 44 |
distiset.push_to_hub("plaguss/pipe_nothing_test", include_script=True)
|
| 45 |
+
# distiset.push_to_hub("distilabel-internal-testing/pipe_nothing_test", include_script=True)
|