peft icon indicating copy to clipboard operation
peft copied to clipboard

Expose the config network error.

Open Iemand005 opened this issue 1 year ago • 0 comments

I was getting an error "Can't find 'adapter_config.json' at 'unsloth/mistral-7b-instruct-v0.3-bnb-4bit'" but I had no clue why I was getting this error or what the problem was.

This error message is not useful as end users don't know where it's trying to find adapter_config.json, I thought it was trying to find it locally but it turned out it's a web request that's failing which makes way more sense.

I added the error message that was caught to the thrown error message so that the user of the library can actually see what the network error was and which url it failed to fetch. I don't know the convention you follow for error messages, feel free to change it but please include the HTTP error code and the URL that was attempted in the thrown errors.

Iemand005 avatar Apr 12 '25 20:04 Iemand005