Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LayerSkip] Early Exit Loss #641

Open
mostafaelhoushi opened this issue Jul 8, 2024 · 0 comments
Open

[LayerSkip] Early Exit Loss #641

mostafaelhoushi opened this issue Jul 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mostafaelhoushi
Copy link

Describe the solution you would like:

  • Enable the training script to access outputs of intermediate layers
  • Modify loss function to incorprate outputs of earlier layers

Describe the alternatives you have considered:
Different approaches to implement:

  • store output of each layer in a dictionary variable of the model
  • return outputs of intermediate layers as an additional return for the forward() function (the disadvantage of this is that it can introduce errors into existing training loops)
  • Utilize existing hook mechanism

Additional Context:
This is to enable implementing ideas from various papers such as:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant