Skip to content

Commit

Permalink
add log msg for image_string value
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyschoelkopf committed Sep 13, 2024
1 parent c0b585d commit b3e87ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lm_eval/models/hf_vlms.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def __init__(
f"A non-default image_token_id with image_token_id={self.image_token_id} and string value '{self.image_token}' was specified manually. Note that using an improper image_token placeholder may lead to ignored image input or errors!"
)
else:
eval_logger.info(
f"A non-default image_token string with string value image_string='{image_string}' was specified manually. Note that using an improper image_token placeholder may lead to ignored image input or errors!"
)
self.image_token = image_string

def _create_tokenizer(
Expand Down

0 comments on commit b3e87ae

Please sign in to comment.