What are the installation requirements for using triton?

#79
by RonanMcGovern - opened

I'm using triton:

self.config.attn_config['attn_impl'] = 'triton'

The error I'm getting is:

Exception in thread Thread-13 (generate_and_signal_complete): Traceback (most recent call last): File "/root/.cache/huggingface/modules/transformers_modules/mosaicml/mpt-7b-instruct/925e0d80e50e77aaddaf9c3ced41ca4ea23a1025/attention.py", line 109, in triton_flash_attn_fn from .flash_attn_triton import flash_attn_func File "/root/.cache/huggingface/modules/transformers_modules/mosaicml/mpt-7b-instruct/925e0d80e50e77aaddaf9c3ced41ca4ea23a1025/flash_attn_triton.py", line 46, in <module> import triton_pre_mlir as triton ModuleNotFoundError: No module named 'triton_pre_mlir'

Currently I'm installing:

!pip install --upgrade transformers einops datasets accelerate

daking changed discussion status to closed

Sign up or log in to comment