[Diffusion] Support LoRA in step-wise execution (#3639)
Signed-off-by: samithuang <285365963@qq.com>
This commit is contained in:
1 parent
f74cba84ac
commit
083b5e363f
8 files changed
+338
-60
No files matched your search
@@ -65,6 +65,11 @@ class SamplingParamsKey:
|
||||
true_cfg_scale: float | None = None
|
||||
cfg_normalize: bool = False
|
||||
|
||||
# LoRA identity. Requests with different adapters or scales must run in
|
||||
# separate batches so the worker can activate exactly one adapter per step.
|
||||
lora_int_id: int | None = None
|
||||
lora_scale: float = 1.0
|
||||
|
||||
|
||||
@dataclass
|
||||
class DiffusionRequestState:
|
||||
|
||||
Reference in new issue
Block a user