Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor _build_dataset piece for speed #344

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Refactor _build_dataset piece for speed #344

merged 1 commit into from
Feb 14, 2024

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented Feb 14, 2024

Description

This PR does a small refactor in Pipeline._build_dataset to build the final dataset using Dataset.from_pandas instead of iteratively calling Dataset.add_item, as that made the process prohibitively slow for bigger datasets (5K rows and onwards started to be a problem).

Copy link
Member

@alvarobartt alvarobartt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@alvarobartt alvarobartt added this to the 0.6.0 milestone Feb 14, 2024
@plaguss plaguss merged commit d24ee88 into main Feb 14, 2024
4 checks passed
@plaguss plaguss deleted the test/build-dataset branch February 14, 2024 16:40
jphme pushed a commit to jphme/distilabel that referenced this pull request Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants