Closed Eigensystem closed 2 months ago
The following error occurs when using flash_attn==2.6.1:
[rank1]: File ".../lib/python3.10/site-packages/yunchang/ring/ring_flash_attn.py", line 33, in ring_flash_attn_forward [rank1]: block_out, _, _, _, _, block_lse, _, _ = _flash_attn_forward( [rank1]: TypeError: _flash_attn_forward() missing 1 required positional argument: 'softcap'
For flash_attn>=2.6.0.post1, the function signature of _flash_attn_forward is:
def _flash_attn_forward( q, k, v, dropout_p, softmax_scale, causal, window_size, softcap, alibi_slopes, return_softmax )
For flash_attn<=2.5.9.post1, the function signature of _flash_attn_forward is:
def _flash_attn_forward( q, k, v, dropout_p, softmax_scale, causal, window_size, alibi_slopes, return_softmax )
in setup.py:
install_requires=[ 'flash-attn<=2.5.9.post1', ],
or modify the interface to pass the softcap parameter
close with #70
Description
The following error occurs when using flash_attn==2.6.1:
For flash_attn>=2.6.0.post1, the function signature of _flash_attn_forward is:
For flash_attn<=2.5.9.post1, the function signature of _flash_attn_forward is:
Solution
in setup.py:
or modify the interface to pass the softcap parameter