mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
stronger parameter validation
This commit is contained in:
parent
f75bbbcc63
commit
7bce6032a8
@ -72,7 +72,7 @@ def attention(
|
||||
softmax_scale,
|
||||
window_size_left=-1,
|
||||
):
|
||||
if window_size_left == 0:
|
||||
if window_size_left <= 0 and window_size_left != -1:
|
||||
raise ValueError("`window_size_left` must be > 0 or -1")
|
||||
|
||||
if HAS_FLASH_ATTN_V2_CUDA:
|
||||
|
Loading…
Reference in New Issue
Block a user