DSLP icon indicating copy to clipboard operation
DSLP copied to clipboard

about inference

Open piaohe20221128 opened this issue 3 years ago • 2 comments

hi,thankyou for release code! I have a question about the different pipline between train and inference 。the paper says that in inference stage the predict out of every decoder layer is fed to the next layer 。But in train stage there need to have embedding 、concat and linear op to generate new tensor which is fed to the next layer 。What would be the impact of this operation?

piaohe20221128 avatar Jan 04 '23 08:01 piaohe20221128

Hi. Both the training and inference use the concatenation of embedding and the original hidden state as the input to the next layers. They should be the same.

chenyangh avatar Jan 13 '23 22:01 chenyangh

thankyou !

piaohe20221128 avatar Jan 16 '23 02:01 piaohe20221128