Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Oct 26, 2023
1 parent e1f3837 commit 5cc49e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8917,7 +8917,7 @@ struct llama_context * llama_new_context_with_model(

#ifdef GGML_USE_METAL
if (model->n_gpu_layers > 0) {
ggml_metal_log_set_callback(llama_log_callback_default, g_state.log_callback_user_data);
ggml_metal_log_set_callback(g_state.log_callback, g_state.log_callback_user_data);

ctx->ctx_metal = ggml_metal_init(1);
if (!ctx->ctx_metal) {
Expand Down

0 comments on commit 5cc49e6

Please sign in to comment.