Clone this git repo locally.
$ git clone https://github.com/rudn-speech-analysis/analysis-node
$ cd analysis-nodeUpdate the submodules.
git submodule init && git submodule update --recursive$ conda env create -f ./environment.yamlActivate the environment:
$ conda activate speech-analysisFor Nvidia GPUs installing directly with pip or conda is enough
For AMD GPUs build flash-attn yourself.
speech-analysis environment already defines some flash-attn's
environment variables, but you can set them yourself:
$ export FLASH_ATTENTION_TRITON_AMD_ENABLE=TRUE
$ export FLASH_ATTENTION_TRITON_AMD_AUTOTUNE=TRUEThen build the library:
$ cd flash-attention
$ python setup.py install