MCPcopy
hub / github.com/lllyasviel/FramePack / install_model

Method install_model

diffusers_helper/memory.py:48–51  ·  view source on GitHub ↗
(model: torch.nn.Module, **kwargs)

Source from the content-addressed store, hash-verified

46
47 @staticmethod
48 def install_model(model: torch.nn.Module, **kwargs):
49 for m in model.modules():
50 DynamicSwapInstaller._install_module(m, **kwargs)
51 return
52
53 @staticmethod
54 def uninstall_model(model: torch.nn.Module):

Callers 2

demo_gradio.pyFile · 0.80
demo_gradio_f1.pyFile · 0.80

Calls 1

_install_moduleMethod · 0.80

Tested by

no test coverage detected