huggingface / huggingface/diffusers

Unload lora specific lora weight

Open
#9,325 22 comments 0 reactions 2 assignees Claimed by @sayakpaul View on GitHub
lora stale
Dominant language
Python
Stars
34.5k
Forks
7.3k
Avg merge
3d 3h
Merged PRs (30d)
91

Description

I've had trouble loading a few loras, and then unloading only a select few to free up more memory, but we only support unload_lora_weights() currently, which unloads all the loras - so I have to reload the loras I want again which is time consuming.

I would like a solution where we could specify the adapter_name associated with the lora_weight and unload that specific lora weight alone.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.