moved labels to the same device as logits for opt, GPTJ , codeine and pix2struct models
# What does this PR do?

As suggested in the [#22561 ](https://github.com/huggingface/transformers/issues/22561) , moved labels to the same device as logits for OPT, GPTj, codegen and pix2struct models.





I am new to open source pls give me suggestions for keeping better pr.



### there are some things to be changed i will keep pr after that changes<|||||>The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_22871). All of your documentation changes will be reflected on that endpoint.