LlamaAttention forward function type hint is incorrect #38739
Hi, this PR fixes a small issue in the LlamaAttention class. The return type in the forward method currently shows three values, but the function actually returns only two. This seems to have been missed during the attention refactor (possibly in PR #35235).
I’ve updated the type hint to reflect the actual return values, just to avoid confusion for anyone reading or using the code. Let me know if any other changes are needed. Happy to help!
Hi @ArkVex can you run make fix-copies to propagate that change to other models that are copying from Llama? That should make the CI pass!
Hi @ArkVex can you run
make fix-copiesto propagate that change to other models that are copying from Llama? That should make the CI pass!
I didnt get that...could you plz explain?
Hi @ArkVex, if you look at the tests on this PR, "check_repository_consistency" is failing. The reason is that some other models copy from Llama, and those copies don't match after this PR. You should run make fix-copies in the transformers directory and then commit + push those changes, which should fix the problem.
Hi @ArkVex, if you look at the tests on this PR, "check_repository_consistency" is failing. The reason is that some other models copy from Llama, and those copies don't match after this PR. You should run
make fix-copiesin thetransformersdirectory and then commit + push those changes, which should fix the problem.
Thanks for pointing it out...i will do the same
I did the test...plz check
@Rocketknight1 you there?
@vanpelt @dxoigmn @tmm1 anyone plz review
Seems like make fix-copies isn't working correctly, very odd! I can run it, one sec.
Hi @ArkVex, the reason it's failing is that the PR is on your fork's main branch. This breaks things! I recommend:
- Close this PR
- Make a new branch in your fork
- Push the change there
- Run
make fix-copies - Open a PR from that branch and ping me
Hi @ArkVex, the reason it's failing is that the PR is on your fork's
mainbranch. This breaks things! I recommend:
- Close this PR
- Make a new branch in your fork
- Push the change there
- Run
make fix-copies- Open a PR from that branch and ping me
Okk oKk