Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
ba8dc958
Unverified
Commit
ba8dc958
authored
Mar 13, 2024
by
Hui Liu
Committed by
GitHub
Mar 13, 2024
Browse files
[Minor] Fix bias in if to remove ambiguity (#3259)
parent
e221910e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/layers/linear.py
vllm/model_executor/layers/linear.py
+1
-1
No files found.
vllm/model_executor/layers/linear.py
View file @
ba8dc958
...
...
@@ -73,7 +73,7 @@ class UnquantizedLinearMethod(LinearMethodBase):
bias
:
Optional
[
torch
.
Tensor
]
=
None
)
->
torch
.
Tensor
:
weight
=
weights
[
"weight"
]
if
self
.
separate_bias_add
:
if
bias
:
if
bias
is
not
None
:
return
F
.
linear
(
x
,
weight
)
+
bias
return
F
.
linear
(
x
,
weight
)
return
F
.
linear
(
x
,
weight
,
bias
)
...
...
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