Getting the output of the final layer #36
Unanswered
mitramir55
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @jalammar,
Currently, In a research project, I'm trying to give one token to GPT2 and then output the exact ranking you get in the layer_predictions function. Eventually, I intend to combine this output with a translation model output (both of the outputs should have the length of the vocabulary) and then get one token chosen by linearly combining both models ranking (this method is called shallow fusion in NMT).
Is it possible that I use your package to do this? I'd really appreciate your help and advice on how this can be possible!
Beta Was this translation helpful? Give feedback.
All reactions