Skip to content

Commit abdbd7b

Browse files
committed
Merge branch 'concedo_experimental' into crokeso
2 parents 0fefbef + ca281bd commit abdbd7b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

ggml/src/ggml-cuda/cpy.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ void ggml_cuda_cpy(ggml_backend_cuda_context & ctx, const ggml_tensor * src0, gg
718718
if(ctx.cuda_graph->use_cpy_indirection && !disable_indirection_for_this_node) {
719719
ctx.cuda_graph->graph_cpynode_index = graph_cpynode_index;
720720
}
721+
#else
722+
GGML_UNUSED(disable_indirection_for_this_node);
721723
#endif
722724

723725
}

koboldcpp.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4829,18 +4829,19 @@ def zenity_clean(txt: str):
48294829
.replace("?", "\\?").replace("&", "&amp;").replace("|", "&#124;").replace("<", "&lt;").replace(">", "&gt;")\
48304830
.replace("(", "\\(").replace(")", "\\)").replace("[", "\\[").replace("]", "\\]").replace("{", "\\{").replace("}", "\\}")
48314831

4832-
def zenity_sanity_check(): #make sure zenity is sane
4833-
nonlocal zenity_bin
4832+
def zenity_sanity_check(zenity_bin): #make sure zenity is sane
48344833
try: # Run `zenity --help` and pipe to grep
4835-
result = subprocess.run(f"{zenity_bin} --help | grep Usage", shell=True, capture_output=True, text=True, encoding='utf-8', timeout=10)
4834+
result = subprocess.run(f"{zenity_bin} --help", shell=True, capture_output=True, text=True, encoding='utf-8', timeout=10)
48364835
if result.returncode == 0 and "Usage" in result.stdout:
48374836
return True
48384837
else:
4838+
print(f"Zenity/YAD sanity check failed - ReturnCode={result.returncode}")
48394839
return False
48404840
except FileNotFoundError:
4841+
print(f"Zenity/YAD sanity check failed - {zenity_bin} not found")
48414842
return False
48424843

4843-
if not zenity_sanity_check():
4844+
if not zenity_sanity_check(zenity_bin):
48444845
raise Exception("Zenity not working correctly, falling back to TK GUI.")
48454846

48464847
# Build args based on keywords

make_pyinstaller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ pyinstaller --noconfirm --onefile --clean --console --collect-all customtkinter
2323
--add-data "./rwkv_vocab.embd:." \
2424
--add-data "./rwkv_world_vocab.embd:." \
2525
--version-file "./version.txt" \
26-
"./koboldcpp.py" -n "koboldcpp"
26+
"./koboldcpp.py" -n "koboldcpp"

0 commit comments

Comments
 (0)