moved labels to the same device as logits for OTP, CODEGEN ,gptj and pixel2struct model
# 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 the OTP model and codegen model

@sgugger  can u pls review and merge this pr??


@sgugger I am really sorry for the mess of this pr, I will not repeat this in the future .... pls once review and merge this...I should have created multiple branches for each pr but sorry this will not be repeated...

_The documentation is not available anymore as the PR was closed or merged._<|||||>Glad to help! 