You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code inside llama_load_session_file uses llama_file::read_raw which throws an exception if read error happens. In my case, 0-byte file due to #1699. This exception is not caught by any handler and just crash.
The rest of the llama_load_session_file will return false for something invalid.
I propose to convert all checks to throw and handle them.
It might be a good idea to have an option to continue/overwrite prompt cache file if it is invalid.
The text was updated successfully, but these errors were encountered:
The code inside
llama_load_session_file
usesllama_file::read_raw
which throws an exception if read error happens. In my case, 0-byte file due to #1699. This exception is not caught by any handler and just crash.The rest of the
llama_load_session_file
will return false for something invalid.I propose to convert all checks to throw and handle them.
It might be a good idea to have an option to continue/overwrite prompt cache file if it is invalid.
The text was updated successfully, but these errors were encountered: