Skip to content

RuntimeError: The size of the 2D attn_mask is not correct. #5

Description

@YaxinCountry

Hi urchade,

Thanks a lot for this great work.
I'm trying to reproduce your results on CONLL04. But I found that the code reported an error:
Arguments: ("RuntimeError: The size of the 2D attn_mask is not correct.")
Through debugging, The error is reported in the "loss = model(batch)"l in the train.py file.In the source code, this statement is placed in a try-catch, which will cause the model to not be trained, how can I fix this?
image

Looking forward to your reply, thank you.

Sincerely

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions