Update save.py

This commit is contained in:
Daniel Han-Chen 2024-03-06 05:07:37 +11:00
commit 1e41fa0c8c

View file

@ -369,6 +369,7 @@ def unsloth_save_model(
# Switch to our fast saving modules if it's a slow PC!
n_cpus = psutil.cpu_count(logical = False)
if n_cpus is None: n_cpus = psutil.cpu_count()
if n_cpus is None: n_cpus = 1
if safe_serialization is None: