Replies: 1 comment 2 replies
-
you are probably passing all the data at the same time. I suggest sending the sentences in batches or 1-by-1 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm new to transformers, I'm trying to extract the embeddings for a custom dataset, I'm not sure if the implementation is right and honestly I'm not sure if this is normal to happen, I was trying to retrieve the last hidden state so I could use them later on, so could the problem be the implementation of my whole code, or could it actually be as it said?
Here's the snippet of the code:
and here's the error:
Beta Was this translation helpful? Give feedback.
All reactions