Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ def attention_aiter_csrc_forward_impl(
alibi_slopes: Optional[torch.Tensor],
return_lse: bool,
return_softmax: bool,
sink_size: int = 0,
q_descale: Optional[torch.Tensor] = None,
k_descale: Optional[torch.Tensor] = None,
v_descale: Optional[torch.Tensor] = None,
) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]:

out_padded, softmax_lse, S_dmask, rng_state = _flash_attn_forward(
q,
k,
Expand All @@ -43,8 +46,12 @@ def attention_aiter_csrc_forward_impl(
causal,
window_size_left,
window_size_right,
sink_size,
bias,
alibi_slopes,
q_descale,
k_descale,
v_descale,
return_lse,
return_softmax,
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def build_jax_extension():
if torch_ext is not None and not is_package_installed("aiter"):
print("[Primus-Turbo Setup] aiter not found, will be installed automatically.")
install_requires.append(
"aiter @ git+https://github.com/ROCm/aiter.git@a25cb58ee4ee97cb5ad4b426b648a8e66103d706"
"amd-aiter @ git+https://github.com/ROCm/aiter.git@ed4bdeac27b930f8efb1976af14db88ba3d648ad"
Comment thread
GeneDer marked this conversation as resolved.
)
else:
print("[Primus-Turbo Setup] Skipping aiter installation.")
Expand Down
Loading