Skip to main content

Module model

Module model 

Source
Expand description

Local whisper.cpp model management: resolve, download, cache, list.

Structs§

DownloadProgress
Progress event while downloading a model (library hosts / UI).
EnsureModelOptions
Options for ensure_model.
ModelInfo
Known local model names and their ggml filenames.
ModelStatus
Status of a model relative to the local cache.

Constants§

MODELS
Models supported in v0.0.0 (full + common quantized variants).

Functions§

available_model_names
Names shown in user-facing help (canonical, not aliases).
ensure_model
Ensure a model is present locally, downloading if needed. Returns the path.
ensure_model_with_options
Ensure model with offline / progress options.
format_model_list
Format a human-readable model table for CLI output.
is_model_cached
True if a usable model file is already on disk.
list_models
List canonical models and whether each is cached.
lookup_model
model_path
Path to a cached model file (may not exist yet).
models_dir
Directory where ggml models are stored: <cache>/models/.

Type Aliases§

DownloadProgressCallback
Callback for download progress. Invoked from the async download task.