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 and JunnYu committed Jan 11, 2024
1 parent f72fc41 commit f49dfc2
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 @@ -245,8 +245,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 f49dfc2

Please sign in to comment.