bug(initializers): Missing glob wildcard in default .pt and .pth ignore patterns
What happened?
The default ignore_patterns in HuggingFaceModelInitializer and S3ModelInitializer contain .pt and .pth without the * wildcard prefix:
ignore_patterns = ["*.msgpack", "*.h5", "*.bin", ".pt", ".pth"]
PyTorch checkpoint files like model.pt or weights.pth are never actually ignored during model initialization.
What did you expect to happen?
PyTorch checkpoint files (*.pt, *.pth) should be ignored when downloading models, as intended. The correct patterns should be:
ignore_patterns = ["*.msgpack", "*.h5", "*.bin", "*.pt", "*.pth"]
Environment
Kubernetes version: N/A (code-level bug, no cluster needed)
Kubeflow Trainer version: main branch (commit inspected directly on GitHub)
Kubeflow Python SDK version: main branch
Impacted by this bug?
Give it a 👍 We prioritize the issues with most 👍
🎉 Welcome to the Kubeflow Trainer! 🎉
Thanks for opening your first issue! We're happy to have you as part of our community 🚀
Here's what happens next:
- Our team will review your issue soon! cc @kubeflow/kubeflow-trainer-team
- If you'd like to contribute to this issue, check out our Contributing Guide for repo-specific guidelines and the Kubeflow Contributor Guide for general community standards.
Join the community:
- Slack: Join our #kubeflow-trainer Slack channel.
- Meetings: Attend the Kubeflow AutoML and Training Working Group bi-weekly meetings.
Feel free to ask questions in the comments if you need any help or clarification! Thanks again for contributing to Kubeflow! 🙏
/assign