Repository navigation
1/2 Last step cleaning the LlamaModel codebase - #38367
ArthurZucker wants to merge 51 commits into
Conversation
|
Just want to trigger the tests! |
e894f51 to
175a6aa
Compare
aa2e6b8 to
2ab361b
Compare
…olding the references in the decoder layer. Will do that in a bit
|
Hey @ArthurZucker, great work 🚀 🚀 🚀 I also started working on removing while Lysandre shared your PR, so I'm curious if you going to include all the changes in this PR? I think it might be too huge to apply all at once, WDYT? |
|
I was also previously looking into removing |
|
Hey @qubvel the hooks are gonna be attached to the layer class, and we will register explicitly which layers are expected to return what! This way we can deal with any cases! |
|
It is easier for me to change return dict as well TBH! |
|
#39120 did it! |
What does this PR do?
Output attention and hidden states logic can be reduced to basically attaching hooks to the
GradientCheckpointinglayer.Refactored
can_return_tupleas it can be much simpler :) only top level will receiveFalseThis makes the code simpler and cleaner!