Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All default pretrained weights pushed to HF hub #970

Merged
merged 3 commits into from
Oct 24, 2024
Merged

Conversation

rwightman
Copy link
Collaborator

@rwightman rwightman commented Oct 23, 2024

  • all weights not already on the hub uploaded to timm org for simplicity & safety (metaclip models were incompatible with weights_only=True).
  • OpenAI models no longer use special path that loads from torchscript archive, use same path as other models
  • Handling of QuickGELU consistent btw openai and non, made a bit more safe, warn on mismatch
  • safetensors is default weight load if available

…to timm org for simplicity.

* OpenAI models no longer use special path that loads from torchscript archive, use same path as other models
* Handling of QuickGELU consistent btw openai and non, made a bit more safe, warn on mismatch
* safetensors is default weight load if available
* make use of cache_dir for HF tokenizer wrapper explicit
* add missing use of cache_dir for an _get_hf_config call
* add cache_dir as argument to train/val script
@bryant1410
Copy link
Contributor

IIUC, this fixes #771.

Copy link
Contributor

@bryant1410 bryant1410 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked at the core changes and it LGTM, though haven't looked at all the details.

This is a great and elegant solution for both the QuickGELU error-prone issue, and the issue with MetaCLIP!!

@aivarasbaranauskas
Copy link

Fixes #966 too.

@rwightman rwightman merged commit d11e54a into main Oct 24, 2024
4 checks passed
@rwightman rwightman deleted the pretrain_cleanup branch October 24, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants