mirror of
https://github.com/unslothai/unsloth
synced 2026-04-21 13:37:39 +00:00
Update save.py
This commit is contained in:
parent
16edcb3be2
commit
705cac0357
1 changed files with 3 additions and 2 deletions
|
|
@ -544,8 +544,9 @@ def save_to_gguf(
|
|||
command = f"./llama.cpp/quantize {old_location} "\
|
||||
f"{final_location} {quantization_method} {n_cpus}"
|
||||
|
||||
with subprocess.Popen(command, shell = True, stdout = subprocess.PIPE, bufsize = 1) as sp:
|
||||
for line in sp.stdout:
|
||||
# quantize uses stderr
|
||||
with subprocess.Popen(command, shell = True, stderr = subprocess.PIPE, bufsize = 1) as sp:
|
||||
for line in sp.stderr:
|
||||
print(line.decode("utf-8"), flush = True, end = "")
|
||||
pass
|
||||
print(f"Unsloth: Conversion completed! Output location: {final_location}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue