diff --git a/python/hsml/engine/model_engine.py b/python/hsml/engine/model_engine.py index d1f21365f..1cf0ba99f 100644 --- a/python/hsml/engine/model_engine.py +++ b/python/hsml/engine/model_engine.py @@ -455,6 +455,11 @@ def update_download_progress(n_dirs, n_files, done=False): projects_index = from_hdfs_model_path.find("/Projects", 0) from_hdfs_model_path = from_hdfs_model_path[projects_index:] + if not self._dataset_api.path_exists(from_hdfs_model_path): + # if Files directory doesn't exist, download files from the model version + # directory for backwards compatibility with the old model file structure + from_hdfs_model_path = model_instance.version_path + self._download_model_from_hopsfs( from_hdfs_model_path=from_hdfs_model_path, to_local_path=local_path,