Closed cayden-uw closed 1 year ago
Hi, Thanks a lot for your interest in the INSTRUCTOR model!
Could you help to provide the codes to save and load the output models?
I was using your train.py and loading as per your model INSTRUCTOR(path)
just with the path of the output from train.py (with the addition of the modules.json etc. I copied from the existing instructor model).
Thanks for the quick reply and your help!
Have you cloned and installed the latest repo and the InstructorEmbedding package? The latest InstructorEmbedding package is in the version 1.0.1.
I was using 1.0.0 and had the latest repo cloned.
Steps to repro:
The only thing I changed was a small modification to the train script to make checkpoints load
You may update the InstructorEmbedding package to the latest version 1.0.1.
Feel free to add any further questions or comments!
Please re-open the issue if you have any questions or comments!
Thanks for open sourcing this model! I have attempted to fine tune instructor-large and instructor-xl.
I now get an error on the outputted model when I try to load it "Some weights of the model checkpoint at ../up-l/ were not used when initializing T5EncoderModel" similarly the outputted model is missing key files like modules.json etc. which I attempted to use from your existing model given it should be the same architecture.
I modified medi-data.json to have my training data.