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

Description
Describe the bug
Checkpoint path returned by zoo_model.download_framework_files(extensions=[".pth"]) is of List[str] type.
|
args.initial_checkpoint = zoo_model.download_framework_files(extensions=[".pth"]) |
create_model(...) from the
timm repo expects a
str type (only one path)
Expected behavior
To have: args.initial_checkpoint = "model.pth" instead of args.initial_checkpoint = ["model.pth"].
To Reproduce
Exact steps to reproduce the behavior: use a local recipe and a SparseZoo checkpoint.
python integrations/timm/train.py \
/PATH/TO/DATASET/imagenet/ \
--sparseml-recipe /PATH/TO/RECIPE/recipe.yaml \
--initial-checkpoint zoo:model/stub/path \
--dataset imagenet \
--batch-size 64 \
--remode pixel --reprob 0.6 --smoothing 0.1 \
--output models/optimized \
--model resnet50 \
--workers 8 \
Errors
stat: path should be string, bytes, os.PathLike or integer, not list