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

[Bug] GatedLinearAttention got NaN #122

Open
980202006 opened this issue Jan 17, 2025 · 0 comments
Open

[Bug] GatedLinearAttention got NaN #122

980202006 opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@980202006
Copy link

Describe the Bug

Forward output nan, GatedLinearAttention

Image

Image

Steps to Reproduce the Bug

        o, recurrent_state = fused_chunk_gla(
            q=q,
            k=k,
            v=v,
            g=gk,
            initial_state=recurrent_state,
            output_final_state=use_cache,
            head_first=False
        )
        if torch.isnan(o).any():
                1==1

head = 1
seq_len=43884
dim=64

Expected Behavior

There is no nan in the forward output

Environment Information

  1. Torch:'2.5.1+cu124'
  2. Triton:3.0 nightly
@980202006 980202006 added the bug Something isn't working label Jan 17, 2025
@980202006 980202006 changed the title [Bug] [Bug] GatedLinearAttention got NaN Jan 17, 2025
@yzhangcs yzhangcs self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants