From c69b7eb2b5798998c16c197a6bd0903b4cc99e92 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Fri, 5 Jul 2024 09:15:36 -0400 Subject: [PATCH] full weights fsdp training seems broken with fsdp_cpu_ram_efficient_loading, disabling for now (#1726) --- src/axolotl/utils/models.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/axolotl/utils/models.py b/src/axolotl/utils/models.py index a8df4bbad..4e0d23c4f 100644 --- a/src/axolotl/utils/models.py +++ b/src/axolotl/utils/models.py @@ -569,9 +569,11 @@ def load_model( try: skip_move_to_device = False - if ( - cfg.fsdp and cfg.fsdp_config.fsdp_cpu_ram_efficient_loading - ) and not qlora_fsdp: + if ( # pylint: disable=condition-evals-to-constant) + (cfg.fsdp and cfg.fsdp_config.fsdp_cpu_ram_efficient_loading) + and not qlora_fsdp + and False + ): model = load_sharded_model( base_model, model_config,