skip move to device
This commit is contained in:
committed by
Sung Ching Liu
parent
d663652216
commit
a74efcecbe
@@ -765,6 +765,7 @@ class ModelLoader:
|
|||||||
if self.cfg.tp_size is not None:
|
if self.cfg.tp_size is not None:
|
||||||
self.model_kwargs["tp_plan"] = "auto"
|
self.model_kwargs["tp_plan"] = "auto"
|
||||||
del self.model_kwargs["device_map"]
|
del self.model_kwargs["device_map"]
|
||||||
|
skip_move_to_device = True
|
||||||
|
|
||||||
if ( # pylint: disable=condition-evals-to-constant)
|
if ( # pylint: disable=condition-evals-to-constant)
|
||||||
(self.cfg.fsdp and self.cfg.fsdp_config.fsdp_cpu_ram_efficient_loading)
|
(self.cfg.fsdp and self.cfg.fsdp_config.fsdp_cpu_ram_efficient_loading)
|
||||||
|
|||||||
Reference in New Issue
Block a user