From f6e959455add3260a483c89e6fb9aa214d4e6789 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Sat, 30 May 2026 11:23:52 +0200 Subject: dist: load distributed layer shards selectively --- pplx_embed_mlx.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pplx_embed_mlx.h') diff --git a/pplx_embed_mlx.h b/pplx_embed_mlx.h index 1ec6fab..b45fc8a 100644 --- a/pplx_embed_mlx.h +++ b/pplx_embed_mlx.h @@ -20,6 +20,14 @@ typedef struct pplx_mlx_ctx pplx_mlx_ctx_t; */ pplx_mlx_ctx_t *pplx_mlx_load(const char *model_dir); +/* + * Load one contiguous transformer layer range for distributed execution. + * Uses the same half-open range and endpoint ownership rules as + * pplx_model_load_slice(). + */ +pplx_mlx_ctx_t *pplx_mlx_load_slice(const char *model_dir, + int layer_start, int layer_end); + void pplx_mlx_free(pplx_mlx_ctx_t *ctx); /* -- cgit v1.3.1