[Feature] Distributed layerwise offload with DP multi-concurrency + mmap weight… (#5397)
Signed-off-by: evanchueng <evanchueng@outlook.com> Signed-off-by: david6666666 <530634352@qq.com> Co-authored-by: david6666666 <530634352@qq.com>
This commit is contained in:
1 parent
b3f4fbf9e2
commit
744c65b730
23 files changed
+3586
-78
No files matched your search
@@ -672,6 +672,12 @@ class OmniDiffusionConfig:
|
||||
enable_cpu_offload: bool = False
|
||||
# Layer-wise offloading (block-level offloading) parameters
|
||||
enable_layerwise_offload: bool = False
|
||||
# Distributed layer-wise offloading with H2D + AllGather overlap (RFC-1)
|
||||
enable_distributed_layerwise_offload: bool = False
|
||||
# If True: shard weights 1/dp_size + AllGather (saves CPU memory, requires
|
||||
# concurrent requests in DP mode). If False: each rank loads full weights
|
||||
# via H2D only (N× CPU memory, but no AllGather synchronization needed).
|
||||
dlo_use_allgather: bool = True
|
||||
|
||||
pin_cpu_memory: bool = True # Use pinned memory for faster transfers when offloading
|
||||
|
||||
|
||||
Reference in new issue
Block a user