Load lora from hub with filename?

Many of the loras on the hub don’t publish as pytorch_lora_weights.safetensors or pytorch_lora_weights.bin.

Am I just missing something or is it not possible to load a lora and include the filename? As far as I can tell from load_lora_weights one cannot.

If it’s not possible It seems like a high value addition (something like (base_name, file_name="somename.safetensors"). Or maybe elide the file extension and respect use_safetensors.

If it is possible can someone share an example please?

cc @patrickvonplaten i think this is important

1 Like