mirror of
https://github.com/allenai/olmocr.git
synced 2025-10-13 17:22:13 +00:00
Logs
This commit is contained in:
parent
6fe630516a
commit
de719edf49
@ -170,9 +170,10 @@ class OlmOCRDataset(Dataset):
|
|||||||
# Return None if processing fails
|
# Return None if processing fails
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def simple_length_reward(completions_ids, **kwargs):
|
def simple_length_reward(completion_ids, **kwargs):
|
||||||
"""Reward function that assigns higher scores to longer completions (in terms of token count)."""
|
"""Reward function that assigns higher scores to longer completions (in terms of token count)."""
|
||||||
return [float(len(ids)) for ids in completions_ids]
|
logger.info(f"Reward function called {kwargs}")
|
||||||
|
return [float(len(ids)) for ids in completion_ids]
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user