Comments (2)
After reviewing, it's not the CombineColumns
, it's something related to the _WriteBuffer
which is not keeping the order.
from distilabel.
It's messing up the original dataset's order even if we do not apply generations in parallel, as this outputs the same problem:
import time
import random
from distilabel.pipeline import Pipeline
from distilabel.steps import LoadHubDataset, step, StepInput, CombineColumns
random.seed(42)
@step(outputs=["generation"])
def Generate(inputs: StepInput):
sleep_time = random.uniform(1.0, 2.0)
for input in inputs:
input["generation"] = "I slept for {} seconds".format(sleep_time)
yield inputs
with Pipeline(name="jdjdjdj") as pipeline:
load_dataset = LoadHubDataset(name="load_dataset")
generate_0 = Generate(name="generate_0")
# generate_1 = Generate(name="generate_1")
# generate_2 = Generate(name="generate_2")
load_dataset.connect(generate_0)
# load_dataset.connect(generate_1)
# load_dataset.connect(generate_2)
combine_columns = CombineColumns(name="combine_columns", columns=["generation"])
generate_0.connect(combine_columns)
# generate_1.connect(combine_columns)
# generate_2.connect(combine_columns)
if __name__ == "__main__":
distiset = pipeline.run(
parameters={
load_dataset.name: { # type: ignore
"repo_id": "HuggingFaceH4/instruction-dataset",
"split": "test",
}
},
use_cache=False,
)
distiset.push_to_hub("distilabel-combine-columns-bug")
from distilabel.
Related Issues (20)
- [FEATURE] Add `O1AILLM`
- [FEATURE] Saving/Loading of Distiset with S3 bucket (or locally) HOT 4
- [FEATURE] Improve cache writing
- [FEATURE] Add `requirements` in `Pipeline`
- [CI] Install both `minimum` and `latest` dependencies in CI HOT 2
- [IMPROVEMENT] `PrometheusEval` support for multi-turn evaluation HOT 1
- [FEATURE] Implement "Improving Text Embeddings with LLMs"
- [BUG] 501 (Not Implemented) Response when trying to load HF dataset HOT 7
- [BUG] "An attempt has been made to start a new process before the current process has finished its bootstrapping phase." HOT 1
- [BUG] reponse_format - Unexpected keyword argument HOT 1
- [FEATURE] Make `LoadHubDataset` more general to read local files HOT 3
- [DOCS] Update cite information HOT 3
- [FEATURE] Add functionality to read/pass HF_TOKEN from cache/env var.
- [DOCS] Update document structure and format
- [DOCS] Update document phrasing and funnel
- [DOCS] Add examples for the components gallery
- [FEATURE] show raw input/response within tasks
- [FEATURE] trying to reload a already loaded `Step` results in an ambiguous error
- [BUG] `TogetherLLM` only works with json response format
- [BUG] `EvolQuality._apply_random_mutation` only uses last character of response
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distilabel.