{"record":{"id":"0fd7bbb69855466e","repo":"mudler/LocalAI","slug":"error-also-failed-to-init-model-as-transcriber","errorCode":null,"errorMessage":"error: Also failed to init model as transcriber\n","messagePattern":"error: Also failed to init model as transcriber\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/go/whisper/cpp/gowhisper.cpp","lineNumber":84,"sourceCode":"  default: /* Potential future-proofing */\n    level_str = \"?????\";\n    break;\n  }\n\n  fprintf(stderr, \"[%-5s] \", level_str);\n  fputs(log, stderr);\n  fflush(stderr);\n}\n\nint load_model(const char *const model_path) {\n  whisper_log_set(ggml_log_cb, nullptr);\n  ggml_backend_load_all();\n\n  struct whisper_context_params cparams = whisper_context_default_params();\n\n  ctx = whisper_init_from_file_with_params(model_path, cparams);\n  if (ctx == nullptr) {\n    fprintf(stderr, \"error: Also failed to init model as transcriber\\n\");\n    return 1;\n  }\n\n  return 0;\n}\n\nint load_model_vad(const char *const model_path) {\n  whisper_log_set(ggml_log_cb, nullptr);\n  ggml_backend_load_all();\n\n  struct whisper_vad_context_params vcparams =\n      whisper_vad_default_context_params();\n\n  // XXX: Overridden to false in upstream due to performance?\n  // vcparams.use_gpu = true;\n\n  vctx = whisper_vad_init_from_file_with_params(model_path, vcparams);\n  if (vctx == nullptr) {","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/mudler/LocalAI/blob/44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26/backend/go/whisper/cpp/gowhisper.cpp#L66-L102","documentation":"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.","triggerScenarios":"Thrown at backend/go/whisper/cpp/gowhisper.cpp:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26","analyzedAt":"2026-08-15T10:13:50.291Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}