CTranslate2 icon indicating copy to clipboard operation
CTranslate2 copied to clipboard

Extract last hidden state

Open dathudeptrai opened this issue 1 year ago • 4 comments

Hi, is there any way to extract the last hidden state (before lm_head dense layer) of the T5, GPT model ?. There are some kind of model need to take the last hidden state of autoregressive model as input, so it is nice if you support return last hidden states of the model.

dathudeptrai avatar May 09 '23 19:05 dathudeptrai