Skip to content

Commit eb7cb34

Browse files
author
unknown
committed
fc1 for glm
1 parent 9dfd075 commit eb7cb34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm_ascend/models/glm4_moe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
7676
final_hidden_states = (
7777
self.experts.maybe_all_reduce_tensor_model_parallel(
7878
final_hidden_states))
79-
return final_hidden_states.view(num_tokens, hidden_dim)
79+
return final_hidden_states.view(-1, hidden_dim)
8080

8181

8282
class CustomGlm4MoeDecoderLayer(nn.Module):

0 commit comments

Comments
 (0)