From daca5510ab76cc8ecf0283fd31fc220697a75040 Mon Sep 17 00:00:00 2001 From: Hari Date: Wed, 21 Aug 2024 09:57:40 +0530 Subject: [PATCH] fix: logger is unbound error (#308) * fix: logger is unbound error Signed-off-by: Harikrishnan Balagopal * fixup! fix: logger is unbound error Signed-off-by: Harikrishnan Balagopal --------- Signed-off-by: Harikrishnan Balagopal Co-authored-by: Sukriti Sharma --- tuning/sft_trainer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tuning/sft_trainer.py b/tuning/sft_trainer.py index b9ea00270..b5e6cb62e 100644 --- a/tuning/sft_trainer.py +++ b/tuning/sft_trainer.py @@ -510,6 +510,7 @@ def parse_arguments(parser, json_config=None): def main(**kwargs): # pylint: disable=unused-argument parser = get_parser() + logger = logging.getLogger() job_config = get_json_config() # accept arguments via command-line or JSON try: