image-matching-models
image-matching-models copied to clipboard
Issue when installing the package on AWS SageMaker
Hi, thank you for this great library! I am trying to install your library on AWS SageMaker, following instructions. However, I keep encountering an error when I try to install it on AWS SageMaker.
I guess the issue is mainly due to the gcc
version (on SageMaker, gcc --version
is 7.3.1). While we cannot change the gcc version on SageMaker, I was wondering if there is any way we can resolve this?
Any suggestions would be greatly appreciated! Thank you in advance!
Building wheel for xformers (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [298 lines of output]
fatal: not a git repository (or any of the parent directories): .git
running bdist_wheel
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/utils/cpp_extension.py:495: 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/lib.linux-x86_64-cpython-310/xformers
copying xformers/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers
copying xformers/_cpp_lib.py -> build/lib.linux-x86_64-cpython-310/xformers
copying xformers/_deprecation_warning.py -> build/lib.linux-x86_64-cpython-310/xformers
copying xformers/attn_bias_utils.py -> build/lib.linux-x86_64-cpython-310/xformers
copying xformers/checkpoint.py -> build/lib.linux-x86_64-cpython-310/xformers
copying xformers/info.py -> build/lib.linux-x86_64-cpython-310/xformers
copying xformers/test.py -> build/lib.linux-x86_64-cpython-310/xformers
copying xformers/utils.py -> build/lib.linux-x86_64-cpython-310/xformers
creating build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_attn_decoding.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_core.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_indexing.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_mem_eff_attention.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_merge_attentions.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_multi_head_dispatch.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_nystrom_utils.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_revnet.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_sddmm.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_sequence_parallel_fused.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_sp24.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_swiglu.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/benchmark_tiled_matmul.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
copying xformers/benchmarks/utils.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks
creating build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/activations.py -> build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/input_projection.py -> build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/multi_head_dispatch.py -> build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/patch_embedding.py -> build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/residual.py -> build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/reversible.py -> build/lib.linux-x86_64-cpython-310/xformers/components
copying xformers/components/simplicial_embedding.py -> build/lib.linux-x86_64-cpython-310/xformers/components
creating build/lib.linux-x86_64-cpython-310/xformers/factory
copying xformers/factory/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/factory
copying xformers/factory/block_configs.py -> build/lib.linux-x86_64-cpython-310/xformers/factory
copying xformers/factory/block_factory.py -> build/lib.linux-x86_64-cpython-310/xformers/factory
copying xformers/factory/hydra_helper.py -> build/lib.linux-x86_64-cpython-310/xformers/factory
copying xformers/factory/model_factory.py -> build/lib.linux-x86_64-cpython-310/xformers/factory
copying xformers/factory/weight_init.py -> build/lib.linux-x86_64-cpython-310/xformers/factory
creating build/lib.linux-x86_64-cpython-310/xformers/helpers
copying xformers/helpers/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/helpers
copying xformers/helpers/hierarchical_configs.py -> build/lib.linux-x86_64-cpython-310/xformers/helpers
copying xformers/helpers/test_utils.py -> build/lib.linux-x86_64-cpython-310/xformers/helpers
copying xformers/helpers/timm_sparse_attention.py -> build/lib.linux-x86_64-cpython-310/xformers/helpers
creating build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/common.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/differentiable_collectives.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/indexing.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/ipc.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/modpar_layers.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/rmsnorm.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/rope_padded.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/seqpar.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/sequence_parallel_fused_ops.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/sp24.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/swiglu_op.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/tiled_matmul.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
copying xformers/ops/unbind.py -> build/lib.linux-x86_64-cpython-310/xformers/ops
creating build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/api.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/device_limits.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/find_slowest.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/profile_analyzer.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/profiler.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/profiler_dcgm.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
copying xformers/profiler/profiler_dcgm_impl.py -> build/lib.linux-x86_64-cpython-310/xformers/profiler
creating build/lib.linux-x86_64-cpython-310/xformers/sparse
copying xformers/sparse/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/sparse
copying xformers/sparse/_csr_ops.py -> build/lib.linux-x86_64-cpython-310/xformers/sparse
copying xformers/sparse/blocksparse_tensor.py -> build/lib.linux-x86_64-cpython-310/xformers/sparse
copying xformers/sparse/csr_tensor.py -> build/lib.linux-x86_64-cpython-310/xformers/sparse
copying xformers/sparse/utils.py -> build/lib.linux-x86_64-cpython-310/xformers/sparse
creating build/lib.linux-x86_64-cpython-310/xformers/triton
copying xformers/triton/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/triton
copying xformers/triton/vararg_kernel.py -> build/lib.linux-x86_64-cpython-310/xformers/triton
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/bert_padding.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/flash_attn_interface.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/flash_attn_triton.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/flash_attn_triton_og.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/flash_blocksparse_attention.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/flash_blocksparse_attn_interface.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
copying xformers/_flash_attn/fused_softmax.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn
creating build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA
copying xformers/benchmarks/LRA/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA
copying xformers/benchmarks/LRA/batch_fetch_results.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA
copying xformers/benchmarks/LRA/batch_submit.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA
copying xformers/benchmarks/LRA/run_grid_search.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA
copying xformers/benchmarks/LRA/run_tasks.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA
copying xformers/benchmarks/LRA/run_with_submitit.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA
creating build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA/code
copying xformers/benchmarks/LRA/code/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA/code
copying xformers/benchmarks/LRA/code/dataset.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA/code
copying xformers/benchmarks/LRA/code/model_wrapper.py -> build/lib.linux-x86_64-cpython-310/xformers/benchmarks/LRA/code
creating build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/_sputnik_sparse.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/attention_mask.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/attention_patterns.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/base.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/compositional.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/core.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/favor.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/fourier_mix.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/global_tokens.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/lambda_layer.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/linformer.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/local.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/nystrom.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/ortho.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/pooling.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/random.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/scaled_dot_product.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/sparsity_config.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/utils.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
copying xformers/components/attention/visual.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention
creating build/lib.linux-x86_64-cpython-310/xformers/components/feedforward
copying xformers/components/feedforward/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/components/feedforward
copying xformers/components/feedforward/base.py -> build/lib.linux-x86_64-cpython-310/xformers/components/feedforward
copying xformers/components/feedforward/conv_mlp.py -> build/lib.linux-x86_64-cpython-310/xformers/components/feedforward
copying xformers/components/feedforward/mixture_of_experts.py -> build/lib.linux-x86_64-cpython-310/xformers/components/feedforward
copying xformers/components/feedforward/mlp.py -> build/lib.linux-x86_64-cpython-310/xformers/components/feedforward
creating build/lib.linux-x86_64-cpython-310/xformers/components/positional_embedding
copying xformers/components/positional_embedding/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/components/positional_embedding
copying xformers/components/positional_embedding/base.py -> build/lib.linux-x86_64-cpython-310/xformers/components/positional_embedding
copying xformers/components/positional_embedding/param.py -> build/lib.linux-x86_64-cpython-310/xformers/components/positional_embedding
copying xformers/components/positional_embedding/rotary.py -> build/lib.linux-x86_64-cpython-310/xformers/components/positional_embedding
copying xformers/components/positional_embedding/sine.py -> build/lib.linux-x86_64-cpython-310/xformers/components/positional_embedding
copying xformers/components/positional_embedding/vocab.py -> build/lib.linux-x86_64-cpython-310/xformers/components/positional_embedding
creating build/lib.linux-x86_64-cpython-310/xformers/components/attention/feature_maps
copying xformers/components/attention/feature_maps/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention/feature_maps
copying xformers/components/attention/feature_maps/base.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention/feature_maps
copying xformers/components/attention/feature_maps/softmax.py -> build/lib.linux-x86_64-cpython-310/xformers/components/attention/feature_maps
creating build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
copying xformers/ops/_triton/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
copying xformers/ops/_triton/k_index_select_cat.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
copying xformers/ops/_triton/k_scaled_index_add.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
copying xformers/ops/_triton/rmsnorm_kernels.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
copying xformers/ops/_triton/rope_padded_kernels.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
copying xformers/ops/_triton/sequence_parallel_fused_kernels.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
copying xformers/ops/_triton/tiled_matmul_kernels.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/_triton
creating build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/attn_bias.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/ck.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/ck_decoder.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/ck_splitk.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/common.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/cutlass.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/dispatch.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/flash.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/flash3.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/torch_attention_compat.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
copying xformers/ops/fmha/triton_splitk.py -> build/lib.linux-x86_64-cpython-310/xformers/ops/fmha
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/layers
copying xformers/_flash_attn/layers/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/layers
copying xformers/_flash_attn/layers/patch_embed.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/layers
copying xformers/_flash_attn/layers/rotary.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/layers
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/losses
copying xformers/_flash_attn/losses/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/losses
copying xformers/_flash_attn/losses/cross_entropy.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/losses
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/baichuan.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/bert.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/bigcode.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/btlm.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/falcon.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/gpt.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/gpt_neox.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/gptj.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/llama.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/opt.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
copying xformers/_flash_attn/models/vit.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/models
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/modules
copying xformers/_flash_attn/modules/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/modules
copying xformers/_flash_attn/modules/block.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/modules
copying xformers/_flash_attn/modules/embedding.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/modules
copying xformers/_flash_attn/modules/mha.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/modules
copying xformers/_flash_attn/modules/mlp.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/modules
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops
copying xformers/_flash_attn/ops/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops
copying xformers/_flash_attn/ops/activations.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops
copying xformers/_flash_attn/ops/fused_dense.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops
copying xformers/_flash_attn/ops/layer_norm.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops
copying xformers/_flash_attn/ops/rms_norm.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/utils
copying xformers/_flash_attn/utils/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/utils
copying xformers/_flash_attn/utils/benchmark.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/utils
copying xformers/_flash_attn/utils/distributed.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/utils
copying xformers/_flash_attn/utils/generation.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/utils
copying xformers/_flash_attn/utils/pretrained.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/utils
creating build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
copying xformers/_flash_attn/ops/triton/__init__.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
copying xformers/_flash_attn/ops/triton/cross_entropy.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
copying xformers/_flash_attn/ops/triton/k_activations.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
copying xformers/_flash_attn/ops/triton/layer_norm.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
copying xformers/_flash_attn/ops/triton/linear.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
copying xformers/_flash_attn/ops/triton/mlp.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
copying xformers/_flash_attn/ops/triton/rotary.py -> build/lib.linux-x86_64-cpython-310/xformers/_flash_attn/ops/triton
running build_ext
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no g++ version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'xformers._C' extension
creating build/temp.linux-x86_64-cpython-310/xformers/csrc/attention
creating build/temp.linux-x86_64-cpython-310/xformers/csrc/attention/autograd
creating build/temp.linux-x86_64-cpython-310/xformers/csrc/attention/cpu
creating build/temp.linux-x86_64-cpython-310/xformers/csrc/attention/cuda/fmha
creating build/temp.linux-x86_64-cpython-310/xformers/csrc/sequence_parallel_fused
creating build/temp.linux-x86_64-cpython-310/xformers/csrc/sparse24
creating build/temp.linux-x86_64-cpython-310/xformers/csrc/swiglu/cuda
g++ -pthread -B /home/ec2-user/anaconda3/envs/python3/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ec2-user/anaconda3/envs/python3/include -fPIC -O2 -isystem /home/ec2-user/anaconda3/envs/python3/include -fPIC -I/tmp/pip-install-bgev8n4r/xformers_eab43ef3b2a549cdbba100ec02aa6687/xformers/csrc -I/tmp/pip-install-bgev8n4r/xformers_eab43ef3b2a549cdbba100ec02aa6687/third_party/sputnik -I/tmp/pip-install-bgev8n4r/xformers_eab43ef3b2a549cdbba100ec02aa6687/third_party/cutlass/include -I/tmp/pip-install-bgev8n4r/xformers_eab43ef3b2a549cdbba100ec02aa6687/third_party/cutlass/tools/util/include -I/tmp/pip-install-bgev8n4r/xformers_eab43ef3b2a549cdbba100ec02aa6687/third_party/cutlass/examples -I/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include -I/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/TH -I/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/ec2-user/anaconda3/envs/python3/include/python3.10 -c xformers/csrc/attention/attention.cpp -o build/temp.linux-x86_64-cpython-310/xformers/csrc/attention/attention.o -O3 -std=c++17 -fopenmp -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/util/CallOnce.h:8:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/ATen/Context.h:22,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/ATen/ATen.h:7,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from xformers/csrc/attention/attention.cpp:8:
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."
#error \
^~~~~
In file included from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:11:0,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/ATen/Context.h:4,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/ATen/ATen.h:7,
from /home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from xformers/csrc/attention/attention.cpp:8:
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)128)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)133)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)134)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)129)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)131)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)137)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)142)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)132)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)135)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)139)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
DispatchKeySet(DispatchKey::AutogradPrivateUse1);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)140)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
DispatchKeySet(DispatchKey::AutogradPrivateUse2);
^
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: in constexpr expansion of ‘c10::DispatchKeySet((c10::DispatchKey)141)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42: in constexpr expansion of ‘c10::toBackendComponent(k)’
/home/ec2-user/anaconda3/envs/python3/lib/python3.10/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
DispatchKeySet(DispatchKey::AutogradPrivateUse3);
^
error: command '/usr/bin/g++' 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
Running setup.py clean for xformers
Successfully built image-matching-models antlr4-python3-runtime
Failed to build xformers
ERROR: Could not build wheels for xformers, which is required to install pyproject.toml-based projects
Note: you may need to restart the kernel to use updated packages.