#!/bin/sh

################################################################################
##
## Λ-gent, (c) 2026 SPISE MISU ApS, https://spdx.org/licenses/SSPL-1.0
##
################################################################################

clear

# https://huggingface.co/mlx-community/clef-omni-8bit#run-a-local-systemone-server

cd lef

# python clef_mlx.py serve --help
# usage: clef_mlx.py serve [-h] --model MODEL [--name NAME] [--max-length MAX_LENGTH] [--no-truncate] [--host HOST] [--port PORT] [--max-body-mb MAX_BODY_MB] [--quiet]
#
# options:
#   -h, --help            show this help message and exit
#   --model MODEL         Hub repo id or local dir (default: the repo this file is in)
#   --name NAME           model name echoed in responses (default: the model dir/repo name)
#   --max-length MAX_LENGTH
#                         prompt token limit (default 16384)
#   --no-truncate         refuse over-length inputs instead of truncating the state
#   --host HOST           bind address (default 127.0.0.1, local only)
#   --port PORT
#   --max-body-mb MAX_BODY_MB
#   --quiet               no per-request access log

python clef_omni_mlx.py serve --model mlx-community/clef-omni-8bit --port 3000
