Skip to content

Commit db33975

Browse files
authored
Update loss.py
1 parent 9294c3b commit db33975

File tree

1 file changed

+2
-0
lines changed
  • slime/backends/megatron_utils

1 file changed

+2
-0
lines changed

slime/backends/megatron_utils/loss.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ def get_log_probs_and_entropy(
7272
total_lengths: list[int],
7373
response_lengths: list[int],
7474
with_entropy: bool = False,
75+
non_loss_data: bool = True,
7576
) -> dict[str, list[torch.Tensor]]:
77+
assert non_loss_data
7678
log_probs_list = []
7779
entropy_list = []
7880
for logits_chunk, tokens_chunk in get_responses(

0 commit comments

Comments
 (0)