Skip to content

Commit 316f392

Browse files
committed
add path reminder
1 parent 3b1df98 commit 316f392

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/data_preprocess/if_prompts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def _load_dataset(data_path):
1717
with open(data_path) as f:
1818
for line in tqdm(f.readlines()):
1919
item = json.loads(line.strip())
20-
# functions = ["import sys\nsys.path.append('/mnt/ph/ScaleIF/verl/verl/utils/reward_score/local_server')\n"+function.replace("local_server", "llm_call") for function in item["functions"]]
21-
functions = ["import sys\nsys.path.append('/mnt/ph/ScaleIF/verl/verl/utils/reward_score/local_server')\n"+function for function in item["functions"]]
20+
functions = ["import sys\nsys.path.append(<path here>)\n"+function for function in item["functions"]]
21+
assert 0, "Please add the path `verl/utils/reward_score/local_server` into the Python PATH."
2222

2323
data.append({
2424
"id": item["id"],

0 commit comments

Comments
 (0)