↓ 2 callersFunctionget_eos_mask e.g. end of sentence token=1 response_id: [0, 0, 2, 42, 3, 5, 1, 0, 0] eos_mask: [1, 1, 1, 1, 1, 1, 1, 0, 0]
verl-GDPO/verl/utils/torch_functional.py:139
↓ 2 callersMethodon_train_end(self, args, state, control, model=None, **kwargs)
trl-GDPO/trl-0.18.0-gdpo/trl/trainer/callbacks.py:568