From 6b3c4bb1482917e4fb24480a1d082da5f191467b Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Thu, 11 Jun 2026 15:34:50 +0200 Subject: dist: remove distributed layer-sharding (protocol, CLI flags, slice APIs) --- embed_mlx.h | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'embed_mlx.h') diff --git a/embed_mlx.h b/embed_mlx.h index 52a8801..ccc20c5 100644 --- a/embed_mlx.h +++ b/embed_mlx.h @@ -40,17 +40,6 @@ PPLX_API pplx_mlx_ctx_t *pplx_mlx_load(const char *model_dir); PPLX_API pplx_mlx_ctx_t *pplx_mlx_load_with_options(const char *model_dir, const pplx_mlx_options_t *opts); -/* - * 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_API pplx_mlx_ctx_t *pplx_mlx_load_slice(const char *model_dir, - int layer_start, int layer_end); -PPLX_API pplx_mlx_ctx_t *pplx_mlx_load_slice_with_options( - const char *model_dir, int layer_start, int layer_end, - const pplx_mlx_options_t *opts); - PPLX_API void pplx_mlx_free(pplx_mlx_ctx_t *ctx); /* @@ -125,19 +114,6 @@ PPLX_API int pplx_mlx_embed_into(pplx_mlx_ctx_t *ctx, const int *token_ids, PPLX_API int pplx_mlx_embed_batch(pplx_mlx_ctx_t *ctx, const pplx_input_t *inputs, int batch, float *out_embeddings); -/* - * MLX equivalent of pplx_model_forward_slice_batch(). - * - * Hidden states cross the API boundary as packed float32 rows even though MLX - * executes a padded dense batch internally. - */ -PPLX_API int pplx_mlx_forward_slice_batch(pplx_mlx_ctx_t *ctx, - const pplx_input_t *inputs, int batch, - const float *input_states, - int layer_start, int layer_end, - int apply_final_norm, - float *out_states); - /* * Run one contextual sequence and pool selected token spans. * Returns 0 on success, -1 on error. -- cgit v1.3.1