Skip to content

Commit 819b234

Browse files
committed
modify format
1 parent e2c9987 commit 819b234

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

fastdeploy/model_executor/layers/linear.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ def process_loaded_weights(self, layer, weights) -> None:
8484
def apply(self, layer: nn.Layer, x: paddle.Tensor) -> paddle.Tensor:
8585
if layer.with_bias:
8686
bias = layer.bias
87-
assert bias.dim() == 1 and bias.shape[-1] == layer.weight.shape[-1], \
88-
f"bias must be 1D with size equal to the last dim of weight, " \
87+
assert bias.dim() == 1 and bias.shape[-1] == layer.weight.shape[-1], (
88+
f"bias must be 1D with size equal to the last dim of weight, "
8989
f"but got bias.shape={bias.shape}, weight.shape[-1]={layer.weight.shape[-1]}"
90+
)
9091
else:
9192
bias = None
9293

tests/e2e/4cards_cases/test_GLM_45_AIR_mtp_tp4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
)
3737

3838

39-
4039
@pytest.fixture(scope="session", autouse=True)
4140
def setup_and_run_server():
4241
"""

0 commit comments

Comments
 (0)