-
Notifications
You must be signed in to change notification settings - Fork 661
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
nnx.make_causal_mask() usage #4505
Comments
Hi @windmaple, in decode mode Lines 518 to 528 in a8a192f
|
Yeah, I realized that, since we are feeding token in one by one. However, for some reason it's not working as expected. I'll try to provide a repro. |
Here is the notebook: Turning on KV cache makes it so much slower, which doesn't make any sense to me :( |
So this is a follow-up on #4290 (@cgarciae). For building a causal LM, I need to use causal masking. Here is my attempt (by adding a single line using the code from #4290:
The error I got is:
I cannot make sense of this error :(
The text was updated successfully, but these errors were encountered: