// Set marian to throw exceptions instead of std::abort()
marian::setThrowExceptionOnAbort(true);
From experience, the python tooling should be able to gracefully do exceptions. I instead get random crashes on Colab. I should be able to get meaningful errors instead.
Marian is configured to exit on abort. translateLocally switches to
throwOnAbort...
. This is already mentioned in https://github.com/browsermt/bergamot-translator/issues/221, but this issue is just meant to track this specifically.https://github.com/XapaJIaMnu/translateLocally/blob/6f40bceedb4909dfead81441cfb606582c43dcaf/src/main.cpp#L13
From experience, the python tooling should be able to gracefully do exceptions. I instead get random crashes on Colab. I should be able to get meaningful errors instead.