Custom pooling methods #392
Unanswered
ahmedkooli
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@ahmedkooli Custom pooling needs to be enabled for each embedding backend (torch, ctranslate, optimum). With your model, it is defined to the model on how it was trained. You can find a the information for your model here: https://huggingface.co/dunzhang/stella_en_400M_v5/blob/main/modules.json and here https://huggingface.co/dunzhang/stella_en_400M_v5/blob/main/1_Pooling/config.json Overwriting the default is not possible atm. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey ! I have a question about pooling methods. While running a model and changing the --pooling-method (cls, mean and auto), it seems that the embeddings results are not changing. Is that normal?
Also, is there a way to choose a custom pooling method from python code?
The model I'm using is https://huggingface.co/dunzhang/stella_en_400M_v5
Thanks a lot, don't hesitate if you need more details.
Beta Was this translation helpful? Give feedback.
All reactions