Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit a9d0585

Browse files
authored
image classification - fix bug in zoo stub load (#959)
1 parent d83f526 commit a9d0585

File tree

1 file changed

+1
-1
lines changed
  • src/sparseml/pytorch/image_classification/utils

1 file changed

+1
-1
lines changed

src/sparseml/pytorch/image_classification/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def create_model(
271271
"""
272272
with torch_distributed_zero_first(local_rank):
273273
# only download once locally
274-
if checkpoint_path and checkpoint_path.lower() == "zoo":
274+
if checkpoint_path and checkpoint_path.lower().startswith("zoo"):
275275
checkpoint_path = _download_model_from_zoo_using_recipe(
276276
recipe_stub=recipe_path,
277277
)

0 commit comments

Comments
 (0)