IndicXlit icon indicating copy to clipboard operation
IndicXlit copied to clipboard

state dictionary for indicxlit model

Open subnkve479 opened this issue 2 years ago • 7 comments

Hi I have downloaded indicxlit model but could not see any state dictionary associated with it.I could only see corpus-bin and pytorch file in transformer folder. But to load any pytorch model,I need to give its state dictonary also. Can you please help me to load indicXlit pytorch model

Below is the code I have tried

Code 1

import torch model=torch.jit.load('./transformer/indicxlit.pt') model.eval()

Error: RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found

Code 2

import torch

model=torch.load('./transformer/indicxlit.pt')

print(model.keys())

Above code is loading model as dictonary,but I cannot do any predictions.

Can you please help me here

Regards Subbu

subnkve479 avatar Sep 14 '22 08:09 subnkve479