From 11f96a09d7639dd2a2b4b9f094009ad387c8219e Mon Sep 17 00:00:00 2001 From: Soren Dreano Date: Fri, 23 May 2025 17:59:19 +0200 Subject: [PATCH] remove requirements for MODEL_NAME in local_model_args.json We want to use the same local_model_args.json for multiple models which have different names. It would be very convenient to only have a single local_args file and not have to create it every time A warning should be enough for users --- src/engine_args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine_args.py b/src/engine_args.py index ce352c4..6ed1557 100644 --- a/src/engine_args.py +++ b/src/engine_args.py @@ -122,7 +122,7 @@ def get_local_args(): local_args = json.load(f) if local_args.get("MODEL_NAME") is None: - raise ValueError("Model name not found in /local_model_args.json. There was a problem when baking the model in.") + logging.warning("Model name not found in /local_model_args.json. There maybe was a problem when baking the model in.") logging.info(f"Using baked in model with args: {local_args}") os.environ["TRANSFORMERS_OFFLINE"] = "1"