Skip to content

Add ConcatDataLoader for lazy chunk-level concatenation across multiple data loaders. - #274

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_966518327
Oct 1, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
test_966518327

Conversation

@copybara-service

Copy link
Copy Markdown

Add ConcatDataLoader for lazy chunk-level concatenation across multiple data loaders.

ConcatDataLoader wraps a sequence of DataLoader instances and concatenates their loaded chunks along a specified dimension (default 'sample') at load_chunk time, rather than concatenating full datasets eagerly at initialization. Also updates XarrayConstantLatencyWrapper to accept arbitrary DataLoader instances with a prepared _ds attribute.

@copybara-service
copybara-service Bot force-pushed the test_966518327 branch 2 times, most recently from c80836a to e9b39b4 Compare October 1, 2026 11:17
…le data loaders.

`ConcatDataLoader` wraps a sequence of `DataLoader` instances and concatenates their loaded chunks along a specified dimension (default `'sample'`) at `load_chunk` time, rather than concatenating full datasets eagerly at initialization. Also updates `XarrayConstantLatencyWrapper` to accept arbitrary `DataLoader` instances with a prepared `_ds` attribute.

PiperOrigin-RevId: 991584776
@copybara-service
copybara-service Bot merged commit 8f46bd3 into main Oct 1, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_966518327 branch October 1, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant