FarmReader issue when loading fine-tuned and saved model #6685
Replies: 2 comments
-
Hey, @KarlosMuradyan, this is today's second report about a similar issue. My guess is that the transformers library introduced a bug where they first don't check the local path or they have completely revamped how local models are loaded. I'll take a look tomorrow but if you do before that, please let us know. Apologies for the delay in responding 🙏 |
Beta Was this translation helpful? Give feedback.
-
Hi @vblagoje
My guess is that this is expected? The evaluation results seem to be matching with what the fine-tuned model gave without saving and loading. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to load locally saved Roberta model that was fine-tuned and saved using FarmReader:
I tried using
reader.save(...)
as well but no difference in result. Here is how I want to load the saved model:I get the following error:
Based on the Reader documentation the above code should work. Am I missing something?
Thanks in advance!
Farm Haystack version:
farm-haystack==1.23.0
Beta Was this translation helpful? Give feedback.
All reactions