Same embedding for different inputs #15093
marcobambini
started this conversation in
General
Replies: 2 comments 4 replies
-
What's the pooling type on those memory models? If the pooling type is NONE, the code here will just yield the embedding from the first token, which might be the same across different inputs. If you're using the |
Beta Was this translation helpful? Give feedback.
0 replies
-
@iamlemec, I am not sure how to specify the LAST embedding type. How can I modify the code just to obtain the last embedding result? |
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.
-
I call the following code several times with different input text (same context), but on some models (the ones with memory), multiple invocations produce the same embedding. Do you know what I am doing wrong? I tried to clean up memory after the execution, but nothing changed. I would greatly appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions