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 the running #10

Open
TheOnlylight opened this issue Mar 9, 2023 · 1 comment
Open

about the running #10

TheOnlylight opened this issue Mar 9, 2023 · 1 comment

Comments

@TheOnlylight
Copy link

the trainer cannot do the truncation by default

[/usr/local/lib/python3.9/dist-packages/ofasys/adaptor/general.py](https://rv8u4ubipi-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab-20230307-060233-RC01_514758488#) in concat(self, modality_outputs)
    275                 end_pos = start_pos + seq_length
    276                 if modality_output.self_attn_bias[idx] is not None:
--> 277                     self_attn_bias[:, :, start_pos:end_pos, start_pos:end_pos] += modality_output.self_attn_bias[idx]
    278                 start_pos = end_pos
    279             assert start_pos == output.seq_length

RuntimeError: The size of tensor a (1025) must match the size of tensor b (1024) at non-singleton dimension 3
@lllxf
Copy link

lllxf commented Feb 19, 2024

Did you solve it?

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