Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
pufanyi committed Mar 16, 2024
1 parent 966ef9c commit 077737b
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lmms_eval/tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ def include_task_folder(task_dir: str, register_task: bool = True) -> None:
eval_logger.debug(f"{yaml_path}: {e}. Config will not be added to registry.")
except Exception as error:
import traceback

eval_logger.debug(f"Failed to load config in {yaml_path}. Config will not be added to registry\n" f"Error: {error}\n" f"Traceback: {traceback.format_exc()}")
return 0

2 changes: 1 addition & 1 deletion lmms_eval/tasks/mmbench/en_utils.py
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ def mmbench_doc_to_text(doc, model_specific_prompt_kwargs=None):

if model_specific_prompt_kwargs:
query_prompt = f"{query_prompt}\n{model_specific_prompt_kwargs['post_prompt']}"

return query_prompt


0 comments on commit 077737b

Please sign in to comment.