Data-Juicer (DJ) transforms raw data chaos into AI-ready intelligence. It treats data processing as composable infrastructure—providing modular building blocks to clean, synthesize, and analyze data across the entire AI lifecycle, unlocking latent value in every byte.
Whether you're deduplicating web-scale pre-training corpora, curating agent interaction traces, or preparing domain-specific RAG indices, DJ scales seamlessly from your laptop to thousand-node clusters—no glue code required.
Juicer, our natural-language data-refinement model, turns cleaning instructions, filtering rules, and semantic-tagging requirements into structured outputs. Try it on HuggingFace or ModelScope, or see the Juicer docs.
from data_juicer.core.data import NestedDataset
from data_juicer.ops.filterimport TextLengthFilter
from data_juicer.ops.mapper import WhitespaceNormalizationMapper
ds = NestedDataset.from_dict({
"text": ["Short", "This passes the filter.", "Text with spaces"]
})
res_ds = ds.process([
TextLengthFilter(min_len=10),
WhitespaceNormalizationMapper()
])
for s in res_ds:
print(s)
✨ Why Data-Juicer?
1. Modular & Extensible Architecture
200+ operators spanning text, image, audio, video, and multimodal data
Recipe-first: Reproducible YAML pipelines you can version, share, and fork like code
Composable: Drop in a single operator, chain complex workflows, or orchestrate full pipelines
Hot-reload: Iterate on operators without pipeline restarts
2. Full-Spectrum Data Intelligence
Foundation Models: Pre-training, fine-tuning, RL, and evaluation-grade curation
RAG & Analytics: Extraction, normalization, semantic chunking, deduplication, and data profiling
3. Production-Ready Performance
Scale: Process 70B samples in 2h on 50 Ray nodes (6400 cores)
Efficiency: Deduplicate 5TB in 2.8h using 1280 cores
Optimization: Automatic OP fusion (2-10x speedup), adaptive parallelism, CUDA acceleration, robustness
Observability: Built-in tracing for debugging, auditing, and iterative improvement
⭐ If Data-Juicer saved you time or improved your data work, please consider starring the repo. It helps more people discover the project and keeps you notified of new releases and features.
Cluster-Aware Partitioning — Automatic partition counts use live Ray cluster resources. Manual partition.size targets split data at row boundaries, including inputs with fewer blocks than partitions.
✅ Config Validation — Pipeline preflight catches invalid operator settings and executor/schema mismatches before processing. Reader defaults now apply consistently across execution and analysis.
LiteLLM Backend — Select api_backend="litellm" in prepare_api_model for chat, embedding, and Responses requests through provider-specific model routing; the existing OpenAI-compatible backend remains the default.
Documentation Refresh — Rewritten English and Chinese guides cover installation, processing, analysis, configuration, export, and the playground. Added documentation for 28 existing operators, corrected examples, and separated guide and API navigation with incremental versioned documentation builds.
️ Unified Remote Export — Local, S3, and HDFS export share filesystem dispatch; JSONL export now serializes Python dates and datetimes in ISO format.
️ Image OHEM Selector — New image_ohem_selector selects high-loss image samples using a user-supplied scoring function and a top-k or ratio budget.
⚡ Bounded Tokenizer Batches — Token-count filters limit tokenizer batch sizes to reduce peak memory on long inputs.
Robustness Fixes — Fixed fused-filter cache isolation, MinHash state reuse and empty inputs, deduplicator execution-mode declarations, empty text chunks, gzip JSONL HPO sampling, and pandas extension-dtype handling. HPO modules can now be imported without starting a sweep.
[2026-08-25] Juicer Model Release: Natural-Language Data Refinement; Local Deployment; Playground
Natural-Language Data Refinement — Juicer follows natural-language instructions for text cleaning, filtering, and semantic labeling.
Local Deployment — Download the model for local deployment.
[2026-08-07] Release v1.5.5: External OP Plugins; HDFS I/O & Ray Data Optimizations; Elastic Multi-node Sharding
External OP Plugins — Third-party operators can now be shipped as standalone pip packages and auto-registered via Python entry points.
️ HDFS I/O — Added hdfs:// support for dataset loading and exporting, aligned with the existing S3 path.
⚡ Ray Data Optimizations — Removed eager actions that forced premature execution, migrated to the public TaskPoolStrategy/ActorPoolStrategy APIs, parallelized partitioned execution, preserved elastic actor pool concurrency, and kept partition checkpoints valid across block-layout changes.
Elastic Multi-node Sharding — New runnable reference workflow under demos/elastic_sharding/ that shards large JSONL datasets across nodes via node-local Ray executors, with retries and ordered merge.
Distributed RayAnalyzer — New RayAnalyzer computes and aggregates dataset stats with Ray native operators, avoiding pandas materialization.
Memory Optimizations — Streamed n-gram counting in repetition filters and block-wise MinHash permutations cut peak memory (768 → 272 MiB RSS) without changing results.
Robustness & Dependency Fixes — Fixed text_chunk_mapper delimiter leakage, calibrate_response_mapperoutput_pattern handling, and null captions in image_diffusion_mapper; added membership operators to general_field_filter; relaxed numpy/fsspec/pandas bounds for Python 3.13+ and pyarrow>=17.
New OPs — Added 9 human-centric video understanding operators (human track extraction, active-speaker detection, audio ASR, speech emotion & age/gender detection, face demographic & attribute/emotion captioning, face-ratio filtering) for building HumanVBench (CVPR'26)-style pipelines.
⚡ Batch-local Stage Fusion — New FusedSequentialBatchOp fuses consecutive OPs within a batch to cut inter-op overhead and speed up sequential processing.
Robustness & Install Fixes — Fixed Ray deduplicator shared-state handling, resolved a relative-path issue in the Ray checkpoint writer, made clean_html_mapper robust to null text values, handled boolean stat columns in ColumnWiseAnalysis, and unblocked ARM64 (aarch64) installation via precise decord/torchcodec platform markers.
Test Coverage & Cleanup — Expanded tests for utility functions and model handling, plus assorted code cleanup.
VLA Ops Enhancements — Expanded embodied-AI processing with 10+ new/renamed VLA operators (camera calibration via DeepCalib/DroidCalib/MoGe, atomic action segmentation, hand action computation & motion smoothing, clip reassembly, trajectory overlay, LeRobot export) and a complete VLA pipeline demo.
Ray Repartition Pipeline — New ray_repartition_pipeline for dataset-level block repartitioning in Ray mode.
⚡ Scalable Ray Data Reads — Wired override_num_blocks through the full call chain for controlling block parallelism on PB-scale datasets.
Test Coverage Expansion — Added 409 new test cases across 18 test files.
Stability & Robustness Fixes — JSONStreamDatasource schema unification, OP env version resolution, FUSE-safe rmtree for PartitionedRayExecutor, deprecated model name updates, and num_proc handling fixes.
Two new LaTeX-focused mapper OPs shipped, extending data-juicer's document processing capabilities to handle .tex archives and figure contexts.
️ Compressed dataset format support: json[l].gz files can now be loaded directly, and Ray datasets gain proper support for reading compressed JSON files.
New documentation added covering cache, export, and tracing workflows to help users better understand and debug data processing pipelines.
Major refactor and upgrade of data-juicer-agents completed: The project architecture and CLI/session capabilities were comprehensively redesigned for better maintainability and extensibility. See date-juicer-agents for more details.