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

about inference #15

Open
piaohe20221128 opened this issue Jan 4, 2023 · 2 comments
Open

about inference #15

piaohe20221128 opened this issue Jan 4, 2023 · 2 comments

Comments

@piaohe20221128
Copy link

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?

@chenyangh
Copy link
Owner

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.

@piaohe20221128
Copy link
Author

thankyou !

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

2 participants