add debug
Browse files- modeling_myolmoe.py +1 -0
modeling_myolmoe.py
CHANGED
|
@@ -403,6 +403,7 @@ class MyOLMoEDecoderLayer(nn.Module):
|
|
| 403 |
hidden_states = self.post_attention_layernorm(hidden_states)
|
| 404 |
hidden_states, router_logits, aux_loss = self.mlp(hidden_states)
|
| 405 |
hidden_states = residual + hidden_states
|
|
|
|
| 406 |
|
| 407 |
# Always return 4 values in consistent order
|
| 408 |
return (
|
|
|
|
| 403 |
hidden_states = self.post_attention_layernorm(hidden_states)
|
| 404 |
hidden_states, router_logits, aux_loss = self.mlp(hidden_states)
|
| 405 |
hidden_states = residual + hidden_states
|
| 406 |
+
print(f"DEBUG: End Decoder call - hidden_states shape: {hidden_states.shape}")
|
| 407 |
|
| 408 |
# Always return 4 values in consistent order
|
| 409 |
return (
|