-
Notifications
You must be signed in to change notification settings - Fork 163
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
How to access hidden layers? #56
Comments
Thank you again for this great work @wetherbeei, could you please advise how to extract the activations of the intermediate layers of BERT? |
Hi @robert-srebrovic, thanks for supporting this repo! my goal is to load the cls embeddings (including intermediate layers). So far I've attempted to use the bert-for-tf2 package. However, it seems like some of the layers defined here are missing from the target model when attempting to load it:
Specifically, the following weights are missing:
Could you please advise what would be the best way to reintroduce the missing layers? |
Could you please provide an example code on how to access hidden layers?
The text was updated successfully, but these errors were encountered: