Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vchiley committed Nov 9, 2023
1 parent 5fb3e29 commit c5391c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/models/mpt/modeling_mpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def forward(
)

out = outputs.last_hidden_state.to(self.transformer.wte.weight.device)
if self.unembed is not None:
if self.transformer.unembed is not None:
logits = self.transformer.unembed(out)
else:
# move outputs to same device as weights for token embedding
Expand Down

0 comments on commit c5391c3

Please sign in to comment.