Runtime that loads embedding and summarization models and runs inference.
Backend.Exla is the current Bumblebee + EXLA path. Backend.Emlx is the
Apple MLX path (EMLX + EMLXAxon). ModelManager selects one at startup and
falls back to EXLA when EMLX is unavailable.
Summary
Functions
Loads a role's model through the configured backend, falling back to EXLA when the EMLX backend fails.
Backend module for a resolved backend name.
Resolves :auto to :emlx on Apple Silicon macOS, else :exla.
Types
Callbacks
Functions
Loads a role's model through the configured backend, falling back to EXLA when the EMLX backend fails.
The fallback lives here rather than in the manager because backend selection is this module's decision: the manager asks for a model to be loaded, not how the backend that loads it is chosen. A failure is reported, never raised, so the caller keeps its load-state machine intact.
@spec module_for(:exla | :emlx) :: module()
Backend module for a resolved backend name.
@spec resolve(:auto | :exla | :emlx) :: :exla | :emlx
Resolves :auto to :emlx on Apple Silicon macOS, else :exla.