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

MLGRU #26

Open
AACengineer opened this issue Jun 21, 2024 · 1 comment
Open

MLGRU #26

AACengineer opened this issue Jun 21, 2024 · 1 comment

Comments

@AACengineer
Copy link

From the computational formula of MLGRU, it is observed that the parallelism between tokens is disrupted during the prefill phase, whereas Transformer++ is able to maintain the parallelism between tokens, and I have two questions:

  1. latency in Figure 4->(d) means First token latency?
  2. And in Figure 4->(d) , Transfomer++ utilizes token parallelism?
@yzhangcs
Copy link
Collaborator

@AACengineer Hi, Transformer++ conducts decoding also in an autoregressive manner.
During training, Transformer++ can be fully parallelized.
However, we can also make use of the parallel scan to improve the token parallelism.
And cuz the linear-time GRU requires much less FLOPs than self attn, our training efficiency can be much better.
Also, GRU does not need KV cache, the decoding space complexity is O(1).

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