Skip to content

Commit c360bd0

Browse files
committed
fix
1 parent 1f2c406 commit c360bd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fastdeploy/model_executor/layers/linear.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ def load_state_dict(self, state_dict: dict):
614614

615615
# bias
616616
if self.with_bias:
617-
print("gaoziyuan test qkv bias")
618617
if self.bias_key in state_dict.keys():
619618
bias_tensor = paddle.to_tensor(get_tensor(state_dict.pop(self.bias_key)))
620619
self.bias.set_value(bias_tensor)
@@ -651,7 +650,7 @@ def __init__(
651650
input_size: int = None,
652651
output_size: int = None,
653652
with_bias: bool = False,
654-
add_bias: bool = False,
653+
add_bias: bool = True,
655654
reduce_results: bool = True,
656655
skip_quant: bool = False,
657656
):

0 commit comments

Comments
 (0)