Update save.py
This commit is contained in:
parent
333d3d9a51
commit
1e41fa0c8c
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue