Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
29b8d19c
"git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "778383eef77a23686f3d0e68834b29d6d73f8501"
Unverified
Commit
29b8d19c
authored
Aug 06, 2024
by
drbh
Committed by
GitHub
Aug 06, 2024
Browse files
fix: return the out tensor rather then the functions return value (#2361)
parent
dd47a3da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
server/text_generation_server/layers/attention/cuda.py
server/text_generation_server/layers/attention/cuda.py
+3
-3
No files found.
server/text_generation_server/layers/attention/cuda.py
View file @
29b8d19c
...
@@ -292,8 +292,7 @@ else:
...
@@ -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:
...
@@ -309,4 +308,5 @@ else:
False
,
False
,
0
,
0
,
None
,
None
,
)[
0
]
)
return
out
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment