tenshift-core
Thread-safe, backpressure-aware data loading pipeline for iterative processing. The core engine of the tenshift ML data loading ecosystem.
Installation
Quick Example
use ;
let samples: =
.map
.collect;
let mut iter = from_source
.workers
.shuffle
.batch
.prefetch
.start?;
for batch in &mut iter
# Ok::
Architecture Overview
Source thread ──▶ N worker threads ──▶ Collector thread ──▶ Consumer
(I/O) (parallel map) (shuffle/batch) (User)
- Bounded channels provide backpressure
- RAII cleanup on drop - no zombie processes
- Zero-copy
Arctensor passing between threads - Optional io_uring acceleration via
wireshiftfeature
Extension Guide
Add a Data Source
use ;
;
Add a Transform
use ;
;
Community contributions welcome for Parquet, HuggingFace Hub, S3/GCS sources.
License
MIT. Copyright 2026 Corum Collective LLC.