NiuTrans.NMT
NiuTrans.NMT copied to clipboard
ModelConverter.py not working
Quick and dirty fix Comment this string
#print(model['encoder.history.weight'])
Add argument weights_only=False to torch.load
state = torch.load(args.i, map_location='cpu', weights_only=False)