__init__() got an unexpected keyword argument 'pooling_mode_weightedmean_tokens'

#2
by p4rsimony - opened

This error is getting raised when following the installation steps or demoing the model inference widget.

I have the same error

Try:

pip show sentence-transformers
& then modify the file
sentence_transformers/models/Pooling.py
to look exactly like
https://github.com/UKPLab/sentence-transformers/blob/master/sentence_transformers/models/Pooling.py

Reference:
https://github.com/Muennighoff/sgpt/issues/14#issuecomment-1405205453

Sign up or log in to comment