'MistralModel' object has no attribute 'encode'

#38
by dadada - opened

after install those packages:

pip uninstall -y transformer-engine
pip install torch==2.2.0
pip install transformers --upgrade
pip install flash-attn==2.2.0
pip install sentence-transformers==2.7.0

erros:
'MistralModel' object has no attribute 'encode'

NVIDIA org

Hi, @dadada . Thanks for reporting the issue. But, we can not reproduce this error. Can you try the transformer version upgrade as below and try again?

pip install --upgrade git+https://github.com/huggingface/transformers

Sign up or log in to comment