I’m not deeply familiar with torchtext, but the error message seems to indicate that you’ve created these vectors previously and are now changing their dimension?
The code snippet looks as if you are initializing vectors new. Could you explain the use case a bit?