diff --git a/src/axolotl/cli/__init__.py b/src/axolotl/cli/__init__.py index 7ce4f19488..8ca4f7fe55 100644 --- a/src/axolotl/cli/__init__.py +++ b/src/axolotl/cli/__init__.py @@ -72,7 +72,7 @@ def do_merge_lora( LOG.info("running merge of LoRA with base model") model = model.merge_and_unload() - model.to(dtype=torch.float16) + model.to(dtype=cfg.torch_dtype) if cfg.local_rank == 0: LOG.info(f"saving merged model to: {str(Path(cfg.output_dir) / 'merged')}")