[Refactor][Diffusion] Remove model-specific names from LoRA and ModelOpt loader defaults (#5907)
Signed-off-by: Alicia <115451386+congw729@users.noreply.github.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
bc0c9f4b45
commit
28291df179
6 files changed
+43
-12
No files matched your search
@@ -729,8 +729,10 @@ def test_lora_manager_discovers_bagel_component(monkeypatch):
|
||||
lambda root, name, sub: fake_replace_submodule(root, name, sub, replace_calls),
|
||||
)
|
||||
|
||||
# Pipeline with a 'bagel' component (no 'transformer')
|
||||
# Pipeline with a 'bagel' component (no 'transformer') declared via
|
||||
# _lora_components, matching how BagelPipeline opts in.
|
||||
pipeline = torch.nn.Module()
|
||||
pipeline._lora_components = ["bagel"]
|
||||
pipeline.bagel = torch.nn.Module()
|
||||
pipeline.bagel.language_model = torch.nn.Module()
|
||||
pipeline.bagel.language_model.qkv_proj = _FakeLinearBase()
|
||||
|
||||
Reference in new issue
Block a user