-
Notifications
You must be signed in to change notification settings - Fork 187
Newbie problems? Cannot "run configure.py" on Apple Silicon Mac M1 #1199
Replies: 1 comment · 2 replies
-
it sounds like you didn't activate the venv or some other python framework management thing is getting in the way. |
Beta Was this translation helpful? Give feedback.
All reactions
-
This indeed might be related to different dependency management tools: I searched for the newly installed packages and found them in my miniconda3 python3.11 folder: /Users/username/miniconda3/lib/python3.11/site-packages I did not activate anything related to miniconda, and do not really understand what is going on with these different dependency management tools. The installation of miniconda and of Simpletuner are on different hard drives. Any help would be greatly appreciated. I started by restarting the terminal and without and venv activated: (base) username@usermac ~ % and then closely followed the instructions. By the way, the dependency for the not existing https://github.com/bghira/optimum-quanto-simpletuner ist still active in the release branch for the apple installation, and I therefore used the main branch: git clone --branch=main https://github.com/bghira/SimpleTuner.git cd SimpleTuner python -m venv .venv (I have Python 3.11.10) source .venv/bin/activate now the prompt shows that the venv is activated as expected: (.venv) (base) username@usermac SimpleTuner % pip install -U poetry pip Now several dependencies are being installed together with Poetry - I am getting a bunch of Warnings:
poetry config virtualenvs.create false poetry install -C install/apple
Everything looks ok here, but if I use pip list, I get the following output, which does not include the torch:
|
Beta Was this translation helpful? Give feedback.
All reactions
-
thanks for the additional feedback. try not to use i've updated the apple torch and quanto dependencies and verified it on an M3 Max. that's now on the |
Beta Was this translation helpful? Give feedback.
-
I am not familiar with the Poetry system and a bit confused about the installation procedure. I followed all the steps, and I can see that several dependencies including torch are installed after I enter
poetry install -C install/apple
The instructions then tell me to "run configure.py", which I assume is done by entering
python configure.py
However, I first get the error
ModuleNotFoundError: No module named 'huggingface_hub'
and after pip install huggingface-hub, entering python configure.py again gives this error:
ModuleNotFoundError: No module named 'torch'
although torch was obviously installed with the poetry install command above. This goes on, until I try to install optimi via pip, which gives me an error that no matching distribution was found.
What am I missing here? I also tried to "run configure.py" with the command
poetry run python configure.py
but this gives me the same errors. Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions