From 47276c3424df73bd13fe7bcbe1c686b94319507c Mon Sep 17 00:00:00 2001 From: ebolam Date: Sat, 27 May 2023 08:49:21 -0400 Subject: [PATCH] Bug Fix --- modeling/inference_models/hf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modeling/inference_models/hf.py b/modeling/inference_models/hf.py index 5987a1ce..4226d1b1 100644 --- a/modeling/inference_models/hf.py +++ b/modeling/inference_models/hf.py @@ -339,7 +339,8 @@ class HFInferenceModel(InferenceModel): Returns a string of the model's path locally, or None if it is not downloaded. If ignore_existance is true, it will always return a path. """ - if os.path.exists(self.path): + if self.path is not None: + if os.path.exists(self.path): return self.path if self.model_name in ["NeoCustom", "GPT2Custom", "TPUMeshTransformerGPTJ", "TPUMeshTransformerGPTNeoX"]: