From c47e900b94d18cca1bf600e58f10dbcc2e34c1f7 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Sat, 28 Mar 2026 21:27:58 +0100 Subject: Refactor and enhance pplx_embed and pplx_embed_mlx for improved model support - Updated `pplx_embed.h` to support new embedding models: `pplx-embed-v1-4b` and `pplx-embed-context-v1-4b`. - Simplified model configuration structure and constants for better maintainability. - Enhanced comments for clarity on model architecture and configuration. - Modified `pplx_embed_mlx.c` to streamline loading of model weights and configuration from `config.json`. - Improved memory management and error handling in the MLX backend. - Updated embedding computation to support dynamic hidden sizes based on model configuration. - Added `pplx_mlx_config` function to retrieve model configuration details. - Updated README.md - Added .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore (limited to '.gitignore') diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6a85c96 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +pplx_embed -- cgit v1.3.1