Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
warning, not warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Friedowitz committed Apr 9, 2024
1 parent 2b65088 commit 2fb8a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lm_buddy/jobs/evaluation/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_response_with_retries(
feedback, score = parse_response(config, response)
break
except (OpenAIError, BadResponseError) as e:
logger.warn(
logger.warning(
f"{e.message}: "
f"Retrying ({current_retry_attempt}/{config.evaluation.max_retries})"
)
Expand Down Expand Up @@ -144,7 +144,7 @@ def data_generator():
# skip those examples which are too long
tokenized_prompt = tokenizer(prompt, truncation=False)
if len(tokenized_prompt["input_ids"]) > 3072:
logger.warn(f"Skipping row due to prompt exceeding token limit: {prompt=}")
logger.warning(f"Skipping row due to prompt exceeding token limit: {prompt=}")
continue

# prepare output
Expand Down

0 comments on commit 2fb8a05

Please sign in to comment.