-
Notifications
You must be signed in to change notification settings - Fork 242
Open
Description
Hello,
I am trying to run a QML model using SetFit model from Hugging Face as the model body while the classification head, trained on top of it, is quantum (following this work).
However, on MacOs, if I create an environment (here with micromamba but the issue is the same with virtualenv and python venv):
#Create new environment (python version is 3.12.3)
micromamba create -n quantum_env python=3.12
# Activate it
micromamba activate quantum_env
# Install torchquantum
cd /path/to/torchquantum
pip install --editable .
# Install setfit
pip install setfit
and I run a simple script
# Test imports separately
print("Importing torch...")
import torch
print("Importing torchquantum...")
import torchquantum
print("Importing setfit...")
from setfit import SetFitModel
the setfit import stalls and I get
[mutex.cc : 452] RAW: Lock blocking 0x107a47718 @
A few remarks:
- I am not getting this error in a GPU environment (H100) (Cuda version 12.8, python version 3.12.3)
- I am not getting this error with other QML libraries (merlinquantum, pennylane)
Thank you !
Metadata
Metadata
Assignees
Labels
No labels