peft issue (#480)
This commit is contained in:
parent
c7e9158b29
commit
774002fc46
2 changed files with 9 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ huggingface = [
|
|||
"numpy",
|
||||
"accelerate>=0.26.1",
|
||||
"trl>=0.7.9",
|
||||
"peft>=0.7.1",
|
||||
"peft>=0.7.1,<0.11.0",
|
||||
"protobuf<4.0.0",
|
||||
]
|
||||
cu118only = [
|
||||
|
|
|
|||
|
|
@ -777,6 +777,8 @@ def install_llama_cpp_old(version = -10):
|
|||
for command in commands:
|
||||
with subprocess.Popen(command, shell = True, stdout = subprocess.PIPE, stderr = subprocess.STDOUT, bufsize = 1) as sp:
|
||||
for line in sp.stdout:
|
||||
if "undefined reference" in line:
|
||||
raise RuntimeError("Failed compiling llama.cpp. Please report this ASAP!")
|
||||
print(line.decode("utf-8", errors = "replace"), flush = True, end = "")
|
||||
pass
|
||||
pass
|
||||
|
|
@ -809,6 +811,8 @@ def install_llama_cpp_blocking(use_cuda = True):
|
|||
for command in commands:
|
||||
with subprocess.Popen(command, shell = True, stdout = subprocess.PIPE, stderr = subprocess.STDOUT, bufsize = 1) as sp:
|
||||
for line in sp.stdout:
|
||||
if "undefined reference" in line:
|
||||
raise RuntimeError("Failed compiling llama.cpp. Please report this ASAP!")
|
||||
print(line.decode("utf-8", errors = "replace"), flush = True, end = "")
|
||||
pass
|
||||
pass
|
||||
|
|
@ -984,6 +988,8 @@ def save_to_gguf(
|
|||
|
||||
with subprocess.Popen(command, shell = True, stdout = subprocess.PIPE, stderr = subprocess.STDOUT, bufsize = 1) as sp:
|
||||
for line in sp.stdout:
|
||||
if "undefined reference" in line:
|
||||
raise RuntimeError("Failed compiling llama.cpp. Please report this ASAP!")
|
||||
print(line.decode("utf-8", errors = "replace"), flush = True, end = "")
|
||||
if sp.returncode is not None and sp.returncode != 0:
|
||||
raise subprocess.CalledProcessError(sp.returncode, sp.args)
|
||||
|
|
@ -1025,6 +1031,8 @@ def save_to_gguf(
|
|||
# quantize uses stderr
|
||||
with subprocess.Popen(command, shell = True, stdout = subprocess.PIPE, stderr = subprocess.STDOUT, bufsize = 1) as sp:
|
||||
for line in sp.stdout:
|
||||
if "undefined reference" in line:
|
||||
raise RuntimeError("Failed compiling llama.cpp. Please report this ASAP!")
|
||||
print(line.decode("utf-8", errors = "replace"), flush = True, end = "")
|
||||
if sp.returncode is not None and sp.returncode != 0:
|
||||
raise subprocess.CalledProcessError(sp.returncode, sp.args)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue