Skip to content

Commit 9294c3b

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

File tree

1 file changed

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

1 file changed

+0
-3
lines changed

slime/backends/megatron_utils/loss.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ 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,
7675
) -> dict[str, list[torch.Tensor]]:
7776
log_probs_list = []
7877
entropy_list = []
@@ -105,8 +104,6 @@ def get_values(
105104
unconcat_tokens: list[torch.Tensor],
106105
total_lengths: list[int],
107106
response_lengths: list[int],
108-
with_entropy: bool = False,
109-
non_loss_data: bool = True,
110107
) -> dict[str, list[torch.Tensor]]:
111108
value_list = []
112109
for logits_chunk, _ in get_responses(

0 commit comments

Comments
 (0)