Merge pull request #159 from unslothai/fix/reduce_dataset_num_proc_25_pct

Fix/reduce dataset num proc 25 pct
This commit is contained in:
Roland Tannous 2026-02-19 00:55:02 +04:00 committed by GitHub
commit 559ba976bc

View file

@ -707,7 +707,7 @@ class UnslothTrainer:
"output_dir": output_dir,
"report_to": ["wandb"] if training_args.get('enable_wandb', False) else "none",
"include_num_input_tokens_seen": True, # Enable token counting
"dataset_num_proc": max(1, os.cpu_count() // 3),
"dataset_num_proc": max(1, os.cpu_count() // 4),
}
# Add warmup parameter - use warmup_ratio if provided, otherwise warmup_steps