diff --git a/xtuner/engine/hooks/evaluate_chat_hook.py b/xtuner/engine/hooks/evaluate_chat_hook.py index d3d4f9a42..05d508e4c 100644 --- a/xtuner/engine/hooks/evaluate_chat_hook.py +++ b/xtuner/engine/hooks/evaluate_chat_hook.py @@ -4,9 +4,9 @@ import torch from mmengine.dist import master_only -from mmengine.utils import mkdir_or_exist from mmengine.hooks import Hook from mmengine.model import is_model_wrapper +from mmengine.utils import mkdir_or_exist from mmengine.utils.misc import get_object_from_string from transformers import GenerationConfig, StoppingCriteriaList