When I try to run the blow code on my mac, I meet the above error. But it's ok when I run it on colab.
from momentfm import MOMENTPipeline
model = MOMENTPipeline.from_pretrained(
"AutonLab/MOMENT-1-large",
model_kwargs={
'task_name': 'classification',
'n_channels': 1,
'num_class': 5
}, # We are loading the model in `classification` mode
)
model.init()
print(model)
@XinyuanLiao, I think the most possible reason would be the internet issue. here the model will try to download the config file from the hub and here the config will be merged into model_kwargs. So if it fails to retrieve the config file, the above mentioned error will show up.
Hi,
When I try to run the blow code on my mac, I meet the above error. But it's ok when I run it on colab.