[feature] Add HSDP pre-sharded option (#7948)

Signed-off-by: Maciej Bala <mbala@nvidia.com>
Co-authored-by: 汪志鹏 <wangzhipeng628@gmail.com>
This commit is contained in:
MaciejBalaNVand汪志鹏 authored and GitHub committed 2026-10-02 09:35:09 +00:00
1 parent b742f86136
commit 97d6c693a6
17 files changed
+1370 -87

No files matched your search

+9
View File
@@ -560,6 +560,15 @@ class OmniServeCommand(CLISubcommand):
"custom_pipeline, dummy, or diffusers for the HF diffusers adapter."
),
)
omni_config_group.add_argument(
"--hsdp-weight-load-strategy",
choices=["full", "pre_sharded"],
default=None,
help=(
"HSDP checkpoint loading strategy: 'full' loads then shards; "
"'pre_sharded' shards meta parameters first and reads rank-local HF safetensors slices."
),
)
omni_config_group.add_argument(
"--lora-path",
type=str,