AttributeError: type object 'MoiraiModule' has no attribute 'from_pretrained'

#4
by Rajesh1996 - opened

When I'm trying to Run Updated Moirai-1.0-R-large
Its throwing this error AttributeError: type object 'MoiraiModule' has no attribute 'from_pretrained'
model=MoiraiForecast(
module=MoiraiModule.from_pretrained(f"Salesforce/moirai-1.0-R-{SIZE}"),
prediction_length=PDT,
context_length=CTX,
patch_size=PSZ,
num_samples=100,
target_dim=1,
feat_dynamic_real_dim=ds.num_feat_dynamic_real,
past_feat_dynamic_real_dim=ds.num_past_feat_dynamic_real,
)

Moirai-Issue.png

Salesforce org

could you pull the latest version, and try it again?

It's working fine now i created new env again https://github.com/SalesforceAIResearch/uni2ts.git

Create a virtual environment with python 3.10.13 conda create --name moirai python=3.10.13

Activate in your new virtual environment conda activate moirai

pip install pip install git+https://github.com/SalesforceAIResearch/uni2ts.git

How to set map_location to use GPU and CPU in the updated code

Rajesh1996 changed discussion status to closed

Sign up or log in to comment