diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-06-10 08:24:39 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-14 08:27:03 +0200 |
| commit | 2c37727e653d2340d8977dd5db4addc767dd81ea (patch) | |
| tree | 578ad6affac511f847a346a0efc6d40ebf6a279f /embed_server.h | |
| parent | ec417bcb52f2aa8e24aeec312e8ddbf3a0798056 (diff) | |
| download | ffwd-2c37727e653d2340d8977dd5db4addc767dd81ea.tar.gz ffwd-2c37727e653d2340d8977dd5db4addc767dd81ea.zip | |
gitignore: track new binary and library names
Diffstat (limited to 'embed_server.h')
| -rw-r--r-- | embed_server.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/embed_server.h b/embed_server.h new file mode 100644 index 0000000..c38f0ca --- /dev/null +++ b/embed_server.h @@ -0,0 +1,32 @@ +#ifndef PPLX_SERVER_H +#define PPLX_SERVER_H + +#include <stdbool.h> + +typedef struct { + const char *id; + const char *path; +} pplx_server_model_spec_t; + +typedef struct { + const pplx_server_model_spec_t *models; + int n_models; + const char *host; + int port; + int batch_size; + int max_batch_tokens; + int batch_wait_us; + int use_mlx; + int use_cuda; + int mlx_quantize_bits; + int mlx_quantize_group_size; + double memory_utilization; /* fraction of physical memory the MLX + preflight may plan for; 0 = default 0.90, + values above 1.0 allow overcommit */ + int enable_cors; + const char *api_key; +} pplx_server_config_t; + +int pplx_run_server(const pplx_server_config_t *cfg); + +#endif |
