[Bugfix] Fix deepseek-v2 error: "missing 1 required positional argument: 'residual'" (#13802)

This commit is contained in:
Lucas Wilkinson 2025-02-24 23:33:59 -05:00 committed by GitHub
parent bc32bc73aa
commit 4a8cfc7551
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -614,7 +614,7 @@ class DeepseekV2Model(nn.Module):
residual = intermediate_tensors["residual"]
for layer in self.layers[self.start_layer:self.end_layer]:
hidden_states, residual = layer(positions, hidden_states)
hidden_states, residual = layer(positions, hidden_states, residual)
if not get_pp_group().is_last_rank:
return IntermediateTensors({