InvokeAI/invokeai/backend/model_manager/util
psychedelicious 3534366146 fix(mm): fix extraneous downloaded files in diffusers
Sometimes, diffusers model components (tokenizer, unet, etc.) have multiple weights files in the same directory.

In this situation, we assume the files are different versions of the same weights. For example, we may have multiple
formats (`.bin`, `.safetensors`) with different precisions. When downloading model files, we want to select only
the best of these files for the requested format and precision/variant.

The previous logic assumed that each model weights file would have the same base filename, but this assumption was
not always true. The logic is revised score each file and choose the best scoring file, resulting in only a single
file being downloaded for each submodel/subdirectory.
2024-03-05 23:50:19 +11:00
..
libc_util.py final tidying before marking PR as ready for review 2024-03-01 10:42:33 +11:00
model_util.py final tidying before marking PR as ready for review 2024-03-01 10:42:33 +11:00
select_hf_files.py fix(mm): fix extraneous downloaded files in diffusers 2024-03-05 23:50:19 +11:00