mpi : add names for layer inputs + prep ggml_mpi_graph_compute()

This commit is contained in:
Georgi Gerganov 2023-07-09 14:42:36 +03:00
parent 3232db628c
commit e339d35579
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
3 changed files with 46 additions and 49 deletions

View file

@ -2,6 +2,7 @@
struct ggml_context;
struct ggml_tensor;
struct ggml_cgraph;
#ifdef __cplusplus
extern "C" {
@ -35,6 +36,13 @@ struct ggml_tensor * ggml_mpi_eval_init(
int * n_past,
int * n_threads);
void ggml_mpi_graph_compute(
struct ggml_mpi_context * ctx_mpi,
struct ggml_cgraph * gf,
int n_layers,
int n_embd,
int n_tokens);
#ifdef __cplusplus
}
#endif