From cce5fe204593d078012cd37c5e01f12ecbf8e05c Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 14 Nov 2023 10:51:10 -0500 Subject: [PATCH] Fix macos build. --- gpt4all-backend/bert.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpt4all-backend/bert.cpp b/gpt4all-backend/bert.cpp index f74e8554..31dc7d98 100644 --- a/gpt4all-backend/bert.cpp +++ b/gpt4all-backend/bert.cpp @@ -490,8 +490,10 @@ struct bert_ctx * bert_load_from_file(const char *fname) #endif bert_ctx * new_bert = new bert_ctx; +#if defined(GGML_USE_KOMPUTE) new_bert->buf_compute.force_cpu = true; new_bert->work_buf.force_cpu = true; +#endif bert_model & model = new_bert->model; bert_vocab & vocab = new_bert->vocab;