minor : fix MPI builds

This commit is contained in:
Georgi Gerganov 2024-02-24 10:41:21 +02:00
parent 89b2a43cac
commit 2b9a9bff2b
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -7733,7 +7733,7 @@ static void llama_graph_compute(
ggml_cgraph * gf,
int n_threads) {
#ifdef GGML_USE_MPI
const int64_t n_layer = lctx.hparams.n_layer;
const int64_t n_layer = lctx.model.hparams.n_layer;
ggml_mpi_graph_compute_pre(lctx.ctx_mpi, gf, n_layer);
#endif