Skip to content

Commit

Permalink
[Pretrain] Fix eval during pretrain (#7806)
Browse files Browse the repository at this point in the history
* fix eval during pretrain
  • Loading branch information
DesmonDay authored Jan 9, 2024
1 parent fc6ab70 commit dab175b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm/run_pretrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ def _collate_data(data, stack_fn=Stack()):
tokens = tokens_[:, :-1]

return {
"input_ids": tokens,
"labels": labels,
"input_ids": paddle.to_tensor(tokens),
"labels": paddle.to_tensor(labels),
}

if need_data:
Expand Down

0 comments on commit dab175b

Please sign in to comment.