Skip to content

Commit 585fb08

Browse files
committed
Debug output
Signed-off-by: Ed Snible <[email protected]>
1 parent 79a43fd commit 585fb08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/open_r1/rewards.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,14 @@ def get_python_package_reward(
272272
module_name: str = "missing",
273273
python_function: str = "missing",
274274
):
275+
print(f"@@@ ecs REACHED get_python_package_reward, package_name={package_name}, module_name={module_name}, python_function={python_function}")
275276
if package_name:
276277
pipmain(['install', package_name]) # TODO pip_args
277278

279+
print("@@@ ecs about to import")
278280
mod = importlib.import_module(module_name)
281+
282+
print("@@@ ecs about to lookup and return function")
279283
return getattr(mod, python_function)
280284

281285
def get_repetition_penalty_reward(ngram_size: int, max_penalty: float):

0 commit comments

Comments
 (0)