{"record":{"id":"d1599c13e0536247","repo":"mudler/LocalAI","slug":"error-failed-to-load-voxtral-model-from-s","errorCode":null,"errorMessage":"error: failed to load voxtral model from %s\n","messagePattern":"error: failed to load voxtral model from (.+?)\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/go/voxtral/csrc/govoxtral.c","lineNumber":30,"sourceCode":"static char *last_result = NULL;\nstatic int metal_initialized = 0;\n\nint load_model(const char *model_dir) {\n    if (ctx != NULL) {\n        vox_free(ctx);\n        ctx = NULL;\n    }\n\n#ifdef USE_METAL\n    if (!metal_initialized) {\n        vox_metal_init();\n        metal_initialized = 1;\n    }\n#endif\n\n    ctx = vox_load(model_dir);\n    if (ctx == NULL) {\n        fprintf(stderr, \"error: failed to load voxtral model from %s\\n\", model_dir);\n        return 1;\n    }\n\n    return 0;\n}\n\nconst char *transcribe(const char *wav_path) {\n    if (ctx == NULL) {\n        fprintf(stderr, \"error: model not loaded\\n\");\n        return \"\";\n    }\n\n    if (last_result != NULL) {\n        free(last_result);\n        last_result = NULL;\n    }\n\n    last_result = vox_transcribe(ctx, wav_path);","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/mudler/LocalAI/blob/44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26/backend/go/voxtral/csrc/govoxtral.c#L12-L48","documentation":"The voxtral model file could not be loaded. Guard: verify the model path exists and is readable before loading; return a clear LoadModel error naming the path.","triggerScenarios":"Thrown at backend/go/voxtral/csrc/govoxtral.c:30 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the voxtral model path exists and is readable.","Confirm the model file is a valid voxtral checkpoint compatible with the shim.","Check disk space and memory during load."],"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"}