RuntimeError: The size of tensor a (1218) must match the size of tensor b (512) at non-singleton dimension 1 #10742
Unanswered
Einsteinder
asked this question in
Help: Coding & Implementations
Replies: 2 comments 4 replies
-
There are a couple of weird things going on in your config but I think this is mainly an issue with the Transformer model you're using - if I change that to Some other notes:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If this is still of interest, there is a simple hacky fix to this problem. Add |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to train a transformer model using this command:
transformer-config.cfg:
training sample attached
spacy_file.zip
but it gives error:
It seems related to the length of text, but this is not a crazy lengthy one, anyone can help on this? Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions