Error: The model weights are not tied. Please use the `tie_weights` method before using the `infer_auto_device` function, even after adding model.tie_weights()

@Falah Thanks! I am already using transformers version - 4.30.2 . And still am getting the error.