INNER CODE UNIT · Python
mib
cubist38/mlx-openai-server · app/main.py:57
mib = n / (1024**2)
if mib >= 1:
return f"{mib:.2f} MiB"
return f"{n} B"
def print_startup_banner(config_args: MLXServerConfig) -> None:
"""Log a compact startup banner describing the selected config.
The function emits human-friendly log messages that summarize the
runtime configuration (model path/type, host/port, concurrency,
LoRA settings, and logging options). Intended for the user-facing
startup output only.
Parameters
----------
config_args : MLXServerConfig
Single-model server configuration.