We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5c9c45 commit bef9b72Copy full SHA for bef9b72
llm/predict/predictor.py
@@ -1469,6 +1469,7 @@ def predict_dy_insert(
1469
# )
1470
1471
if self.config.output_via_mq:
1472
+ os.environ["INFERENCE_TRUNCATED_RETURN_EOS"] = "1"
1473
result_queue = mp.Queue()
1474
task_queue = mp.Queue()
1475
done_event = mp.Event()
@@ -1488,6 +1489,8 @@ def predict_dy_insert(
1488
1489
if flag_current_rank_run:
1490
read_res_process.start()
1491
done_event.wait()
1492
+ else:
1493
+ os.environ["INFERENCE_TRUNCATED_RETURN_EOS"] = "0"
1494
1495
done_task_id_set = set()
1496
0 commit comments