Add Basic Error Handling for Missing Model Files
Description:
Add proper error messages when files like tokenizer.model or consolidated.00.pth are missing.
Why it helps: Prevents unclear FileNotFoundException stack traces.
same for non-Llama3 or Mistral models
Hi @mikepapadim, could you assign this issue to me? Would like to get introduced to the project.
Hey @mikepapadim , wanted to get more context on this issue. I added some error handling in the loadModel method of the GGUF class that checks for the existence of the file at modelPath. However, I was wondering if I could get some indication for where I should be checking for tokenizer.model, consolidated.00.pth and other relevant files.
Hello @dhruvarayasam , thank you for your intend to contribute. I think this issue is not relevant at this point as we it will be a problem once we add model of other types that are not supported yet in the current version.
No worries, in that case will just submit a PR for what I have so far and you can let me know if there's anything I should tweak.