Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/sparsezoo/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ def download(
else:
downloads = []
for key, file in self._files_dictionary.items():
if key == "deployment":
# skip the download of the deployment directory
# since identical files will be downloaded
# in the deployment_tar
_LOGGER.debug(f"Intentionally skipping downloading the file {key}")
continue
if file is not None:
# save all the files to a temporary directory
downloads.append(self._download(file, download_path))
Expand Down
4 changes: 4 additions & 0 deletions tests/sparsezoo/model/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ def setup(self, stub, clone_sample_outputs, expected_files):
temp_dir = tempfile.TemporaryDirectory(dir="/tmp")
model = Model(stub, temp_dir.name)
model.download()
# since downloading the `deployment` file is
# disabled by default, we need to do it
# explicitly
model.deployment.download()
self._add_mock_files(temp_dir.name, clone_sample_outputs=clone_sample_outputs)
model = Model(temp_dir.name)

Expand Down