Skip to content

Commit 6e086bd

Browse files
committed
fixed savedatafile bug, try remove unneeded old clblast code path
1 parent 103d60e commit 6e086bd

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

ggml/src/ggml-cpu/binary-ops.cpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,28 +57,28 @@ static void apply_binary_op(const ggml_compute_params * params, ggml_tensor * ds
5757

5858
GGML_ASSERT(ggml_can_repeat(src1, src0) && ggml_are_same_shape(src0, dst));
5959

60-
#if defined(GGML_USE_CLBLAST)
61-
//do we even need this? it seems like its actually slower than just CPU
62-
const int ith = params->ith;
63-
if (op == op_add && src0->type == GGML_TYPE_F32 && src1->type == GGML_TYPE_F32 && src1->clblast_offload_gpu) {
64-
// TODO: OpenCL kernel support full broadcast
65-
static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
66-
GGML_ASSERT((src1->ne[0] == src0->ne[0]) && ggml_can_repeat(src1, src0));
67-
if (ith == 0) {
68-
ggml_cl_add(src0, src1, dst);
69-
}
70-
return;
71-
}
72-
if (op == op_mul && src0->type == GGML_TYPE_F32 && src1->clblast_offload_gpu) {
73-
// TODO: OpenCL kernel support full broadcast
74-
static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
75-
GGML_ASSERT((src1->ne[0] == src0->ne[0]) && ggml_can_repeat(src1, src0));
76-
if (ith == 0) {
77-
ggml_cl_mul(src0, src1, dst);
78-
}
79-
return;
80-
}
81-
#endif
60+
// #if defined(GGML_USE_CLBLAST)
61+
// //do we even need this? it seems like its actually slower than just CPU
62+
// const int ith = params->ith;
63+
// if (op == op_add && src0->type == GGML_TYPE_F32 && src1->type == GGML_TYPE_F32 && src1->clblast_offload_gpu) {
64+
// // TODO: OpenCL kernel support full broadcast
65+
// static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
66+
// GGML_ASSERT((src1->ne[0] == src0->ne[0]) && ggml_can_repeat(src1, src0));
67+
// if (ith == 0) {
68+
// ggml_cl_add(src0, src1, dst);
69+
// }
70+
// return;
71+
// }
72+
// if (op == op_mul && src0->type == GGML_TYPE_F32 && src1->clblast_offload_gpu) {
73+
// // TODO: OpenCL kernel support full broadcast
74+
// static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
75+
// GGML_ASSERT((src1->ne[0] == src0->ne[0]) && ggml_can_repeat(src1, src0));
76+
// if (ith == 0) {
77+
// ggml_cl_mul(src0, src1, dst);
78+
// }
79+
// return;
80+
// }
81+
// #endif
8282

8383
GGML_TENSOR_BINARY_OP_LOCALS
8484

koboldcpp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
dry_seq_break_max = 128
5050

5151
# global vars
52-
KcppVersion = "1.87.1"
52+
KcppVersion = "1.87.2"
5353
showdebug = True
5454
kcpp_instance = None #global running instance
5555
global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False}
@@ -5678,6 +5678,7 @@ def kcpp_main_process(launch_args, g_memory=None, gui_launcher=False):
56785678
filepath = os.path.abspath(args.savedatafile) # Ensure it's an absolute path
56795679
if not filepath.endswith(".jsondb"):
56805680
filepath += ".jsondb"
5681+
args.savedatafile += ".jsondb"
56815682
try:
56825683
with open(filepath, 'r+', encoding='utf-8', errors='ignore') as f:
56835684
loaded = json.load(f)

0 commit comments

Comments
 (0)