mudler/LocalAI · error
error: Also failed to init model as transcriber
Error message
error: Also failed to init model as transcriber
What it means
whisper initialization as a transcriber also failed after the primary init path failed. Guard: treat this as a fatal LoadModel error, free partial state, and report both failure reasons.
Source
Thrown at backend/go/whisper/cpp/gowhisper.cpp:84
default: /* Potential future-proofing */
level_str = "?????";
break;
}
fprintf(stderr, "[%-5s] ", level_str);
fputs(log, stderr);
fflush(stderr);
}
int load_model(const char *const model_path) {
whisper_log_set(ggml_log_cb, nullptr);
ggml_backend_load_all();
struct whisper_context_params cparams = whisper_context_default_params();
ctx = whisper_init_from_file_with_params(model_path, cparams);
if (ctx == nullptr) {
fprintf(stderr, "error: Also failed to init model as transcriber\n");
return 1;
}
return 0;
}
int load_model_vad(const char *const model_path) {
whisper_log_set(ggml_log_cb, nullptr);
ggml_backend_load_all();
struct whisper_vad_context_params vcparams =
whisper_vad_default_context_params();
// XXX: Overridden to false in upstream due to performance?
// vcparams.use_gpu = true;
vctx = whisper_vad_init_from_file_with_params(model_path, vcparams);
if (vctx == nullptr) {View on GitHub (pinned to 44413a9d06)
Solutions
- Verify the model file is a valid whisper GGML/GGUF model compatible with transcription.
- Try a different whisper model variant; some builds only support VAD.
- Check memory availability during model init.
When it happens
Trigger: Thrown at backend/go/whisper/cpp/gowhisper.cpp:84 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of mudler/LocalAI@44413a9d06 (2026-08-15).
Data as JSON: /api/errors/0fd7bbb69855466e.
Report an issue: GitHub.