Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
Currently, if we don't detect any variants in a hf repo, we just download everything. This PR is an attempt to start avoiding downloading .bin files when we detect that a safetensors file is available in the same directory.
QA Instructions
Install facebook/sam-vit-large and ensure the .bin file is not downloaded and the model still functions properly.
Attempt to install mohsen2/pytorch_model.bin or a similar hf repo with only .bin files and ensure the .bin is downloaded properly
You can close the invoke process while its downloading to avoid actually putting it on your computer
Merge Plan
Can be merged when approved
Checklist
[ ] The PR has a short but descriptive title, suitable for a changelog
[ ] Tests added / updated (if applicable)
[ ] Documentation added / updated (if applicable)
[ ] Updated What's New copy (if doing a release after this PR)
…ilable
Summary
Currently, if we don't detect any variants in a hf repo, we just download everything. This PR is an attempt to start avoiding downloading .bin files when we detect that a safetensors file is available in the same directory.
QA Instructions
Install
facebook/sam-vit-large
and ensure the .bin file is not downloaded and the model still functions properly. Attempt to installmohsen2/pytorch_model.bin
or a similar hf repo with only .bin files and ensure the .bin is downloaded properlyMerge Plan
Can be merged when approved
Checklist
What's New
copy (if doing a release after this PR)