Closed
Description
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.