mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
fix: return the out tensor rather then the functions return value (#2361)
This commit is contained in:
parent
dd47a3dac4
commit
29b8d19cdf
@ -292,8 +292,7 @@ else:
|
|||||||
)
|
)
|
||||||
|
|
||||||
out = torch.empty_like(q)
|
out = torch.empty_like(q)
|
||||||
|
flash_attn_cuda.fwd(
|
||||||
return flash_attn_cuda.fwd(
|
|
||||||
q,
|
q,
|
||||||
k,
|
k,
|
||||||
v,
|
v,
|
||||||
@ -309,4 +308,5 @@ else:
|
|||||||
False,
|
False,
|
||||||
0,
|
0,
|
||||||
None,
|
None,
|
||||||
)[0]
|
)
|
||||||
|
return out
|
||||||
|
Loading…
Reference in New Issue
Block a user