Skip to content

Commit

Permalink
Fail if candle cannot load prostt5
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Jun 13, 2024
1 parent 740b0f1 commit 488888f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/strucclustutils/structcreatedb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,10 @@ int structcreatedb(int argc, const char **argv, const Command& command) {
return EXIT_FAILURE;
}
ProstT5 *model = prostt5_load(modelWeights.c_str(), false, par.gpu == 0, false, quantized);
if (model == NULL) {
// error message is already printed by prostt5_load
return EXIT_FAILURE;
}
#ifdef OPENMP
size_t localThreads = par.gpu != 0 ? 1 : par.threads;
#endif
Expand Down

0 comments on commit 488888f

Please sign in to comment.