Skip to content

Commit

Permalink
local train bug fix (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene-hu authored Sep 7, 2022
1 parent a778fb8 commit 0afe907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bittensor/_neuron/text/core_server/nucleus_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def forward(self, inputs, tokenizer=None):
Decoded predictions of the next token in the sentence.
"""
message, model_output, decoded_targets = self.local_forward(inputs, tokenizer)[1]
message, model_output, decoded_targets = self.local_forward(inputs, tokenizer)

shift_logits = decoded_targets[..., :-1, :].contiguous()
shift_labels = inputs[..., 1:].contiguous()
Expand Down

0 comments on commit 0afe907

Please sign in to comment.