Unable to access the model using AutoModel from transformer
Hi,
I'm trying to access the model using the AutoModel from transformer package it throws the following error:
"OSError: ibm-nasa-geospatial/Prithvi-100M does not appear to have a file named config.json. Checkout 'https://huggingface.co/ibm-nasa-geospatial/Prithvi-100M/main' for available files."
Seems like it's looking for a config.json file which it didn't find.
Code for reproducing the error:
from transformers import AutoModel
checkpoint = "ibm-nasa-geospatial/Prithvi-100M"
model = AutoModel.from_pretrained(checkpoint)
Hi @jogi-karan ,
Thanks for commenting! We currently do not integrate with HuggingFace's Transformers library. This means we do not currently have support for their AutoClasses.
The config.json
file you reference would follow from the following.
We may integrate this in the future, but for now, I would advise you to instead instantiate the model using the class in Prithvi.py. Please look at the code here for an example of how to do so, including loading the pretrained weights.
Closing the issue for now.