MCPcopy Index your code
hub / github.com/huggingface/diffusers / _pack_dict_with_prefix

Function _pack_dict_with_prefix

src/diffusers/loaders/lora_base.py:316–318  ·  view source on GitHub ↗
(state_dict, prefix)

Source from the content-addressed store, hash-verified

314
315
316def _pack_dict_with_prefix(state_dict, prefix):
317 sd_with_prefix = {f"{prefix}.{key}": value for key, value in state_dict.items()}
318 return sd_with_prefix
319
320
321def _load_lora_into_text_encoder(

Callers 2

pack_weightsMethod · 0.85
_save_lora_weightsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…