Skip to content

Commit

Permalink
black reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sedrick-keh-tri committed Dec 12, 2023
1 parent 460c239 commit bdc42f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_lm/utils/transformers/hf_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def forward(
```"""
# decoder outputs consists of (dec_features, layer_state, dec_hidden, dec_attn)
logits, _ = self.model(input_ids)

if labels is not None:
# Shift so that tokens < n predict n
shift_logits = logits[..., :-1, :].contiguous()
Expand Down

0 comments on commit bdc42f0

Please sign in to comment.