[Python] mutex.cc : 452 RAW: Lock blocking in HuggingFace/sententce-transformers

Discussão em 'Python' iniciado por Stack, Agosto 18, 2025.

  1. Stack

    Stack Membro Participativo

    I'm in python 3.11.13 with these versions:

    huggingface-hub 0.31.4
    transformers 4.52.4
    sentence-transformers 5.1.0


    And this OS (Mac):

    Darwin G9XFDK7K6J 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:53:27 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6041 arm64


    When I try:

    from transformers import AutoModel
    model = AutoModel.from_pretrained("sentence-transformers/all-MiniLM-L6-v2")


    in a python shell, just after from transformers import AutoModel,

    I get:

    [mutex.cc : 452] RAW: Lock blocking 0x600003435278 @


    The hex address changes depending on which version of HF/transformers/sentence-transformers I've tried... and I've tried a few. I've tried various versions, removing the huggingface-hub cache, changing python version, reinstalling python, reinstalling site-packages, and I still get this error. I have also restarted my Mac a few times.

    Any idea how I could overcome this?

    Continue reading...

Compartilhe esta Página