-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG: Cannot build on Mac M1 Silicion #224
Comments
I think this is due to xformers not wanting to provide Apple Silicon support to focus on CUDA - facebookresearch/xformers#858 |
I am getting the following errors after using the following commands to build langflow on Mac Mini, running M4 Pro: pip3 install "opentelemetry-sdk >=1.14.0,<1.20.0" langflow no errors reported. But after running langflow get the following errors: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/_api/module_import.py:120: LangChainDeprecationWarning: Importing SQLDatabase from langchain is deprecated. Please replace deprecated imports:
with new imports of:
warn_deprecated(
with new imports of:
warn_deprecated( |
Python -VV
Note: This error originates from the build backend, and is likely not a problem with poetry but with xformers (0.0.26.post1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "xformers (==0.0.26.post1)"'.
Pip Freeze
Reproduction Steps
poetry install
or
pip3 install mistral_inference
Expected Behavior
compile and work
Additional Context
It fails on build of xformers
env/lib/python3.12/site-packages/torch/include/THC -I/Users/timothyspann/Downloads/code/milvusvenv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c -c /private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/xformers/csrc/attention/sddmm.cpp -o /private/var/folders/c2/6wq9klzn19d97gvw8f8j1jdr0000gn/T/pip-install-p9bq7hp4/xformers_6ffdc41865e543c99f124e7bdc9bacd2/build/temp.macosx-13.0-arm64-cpython-312/xformers/csrc/attention/sddmm.o -O3 -std=c++17 -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_clang"' '-DPYBIND11_STDLIB="_libcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1002"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
clang: error: unsupported option '-fopenmp'
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/Users/timothyspann/Downloads/code/milvusvenv/lib/python3.12/site-packages/torch/utils/cpp_extension.py", line 2105, in _run_ninja_build
subprocess.run(
File "/opt/homebrew/Cellar/[email protected]/3.12.6/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xformers
Running setup.py clean for xformers
Failed to build xformers
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)
Suggested Solutions
No response
The text was updated successfully, but these errors were encountered: