Skip to content

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

@YaxinCountry

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

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