facebookresearch/chameleon

Issue during setup - xformers

funmonty opened this issue · 1 comments

Facing an issue while setting up the repo and installing during this step

pip3 install -e .

The error is coming while building wheel for xformers package. I am using MacBook M1. Any leads would be really helpful

Obtaining file:///Users/madhu/Documents/chameleon/chameleon
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting transformers==4.36.2 (from chameleon==1.0.0)
  Using cached transformers-4.36.2-py3-none-any.whl.metadata (126 kB)
Collecting xformers==0.0.23 (from chameleon==1.0.0)
  Using cached xformers-0.0.23.tar.gz (3.8 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting Pillow==10.0.* (from chameleon==1.0.0)
  Using cached Pillow-10.0.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (9.5 kB)
Collecting numpy==1.26.* (from chameleon==1.0.0)
  Using cached numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl.metadata (61 kB)
Collecting click (from chameleon==1.0.0)
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting flask (from chameleon==1.0.0)
  Using cached flask-3.0.3-py3-none-any.whl.metadata (3.2 kB)
Collecting flask-socketio (from chameleon==1.0.0)
  Using cached Flask_SocketIO-5.3.6-py3-none-any.whl.metadata (2.6 kB)
Requirement already satisfied: filelock in /opt/homebrew/lib/python3.12/site-packages (from transformers==4.36.2->chameleon==1.0.0) (3.15.4)
Collecting huggingface-hub<1.0,>=0.19.3 (from transformers==4.36.2->chameleon==1.0.0)
  Using cached huggingface_hub-0.23.4-py3-none-any.whl.metadata (12 kB)
Collecting packaging>=20.0 (from transformers==4.36.2->chameleon==1.0.0)
  Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pyyaml>=5.1 (from transformers==4.36.2->chameleon==1.0.0)
  Using cached PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl.metadata (2.1 kB)
Collecting regex!=2019.12.17 (from transformers==4.36.2->chameleon==1.0.0)
  Using cached regex-2024.5.15-cp312-cp312-macosx_11_0_arm64.whl.metadata (40 kB)
Collecting requests (from transformers==4.36.2->chameleon==1.0.0)
  Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting tokenizers<0.19,>=0.14 (from transformers==4.36.2->chameleon==1.0.0)
  Using cached tokenizers-0.15.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (6.7 kB)
Collecting safetensors>=0.3.1 (from transformers==4.36.2->chameleon==1.0.0)
  Using cached safetensors-0.4.3-cp312-cp312-macosx_11_0_arm64.whl.metadata (3.8 kB)
Collecting tqdm>=4.27 (from transformers==4.36.2->chameleon==1.0.0)
  Using cached tqdm-4.66.4-py3-none-any.whl.metadata (57 kB)
Requirement already satisfied: torch>=1.12 in /opt/homebrew/lib/python3.12/site-packages (from xformers==0.0.23->chameleon==1.0.0) (2.3.1)
Collecting Werkzeug>=3.0.0 (from flask->chameleon==1.0.0)
  Using cached werkzeug-3.0.3-py3-none-any.whl.metadata (3.7 kB)
Requirement already satisfied: Jinja2>=3.1.2 in /opt/homebrew/lib/python3.12/site-packages (from flask->chameleon==1.0.0) (3.1.4)
Collecting itsdangerous>=2.1.2 (from flask->chameleon==1.0.0)
  Using cached itsdangerous-2.2.0-py3-none-any.whl.metadata (1.9 kB)
Collecting blinker>=1.6.2 (from flask->chameleon==1.0.0)
  Using cached blinker-1.8.2-py3-none-any.whl.metadata (1.6 kB)
Collecting python-socketio>=5.0.2 (from flask-socketio->chameleon==1.0.0)
  Using cached python_socketio-5.11.3-py3-none-any.whl.metadata (3.2 kB)
Requirement already satisfied: fsspec>=2023.5.0 in /opt/homebrew/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.19.3->transformers==4.36.2->chameleon==1.0.0) (2024.6.0)
Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/homebrew/lib/python3.12/site-packages (from huggingface-hub<1.0,>=0.19.3->transformers==4.36.2->chameleon==1.0.0) (4.12.2)
Requirement already satisfied: MarkupSafe>=2.0 in /opt/homebrew/lib/python3.12/site-packages (from Jinja2>=3.1.2->flask->chameleon==1.0.0) (2.1.5)
Collecting bidict>=0.21.0 (from python-socketio>=5.0.2->flask-socketio->chameleon==1.0.0)
  Using cached bidict-0.23.1-py3-none-any.whl.metadata (8.7 kB)
Collecting python-engineio>=4.8.0 (from python-socketio>=5.0.2->flask-socketio->chameleon==1.0.0)
  Using cached python_engineio-4.9.1-py3-none-any.whl.metadata (2.2 kB)
Requirement already satisfied: sympy in /opt/homebrew/lib/python3.12/site-packages (from torch>=1.12->xformers==0.0.23->chameleon==1.0.0) (1.12.1)
Requirement already satisfied: networkx in /opt/homebrew/lib/python3.12/site-packages (from torch>=1.12->xformers==0.0.23->chameleon==1.0.0) (3.3)
Collecting charset-normalizer<4,>=2 (from requests->transformers==4.36.2->chameleon==1.0.0)
  Using cached charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl.metadata (33 kB)
Collecting idna<4,>=2.5 (from requests->transformers==4.36.2->chameleon==1.0.0)
  Using cached idna-3.7-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests->transformers==4.36.2->chameleon==1.0.0)
  Using cached urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests->transformers==4.36.2->chameleon==1.0.0)
  Using cached certifi-2024.6.2-py3-none-any.whl.metadata (2.2 kB)
Collecting simple-websocket>=0.10.0 (from python-engineio>=4.8.0->python-socketio>=5.0.2->flask-socketio->chameleon==1.0.0)
  Using cached simple_websocket-1.0.0-py3-none-any.whl.metadata (1.3 kB)
Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in /opt/homebrew/lib/python3.12/site-packages (from sympy->torch>=1.12->xformers==0.0.23->chameleon==1.0.0) (1.3.0)
Collecting wsproto (from simple-websocket>=0.10.0->python-engineio>=4.8.0->python-socketio>=5.0.2->flask-socketio->chameleon==1.0.0)
  Using cached wsproto-1.2.0-py3-none-any.whl.metadata (5.6 kB)
Collecting h11<1,>=0.9.0 (from wsproto->simple-websocket>=0.10.0->python-engineio>=4.8.0->python-socketio>=5.0.2->flask-socketio->chameleon==1.0.0)
  Using cached h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Using cached numpy-1.26.4-cp312-cp312-macosx_11_0_arm64.whl (13.7 MB)
Using cached Pillow-10.0.1-cp312-cp312-macosx_11_0_arm64.whl (3.3 MB)
Using cached transformers-4.36.2-py3-none-any.whl (8.2 MB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached flask-3.0.3-py3-none-any.whl (101 kB)
Using cached Flask_SocketIO-5.3.6-py3-none-any.whl (18 kB)
Using cached blinker-1.8.2-py3-none-any.whl (9.5 kB)
Using cached huggingface_hub-0.23.4-py3-none-any.whl (402 kB)
Using cached itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached python_socketio-5.11.3-py3-none-any.whl (76 kB)
Using cached PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl (165 kB)
Using cached regex-2024.5.15-cp312-cp312-macosx_11_0_arm64.whl (278 kB)
Using cached safetensors-0.4.3-cp312-cp312-macosx_11_0_arm64.whl (411 kB)
Using cached tokenizers-0.15.2-cp312-cp312-macosx_11_0_arm64.whl (2.4 MB)
Using cached tqdm-4.66.4-py3-none-any.whl (78 kB)
Using cached werkzeug-3.0.3-py3-none-any.whl (227 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached bidict-0.23.1-py3-none-any.whl (32 kB)
Using cached certifi-2024.6.2-py3-none-any.whl (164 kB)
Using cached charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl (119 kB)
Using cached idna-3.7-py3-none-any.whl (66 kB)
Using cached python_engineio-4.9.1-py3-none-any.whl (57 kB)
Using cached urllib3-2.2.2-py3-none-any.whl (121 kB)
Using cached simple_websocket-1.0.0-py3-none-any.whl (13 kB)
Using cached wsproto-1.2.0-py3-none-any.whl (24 kB)
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Building wheels for collected packages: chameleon, xformers
  Building editable for chameleon (pyproject.toml) ... done
  Created wheel for chameleon: filename=chameleon-1.0.0-0.editable-py3-none-any.whl size=12690 sha256=fb20a5172ad9dd41fe47bd72914ff89ebfce66dd2c222d1cfa4880a3b196c122
  Stored in directory: /private/var/folders/x3/_fg7s3yn5nl2hbfrhr1zb7bc0000gn/T/pip-ephem-wheel-cache-w3b5a4ud/wheels/77/2d/73/c77ad63062181e82c13f6a673c3c3bd79b95ad20bf545602dd
  Building wheel for xformers (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for xformers (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [228 lines of output]
      running bdist_wheel
      /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/utils/cpp_extension.py:499: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
        warnings.warn(msg.format('we could not find ninja.'))
      running build
      running build_py
      creating build
      creating build/lib.macosx-14.0-arm64-cpython-312
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/_deprecation_warning.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/attn_bias_utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/checkpoint.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/test.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/_cpp_lib.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      copying xformers/info.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/fused_linear_layer.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/vararg_kernel.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/k_activations.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/k_layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/k_fused_matmul_fw.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/dropout.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/k_dropout.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/softmax.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/k_fused_matmul_bw.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      copying xformers/triton/k_softmax.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/triton
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/simplicial_embedding.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/residual.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/reversible.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/activations.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/multi_head_dispatch.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/input_projection.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      copying xformers/components/patch_embedding.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_mem_eff_attention.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_indexing.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_mlp.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_blocksparse_transformers.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_mem_eff_attn_decoder.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_transformer.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_revnet.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_swiglu.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_triton_layernorm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_causal_blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_triton_fused_linear.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_triton_blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_triton_softmax.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_triton_dropout.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_nystrom_utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_attn_decoding.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_multi_head_dispatch.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_sddmm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      copying xformers/benchmarks/benchmark_core.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      copying xformers/ops/rmsnorm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      copying xformers/ops/swiglu_op.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      copying xformers/ops/unbind.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      copying xformers/ops/rope_padded.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      copying xformers/ops/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      copying xformers/ops/common.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      copying xformers/ops/indexing.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/profiler
      copying xformers/profiler/device_limits.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/profiler
      copying xformers/profiler/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/profiler
      copying xformers/profiler/api.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/profiler
      copying xformers/profiler/slow_ops_profiler.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/profiler
      copying xformers/profiler/profiler.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/profiler
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/sparse
      copying xformers/sparse/_csr_ops.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/sparse
      copying xformers/sparse/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/sparse
      copying xformers/sparse/utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/sparse
      copying xformers/sparse/blocksparse_tensor.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/sparse
      copying xformers/sparse/csr_tensor.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/sparse
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/helpers
      copying xformers/helpers/test_utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/helpers
      copying xformers/helpers/hierarchical_configs.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/helpers
      copying xformers/helpers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/helpers
      copying xformers/helpers/timm_sparse_attention.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/helpers
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/fused_softmax.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/flash_blocksparse_attn_interface.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/flash_blocksparse_attention.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/bert_padding.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/flash_attn_triton_og.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/flash_attn_triton.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      copying xformers/_flash_attn/flash_attn_interface.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/factory
      copying xformers/factory/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/factory
      copying xformers/factory/hydra_helper.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/factory
      copying xformers/factory/block_factory.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/factory
      copying xformers/factory/model_factory.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/factory
      copying xformers/factory/block_configs.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/factory
      copying xformers/factory/weight_init.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/factory
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/global_tokens.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/ortho.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/blocksparse.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/local.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/compositional.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/pooling.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/_sputnik_sparse.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/core.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/lambda_layer.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/random.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/fourier_mix.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/scaled_dot_product.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/utils.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/attention_mask.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/linformer.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/attention_patterns.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/visual.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/sparsity_config.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/nystrom.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/favor.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      copying xformers/components/attention/base.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/components/feedforward
      copying xformers/components/feedforward/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/feedforward
      copying xformers/components/feedforward/mixture_of_experts.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/feedforward
      copying xformers/components/feedforward/mlp.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/feedforward
      copying xformers/components/feedforward/conv_mlp.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/feedforward
      copying xformers/components/feedforward/fused_mlp.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/feedforward
      copying xformers/components/feedforward/base.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/feedforward
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/components/positional_embedding
      copying xformers/components/positional_embedding/vocab.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/positional_embedding
      copying xformers/components/positional_embedding/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/positional_embedding
      copying xformers/components/positional_embedding/param.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/positional_embedding
      copying xformers/components/positional_embedding/sine.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/positional_embedding
      copying xformers/components/positional_embedding/rotary.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/positional_embedding
      copying xformers/components/positional_embedding/base.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/positional_embedding
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention/feature_maps
      copying xformers/components/attention/feature_maps/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention/feature_maps
      copying xformers/components/attention/feature_maps/softmax.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention/feature_maps
      copying xformers/components/attention/feature_maps/base.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/components/attention/feature_maps
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA
      copying xformers/benchmarks/LRA/batch_submit.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA
      copying xformers/benchmarks/LRA/batch_fetch_results.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA
      copying xformers/benchmarks/LRA/run_with_submitit.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA
      copying xformers/benchmarks/LRA/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA
      copying xformers/benchmarks/LRA/run_tasks.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA
      copying xformers/benchmarks/LRA/run_grid_search.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA/code
      copying xformers/benchmarks/LRA/code/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA/code
      copying xformers/benchmarks/LRA/code/model_wrapper.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA/code
      copying xformers/benchmarks/LRA/code/dataset.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/benchmarks/LRA/code
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/_triton
      copying xformers/ops/_triton/k_scaled_index_add.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/_triton
      copying xformers/ops/_triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/_triton
      copying xformers/ops/_triton/rope_padded_kernels.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/_triton
      copying xformers/ops/_triton/k_index_select_cat.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/_triton
      copying xformers/ops/_triton/rmsnorm_kernels.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/_triton
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/decoder.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/triton.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/dispatch.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/attn_bias.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/common.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/flash.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/small_k.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/cutlass.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      copying xformers/ops/fmha/triton_splitk.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/ops/fmha
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/losses
      copying xformers/_flash_attn/losses/cross_entropy.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/losses
      copying xformers/_flash_attn/losses/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/losses
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/layers
      copying xformers/_flash_attn/layers/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/layers
      copying xformers/_flash_attn/layers/patch_embed.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/layers
      copying xformers/_flash_attn/layers/rotary.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/layers
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/utils
      copying xformers/_flash_attn/utils/pretrained.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/utils
      copying xformers/_flash_attn/utils/generation.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/utils
      copying xformers/_flash_attn/utils/benchmark.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/utils
      copying xformers/_flash_attn/utils/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/utils
      copying xformers/_flash_attn/utils/distributed.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/utils
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/bigcode.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/gptj.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/opt.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/llama.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/vit.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/baichuan.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/bert.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/falcon.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/gpt_neox.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      copying xformers/_flash_attn/models/gpt.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/models
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops
      copying xformers/_flash_attn/ops/activations.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops
      copying xformers/_flash_attn/ops/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops
      copying xformers/_flash_attn/ops/fused_dense.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops
      copying xformers/_flash_attn/ops/rms_norm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops
      copying xformers/_flash_attn/ops/layer_norm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/modules
      copying xformers/_flash_attn/modules/embedding.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/modules
      copying xformers/_flash_attn/modules/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/modules
      copying xformers/_flash_attn/modules/mlp.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/modules
      copying xformers/_flash_attn/modules/block.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/modules
      copying xformers/_flash_attn/modules/mha.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/modules
      creating build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      copying xformers/_flash_attn/ops/triton/cross_entropy.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      copying xformers/_flash_attn/ops/triton/layernorm.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      copying xformers/_flash_attn/ops/triton/linear.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      copying xformers/_flash_attn/ops/triton/k_activations.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      copying xformers/_flash_attn/ops/triton/__init__.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      copying xformers/_flash_attn/ops/triton/mlp.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      copying xformers/_flash_attn/ops/triton/rotary.py -> build/lib.macosx-14.0-arm64-cpython-312/xformers/_flash_attn/ops/triton
      running build_ext
      building 'xformers._C' extension
      creating build/temp.macosx-14.0-arm64-cpython-312
      creating build/temp.macosx-14.0-arm64-cpython-312/xformers
      creating build/temp.macosx-14.0-arm64-cpython-312/xformers/csrc
      creating build/temp.macosx-14.0-arm64-cpython-312/xformers/csrc/attention
      creating build/temp.macosx-14.0-arm64-cpython-312/xformers/csrc/attention/autograd
      creating build/temp.macosx-14.0-arm64-cpython-312/xformers/csrc/attention/cpu
      creating build/temp.macosx-14.0-arm64-cpython-312/xformers/csrc/swiglu
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/private/var/folders/x3/_fg7s3yn5nl2hbfrhr1zb7bc0000gn/T/pip-install-a2b2c_tx/xformers_41e3db9e804c4c4b8a4e21bd1cdee5d3/xformers/csrc -I/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/include -I/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/include/torch/csrc/api/include -I/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/include/TH -I/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/torch/include/THC -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c xformers/csrc/attention/attention.cpp -o build/temp.macosx-14.0-arm64-cpython-312/xformers/csrc/attention/attention.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'
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for xformers
Successfully built chameleon
Failed to build xformers
ERROR: Could not build wheels for xformers, which is required to install pyproject.toml-based projects