Problem installing flash-attn via conda-forge

I have tried installing flash-atten in an empty conda environment, however it fails with an error which I don’t understand that.

(fatten) [m@login03 ~]$ conda install conda-forge::flash-attn
Collecting package metadata (current_repodata.json): | WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.7.1.*, but conda is ignoring the .* and treating it as 1.7.1
done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): \ WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.8.0.*, but conda is ignoring the .* and treating it as 1.8.0
WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.9.0.*, but conda is ignoring the .* and treating it as 1.9.0
WARNING conda.models.version:get_matcher(535): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.6.0.*, but conda is ignoring the .* and treating it as 1.6.0
done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.28=0
  - feature:|@/linux-64::__glibc==2.28=0
  - conda-forge::flash-attn -> pytorch=[build=cuda*] -> __cuda[version='>=11.8']

Your installed version is: 2.28

The system information is shown below:

(fatten) [m@login03 ~]$ python --version
Python 3.6.8
(fatten) [m@login03 ~]$ conda --version
conda 4.12.0
(fatten) [m@login03 ~]$ conda list
# packages in environment at /home/m/.conda/envs/fatten:
#
# Name                    Version                   Build  Channel
(fatten) [m@login03 ~]$

Any idea about that?

@mahmoodn,

It looks like the version of glibc and cuda on your system are incompatible with the package you are trying to install. You will need to update those in order to install this package.

We also recommend updating to the latest version of conda to get the best experience (24.9.2). We have more detailed information available in the error messages that could help you further debug your problem.

1 Like