mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-07 11:23:56 +01:00
llama : fix vocab_only logic when GPU is enabled
This commit is contained in:
parent
99161230c4
commit
323a9d3b8c
@ -5547,7 +5547,6 @@ struct llama_context * llama_new_context_with_model(
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef GGML_USE_METAL
|
||||
if (params.n_gpu_layers > 0) {
|
||||
@ -5584,6 +5583,7 @@ struct llama_context * llama_new_context_with_model(
|
||||
#undef LLAMA_METAL_CHECK_BUF
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef GGML_USE_MPI
|
||||
ctx->ctx_mpi = ggml_mpi_init();
|
||||
|
Loading…
Reference in New Issue
Block a user