Skip to content

Commit

Permalink
changes (#5669)
Browse files Browse the repository at this point in the history
  • Loading branch information
sijunhe authored Apr 14, 2023
1 parent 848f5c1 commit 52aa271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddlenlp/transformers/gpt/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ def forward(
encoder_outputs, cached_kvs = outputs[:2]
else:
encoder_outputs = outputs
logits = self.decoder(encoder_outputs)
logits = self.lm_head(encoder_outputs)

if use_cache:
return logits, cached_kvs
Expand Down

0 comments on commit 52aa271

Please sign in to comment.