How to prevent Haystack from prefixing URL for transformers in model path? #2050
-
Hi, I am trying to create my own docker package for haystack/huggingface models. I have downloaded the model I want to use locally, and can point to the directory for the model on my local machine no problem for my reader. This is the code I am using on my local machine to point the reader transformer reader tokenizer, to local directory of the model:
However when I wrap this code for Docker/serverless and point this line to the folder path where my model is:
Haystack is prefixing the URL like so:
When I change the same line with model_path attribute, I can pick up the model locally but I am not getting the right answer:
How do I prevent this behavior? Let me know what or if any files I can provide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @asharm0662, actually the issue you're observing comes straight from the
If you share the logs of you application I might be able to give you more hints. |
Beta Was this translation helpful? Give feedback.
Hello @asharm0662, actually the issue you're observing comes straight from the
transformer
's library, which takes care of handling the models. I don't think we can help too much with it. I'd recommend:transformers
(probably Haystack is not even noticing that there are issues finding the model,transformers
seems to be handling it internally).If you share the logs of you application I might be able to give you more hints.