Llama: retrocompatibility support for inner layers
# What does this PR do?

_The documentation is not available anymore as the PR was closed or merged._<|||||>(It seems like it is no longer needed, closing)<|||||>@gante hi, i also got the error "None type is not subscribable " in apply_rotary_pos_emb. Why is it no longer need? Why not merge it?<|||||>Hi @Adam1679 -- have you followed the conversation in [this issue](https://github.com/huggingface/transformers/issues/22407)? It explains the rationale behind the change 🤗 <|||||>@gante yes. but i encountered the same issee without using GPTQ-for-LLaMA package.<|||||>@Adam1679 then one of the two things is happening:
1. You are using exclusively hugging face libraries -- ensure you have the latest versions and, if the error persists, please an issue with a short snippet that reproduces the issue
2. You are using external libraries -- request their owners to update the transformers version and/or update their internal code