k-batch
K-Batch is an intelligent text batching library that uses k-means clustering to group sentences by length for optimal processing. It's particularly useful fo...
Targets NLP and ML workloads where grouping similar-length inputs reduces padding waste and improves computational efficiency. kBatchSentences(sentences) returns optimally grouped batches and analyzeKBatches provides detailed batch statistics. Ensures each batch meets minimum size requirements.