training-operator icon indicating copy to clipboard operation
training-operator copied to clipboard

bug(initializers): Missing glob wildcard in default .pt and .pth ignore patterns

Open ghazariann opened this issue 8 months ago • 2 comments

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 👍

ghazariann avatar Mar 11 '26 07:03 ghazariann

🎉 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:

Feel free to ask questions in the comments if you need any help or clarification! Thanks again for contributing to Kubeflow! 🙏

github-actions[bot] avatar Mar 11 '26 07:03 github-actions[bot]

/assign

ghazariann avatar Mar 11 '26 07:03 ghazariann