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.

Enums§

ModelSupportTier
Support tier for catalogue display (JOE-1650).

Constants§

ARTIFACT_MANIFEST_SOURCE
Provenance label for built-in pins.
ARTIFACT_MANIFEST_VERSION
Manifest schema version for diagnostics (JOE-1590).
MODELS
Models supported in v0.0.0 (full + common quantized variants).

Functions§

artifact_manifest_json
Diagnostic JSON for a catalogue entry (manifest provenance).
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_verified_local
Public local-only verify used by cache inventory (no network).
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).
model_support_tier
Support tier for a catalogue name (aliases resolve via lookup_model).
models_dir
Directory where ggml models are stored: <cache>/models/.
pinned_exact_bytes
Reviewed exact sizes when known (from HF package metadata / maintainer review).
pinned_sha256
Independently reviewed SHA-256 digests (JOE-1590 / JOE-1645).

Type Aliases§

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