[Feat] Enable Layerwise CPU offloading for SD3.5, Ovis-Image, Nextstep_1, LongCat-Image (#2339)
Signed-off-by: Yuanheng Zhao <jonathan.zhaoyh@gmail.com> Signed-off-by: yuanheng <jonathan.zhaoyh@gmail.com>
This commit is contained in:
1 parent
b246617fe5
commit
8a55d3d01f
8 files changed
+20
-11
No files matched your search
@@ -114,6 +114,8 @@ class NextStepConfig(LlamaConfig):
|
||||
|
||||
|
||||
class NextStepModel(nn.Module):
|
||||
_layerwise_offload_blocks_attrs = ["layers"]
|
||||
|
||||
def __init__(self, config: NextStepConfig):
|
||||
super().__init__()
|
||||
self.config = config
|
||||
|
||||
Reference in new issue
Block a user