Skip to content

Commit 3a28c36

Browse files
committed
format
1 parent 6682b97 commit 3a28c36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

verl/workers/rollout/schemas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ def initialize_request(cls, values):
181181
# Only log the warning to avoid truncating in the middle of generation prompt. Consider raising an
182182
# error for this case in the future.
183183
# Ensure batch_data_id exists with default value if not provided
184-
if 'batch_data_id' not in values:
185-
values['batch_data_id'] = cls.model_fields['batch_data_id'].default
184+
if "batch_data_id" not in values:
185+
values["batch_data_id"] = cls.model_fields["batch_data_id"].default
186186
logger.warning(
187187
f"Prompt {values['batch_data_id']} has length {values['input_ids'].shape[-1]} "
188188
f"which is greater than max_prompt_len {max_prompt_len} after applied chat template with tools."

0 commit comments

Comments
 (0)