Skip to content

Commit c9344c3

Browse files
committed
remove comment
1 parent 29c6d06 commit c9344c3

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

eval_protocol/pytest/default_single_turn_rollout_process.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818

1919
logger = logging.getLogger(__name__)
2020

21-
litellm._turn_on_debug()
22-
23-
# Configure logger with timestamp format if not already configured
24-
if not logger.handlers:
25-
handler = logging.StreamHandler()
26-
handler.setFormatter(logging.Formatter('%(asctime)s.%(msecs)03d %(message)s', datefmt='%H:%M:%S'))
27-
logger.addHandler(handler)
28-
logger.setLevel(logging.INFO)
29-
3021

3122
class SingleTurnRolloutProcessor(RolloutProcessor):
3223
"""Single turn rollout processor for direct LLM calls."""
@@ -48,7 +39,7 @@ def __call__(self, rows: List[EvaluationRow], config: RolloutProcessorConfig) ->
4839
async def process_row(row: EvaluationRow) -> EvaluationRow:
4940
"""Process a single row asynchronously."""
5041
start_time = time.perf_counter()
51-
42+
5243
if len(row.messages) == 0:
5344
raise ValueError("Messages is empty. Please provide a non-empty dataset")
5445

@@ -106,12 +97,7 @@ async def process_row(row: EvaluationRow) -> EvaluationRow:
10697
chunks.append(chunk)
10798
response = litellm.stream_chunk_builder(chunks, messages_payload)
10899
else:
109-
logger.warning(f"******** rolling out {row.execution_metadata.run_id} ")
110-
logger.warning(json.dumps(request_params))
111-
start_time = time.perf_counter()
112100
response = await acompletion(**request_params)
113-
rollout_duration = time.perf_counter() - start_time
114-
logger.warning(f"******** rollout duration for {row.execution_metadata.run_id} {rollout_duration} seconds")
115101

116102
assert response is not None, "Response is None"
117103
assert isinstance(response, ModelResponse), "Response should be ModelResponse"

eval_protocol/pytest/priority_scheduler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ async def _run_eval(rows_to_eval: Union[EvaluationRow, List[EvaluationRow]]):
322322
if result_row:
323323
last_msg = result_row.last_assistant_message()
324324
if last_msg and last_msg.content:
325-
print(f"******** history: {str(last_msg.content)}")
326325
sample_state.history.append(str(last_msg.content))
327326
else:
328327
sample_state.history.append("")

0 commit comments

Comments
 (0)