Skip to main content

Module cli

Module cli 

Source
Expand description

The superfluid command line: its help text, the serve flag table and the defaults that let superfluid serve <model> start with no other flag.

Structs§

Flag
Group

Constants§

COMMANDS
COMPAT_HELP
DEFAULT_HTTP
MEDIA_HELP
RUNTIMES_HELP
RUNTIME_HELP
SERVE
SESSION_HELP
TOP_HELP

Functions§

command_help
The help for a subcommand, by name.
default_sessions
$SUPERFLUID_HOME/sessions.
default_socket
$SUPERFLUID_HOME/superfluid.sock, or a per-user socket in the temporary directory when that path is too long for a unix socket (sun_path is 104 bytes on macOS, 108 on Linux).
overview
runtime_for_id
The runtime a model id goes to when no --runtime names one: a GGUF repository to llama.cpp, an MLX conversion to MLX, anything else to baseRT.
serve_flag_names
serve_help
serve_takes_value
Whether serve reads name with a value after it: Some(true) it does, Some(false) it is a switch, None no such flag.
split_equals
Splits --flag=value into --flag value for every flag takes_value says reads a value. --pull-<name>=<value> is left whole: its parser reads that form itself.
suggest
The known flag closest to unknown, when one is close enough to be what was meant.
version