Skip to content

feat(python): configure streaming transform parallelism - #3699

Merged
wjones127 merged 1 commit into
lancedb:mainfrom
yaodong-shen:feat/3695-configurable-transform-parallelism
Jul 28, 2026
Merged

wjones127 merged 1 commit into
lancedb:mainfrom
yaodong-shen:feat/3695-configurable-transform-parallelism

Conversation

@yaodong-shen

Copy link
Copy Markdown
Contributor

Summary

  • add a keyword-only transform_parallelism option to StreamingDataset
  • preserve CPU auto-detection by default and fall back to one worker when unavailable
  • apply the configured limit to both the transform executor and concurrency semaphore
  • document and test explicit, default, fallback, and invalid values

Testing

  • uv run --extra tests --with torch pytest python/tests/test_elastic_dataloader.py -q (136 passed)
  • uvx ruff check python/lancedb/streaming.py python/tests/test_elastic_dataloader.py
  • uvx ruff format --check python/lancedb/streaming.py python/tests/test_elastic_dataloader.py
  • git diff --check origin/main...HEAD

Closes #3695

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added enhancement New feature or request Python Python SDK labels Jul 21, 2026
@yaodong-shen

Copy link
Copy Markdown
Contributor Author

I revalidated this change against the current main (29c030f): the commit applies cleanly with no overlapping upstream changes, the complete test_elastic_dataloader.py suite passes (136 passed), and targeted Ruff lint/format checks pass. The Python and license-header workflows are still waiting for maintainer approval (action_required, zero jobs). When convenient, could a maintainer approve those workflows and review the PR?

@wjones127
wjones127 self-requested a review July 28, 2026 20:37

@wjones127 wjones127 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is very well written. Thanks!

@wjones127
wjones127 merged commit 98a5226 into lancedb:main Jul 28, 2026
12 checks passed
@mintlify

mintlify Bot commented Jul 28, 2026

Copy link
Copy Markdown

Docs PR opened: https://github.com/lancedb/docs/pull/324

Documented the new transform_parallelism option for StreamingDataset on the training data loading page, with an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Python Python SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: StreamingDataset should allow transform parallelism to be configured

2 participants