From ffa4e9b41406e2ea6c033e063e26455949e0aab3 Mon Sep 17 00:00:00 2001 From: BeachWang <1400012807@pku.edu.cn> Date: Mon, 6 Jan 2025 14:53:26 +0800 Subject: [PATCH] fix force download bug (#529) --- data_juicer/utils/model_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_juicer/utils/model_utils.py b/data_juicer/utils/model_utils.py index 6e32434fa..ac967f3f2 100644 --- a/data_juicer/utils/model_utils.py +++ b/data_juicer/utils/model_utils.py @@ -79,7 +79,7 @@ def check_model(model_name, force=False): download again forcefully. """ # check for local model - if os.path.exists(model_name): + if not force and os.path.exists(model_name): return model_name if not os.path.exists(DJMC):