INNER CODE UNIT · Python

gib

cubist38/mlx-openai-server · app/main.py:54

    gib = n / (1024**3)
    if gib >= 1:
        return f"{gib:.2f} GiB"
    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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…