Transformers not recognizes architecture
#1
by
user-kuldeep
- opened
I have used following code to load the architecture
Load model directly
from transformers import AutoModelForMaskedLM
model = AutoModelForMaskedLM.from_pretrained("songlab/gpn-msa-sapiens")
But getting following error
ValueError: The checkpoint you are trying to load has model type GPNRoFormer
but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
Hello, this line is important as it defines the architecture:
import gpn.model
gonzalobenegas
changed discussion status to
closed