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

trying to access VisionEncoderDecoderModel DONUT encoder intermediate layers #448

Open
AbdulDD opened this issue Jul 5, 2024 · 0 comments

Comments

@AbdulDD
Copy link

AbdulDD commented Jul 5, 2024

Hi there,
I have successfully fine-tuned DONUT on my custom dataset for Key-Information extraction (KIE). I have also printed (accessed) last_hidden_state of encoder. Now encoder has 4 layers (model.encoder.num_layers) and I want to access Layer 1 or 2 hidden state. how can I do that?

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

No branches or pull requests

1 participant