From 82295a813ca002ffd035f1245f9eabe83807e4e8 Mon Sep 17 00:00:00 2001 From: Matthew Zeiler Date: Fri, 17 Jan 2025 13:18:53 -0500 Subject: [PATCH] better backwards compatibility (#489) --- CHANGELOG.md | 6 ++++++ clarifai/__init__.py | 2 +- clarifai/runners/models/model_upload.py | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f1941b1..d954bd8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [[11.0.5]](https://github.com/Clarifai/clarifai-python/releases/tag/11.0.5) - [PyPI](https://pypi.org/project/clarifai/11.0.5/) - 2025-01-17 + +### Changed + + - Added tests for downloads and various improvements [(#489)] (https://github.com/Clarifai/clarifai-python/pull/489) + ## [[11.0.4]](https://github.com/Clarifai/clarifai-python/releases/tag/11.0.4) - [PyPI](https://pypi.org/project/clarifai/11.0.4/) - 2025-01-17 ### Changed diff --git a/clarifai/__init__.py b/clarifai/__init__.py index d0051a15..e91fe846 100644 --- a/clarifai/__init__.py +++ b/clarifai/__init__.py @@ -1 +1 @@ -__version__ = "11.0.4" +__version__ = "11.0.5" diff --git a/clarifai/runners/models/model_upload.py b/clarifai/runners/models/model_upload.py index adfbb729..dd7a06b9 100644 --- a/clarifai/runners/models/model_upload.py +++ b/clarifai/runners/models/model_upload.py @@ -39,6 +39,8 @@ def __init__(self, folder: str, validate_api_ids: bool = True, download_validati just downloading a checkpoint. """ self._client = None + if not validate_api_ids: # for backwards compatibility + download_validation_only = True self.download_validation_only = download_validation_only self.folder = self._validate_folder(folder) self.config = self._load_config(os.path.join(self.folder, 'config.yaml'))