[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:
1 parent
b742f86136
commit
97d6c693a6
17 files changed
+1370
-87
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user