set tp_plan

This commit is contained in:
Sunny Liu
2025-02-18 17:04:13 -05:00
committed by Sung Ching Liu
parent dbdf97e828
commit dbd43aa18f

View File

@@ -762,6 +762,9 @@ class ModelLoader:
return hf_ds_cfg
skip_move_to_device = False
if self.cfg.tp_size is not None:
self.model_kwargs["tp_plan"] = "auto"
if ( # pylint: disable=condition-evals-to-constant)
(self.cfg.fsdp and self.cfg.fsdp_config.fsdp_cpu_ram_efficient_loading)
and not qlora_fsdp