BiomedGPT icon indicating copy to clipboard operation
BiomedGPT copied to clipboard

RuntimeError: Unexpected key(s) in state_dict when loading OFAModel

Open aaaaaannie opened this issue 5 months ago • 4 comments

Hi,I am encountering an issue when trying to load a pre-trained OFAModel. The error message I receive is as follows: image

Environment Details: pip version: 21.2.4 Fairseq version: Installed from the OFA repository

Steps to Reproduce: Installed Fairseq from the OFA repository. Configured the environment and downloaded the necessary pre-trained datasets. Attempted to load the OFAModel using the provided scripts.

aaaaaannie avatar Sep 12 '24 14:09 aaaaaannie