Skip to content

Commit c3ec52f

Browse files
committed
remove debug message
1 parent aa85dfc commit c3ec52f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ajet/backbone/verl/dp_actor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def compute_log_prob(self, data: DataProto, calculate_entropy: bool = False) ->
9999
log_probs_lst = []
100100
entropy_lst = []
101101
sum_pi_squared_lst = []
102-
print(f"len(micro_batches) = {len(micro_batches)}")
102+
# print(f"len(micro_batches) = {len(micro_batches)}")
103103
for micro_batch in micro_batches:
104104
micro_batch = micro_batch.to(get_device_id())
105105
model_inputs = {**micro_batch.batch, **micro_batch.non_tensor_batch, "pad_token_id": pad_token_id}
@@ -211,7 +211,7 @@ def update_policy(self, data: DataProto):
211211
advantages = model_inputs["advantages"]
212212
# [AJET] Debug logging for tensor shapes
213213
input_ids = model_inputs["input_ids"]
214-
print(f'-> Current tensor shape, input_ids {input_ids.shape}, response {response_mask.shape}')
214+
print(f'[Update Policy] -> Micro batch shape, input_ids {input_ids.shape}, response {response_mask.shape}')
215215

216216
entropy_coeff = self.config.entropy_coeff
217217
loss_agg_mode = self.config.loss_agg_mode

0 commit comments

Comments
 (0)