Hi,
I’ve trained a custom transformer model and followed this 15  to save a quantized model.
However when I try to load the model using
model.load_state_dict(torch.load('path'))

I receive the following error:
Missing key(s) in state_dict: “xxxxx.weight”,
Unexpected key(s) in state_dict: “xxxx.scale, xxxx.zero_point, …”
It looks like the names of the original parameters of the model have been changed. Can anyone help with how I can resolve this error?