Global Configuration Reference¶
This page lists common global parameters available in a Data-Juicer recipe YAML, along with their defaults. These are set at the top level of the YAML and can be overridden via --param value on the command line. For the complete parameter list, run dj-process --help.
Operator-specific parameters are not covered here—see the Operator Schemas or individual operator detail pages.
Choose executor_type: default for local processing, ray for distributed processing, or ray_partitioned for distributed processing with checkpoints.
Project & Paths¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Project name (used in output paths and logs) |
|
str |
|
Input file, directory, or Hugging Face dataset; use |
|
list/dict |
|
Advanced dataset config (local/remote), see Dataset Configuration |
|
str |
|
Output file path |
|
str |
|
Base directory for job outputs; defaults to the local export directory, or |
|
str |
|
Temp file directory (used when cache is disabled) |
Executor¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Engine: |
|
int |
|
Default number of local processing and loading workers; |
|
str |
|
Ray cluster address for |
|
bool |
|
Generate an execution plan and enable DAG monitoring; defaults to on for Ray and off for local processing |
Input & Format¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str/list |
|
Text field name(s) |
|
str |
|
Field for image path list |
|
str |
|
Field for audio path list |
|
str |
|
Field for video path list |
|
str/list |
|
File suffixes to load (empty = auto-detect) |
|
dict |
|
Hugging Face reader options for local processing and Analyzer, such as CSV |
|
dict |
|
JSON reader options for |
|
bool |
|
Skip malformed JSONL lines when loading locally; supports |
|
int |
|
Requested number of Ray input blocks; use a positive integer |
To process a smaller input with the default executor, use dataset.max_sample_num or prepare a subset first. See Sampling Dry Run.
Analysis and tool-specific parameters¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
float |
|
Sampling ratio passed to |
|
str |
|
Sampling algorithm for the Sandbox model-inference probe |
|
str |
|
Search-space configuration for the HPO tool |
|
int |
|
Maximum samples analyzed with |
Data-Juicer Sandbox uses these sampling parameters for model-inference probes. To sample through the Python API, call executor.sample_data(sample_ratio=cfg.data_probe_ratio, sample_algo=cfg.data_probe_algo) before processing the returned subset.
Export¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Export format (inferred from path suffix if omitted) |
|
int |
|
Target shard size in bytes; 0 writes one file in local mode and uses the dataset block layout in Ray mode |
|
bool |
|
Use multiple workers to write a local-mode output file when |
|
dict |
|
Format-specific extra arguments |
|
dict |
|
AWS credentials for S3 export |
|
bool |
|
Keep computed stats fields in output |
|
bool |
|
Keep computed hash fields in output |
See Export for details.
Performance¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Fuse compatible operators in default or Ray execution to reduce repeated processing |
|
str |
|
Fusion strategy: |
|
bool |
|
Fuse consecutive GPU Mappers (requires op_fusion) |
|
float |
|
Max aggregate VRAM fraction for fused mappers |
|
bool |
|
Adaptive batch sizes for batched operators in the |
|
bool |
|
Turbo mode (maximize speed at batch_size=1) |
Cache & Checkpointing¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Use HuggingFace datasets cache |
|
str |
|
Custom cache directory (overrides |
|
str |
|
Cache compression: |
|
bool |
|
Enable default-executor checkpointing (disables cache; mutually exclusive with op_fusion) |
ray_partitioned Checkpointing¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Enable partition checkpointing |
|
str |
|
Strategy: |
|
int |
|
Interval for |
|
list |
|
Operator names to checkpoint for |
Job Management & Resumption¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
str |
|
Custom job ID for tracking and resumption |
|
str |
|
Resume a job by ID (ray_partitioned only) |
|
bool |
|
Enable event logging |
|
str |
|
Application log directory (default: |
|
str |
|
Checkpoint directory for |
Tracing & Monitoring¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Enable sample tracing (records before/after for each op) |
|
list |
|
Operators to trace (empty = all) |
|
int |
|
Number of changed samples shown per operator |
|
list |
|
Fields to include in trace output |
|
bool |
|
Enable resource monitoring (CPU/memory/GPU) |
|
bool |
|
Enable op-wise insight mining (stat/tag change tracking) |
|
list |
|
Operators for insight mining (empty = all that produce stats) |
Encryption¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Decrypt input files on read |
|
bool |
|
Encrypt output files on write |
|
str |
|
Path to Fernet key file (or env var |
Error Handling¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
bool |
|
Skip errors caused by unexpected invalid samples |
Multimodal Special Tokens¶
Parameter |
Default |
Description |
|---|---|---|
|
|
Placeholder for images in text |
|
|
Placeholder for audio in text |
|
|
Placeholder for video in text |
|
|
End-of-chunk marker in text |
Operator Environment Management (Ray only)¶
Parameter |
Type |
Default |
Description |
|---|---|---|---|
|
int |
|
Min common deps to merge op envs (-1 = no merging) |
|
str |
|
Conflict resolution: |